Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: How to spolit variable info to multiple variables

From   "Pritpal Marjara" <>
To   <>
Subject   st: How to spolit variable info to multiple variables
Date   Sun, 11 Feb 2007 14:10:07 +0530

Dear All,

Is there any command in stata that can make separate variables for multiple
coded responses.

For example:

VarA (numerical field) is coded with following responses:


Now I want to create six variables with the names VarA1 VarA2 VarA3 VarA4
VarA5 VarA6 and the data from VarA to be transferred/copied to the newly
created variables (sysmis, if the variable has no code for the new variable;
VarA2 VarA3 and  VarA6 will have missing values for first row of VarA).

Wondering, if any stata command/program can be used to do it as I have too
many variables to recode.

Thank you


-----Original Message-----
From: Nick Cox []
Sent: Friday, February 09, 2007 4:24 PM
Subject: st: RE: accessing first stage results in xtivreg2

Just one oblique comment: -xtivreg2- is a user-written command.
(Statalist FAQ advice is that you make that clear in postings.)
Broadly speaking, there is no commitment by StataCorp to
provide guidance in their FAQs on user-written commands. Occasionally,
user commands are mentioned, but any expectation of provision of extra help
in those FAQs misunderstands their purpose.


Craig A. Depken, II

> I am frustrated in searching the FAQ for the answer to my question.
> If I have missed the relevant post, I apologize.
> I am estimating a linear model in xtivreg2 with the following
> structure

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index