Hello everyone,
Description (taken from STATA help):
multencode creates new numeric variables newvarlist, with value labels defined and attached, based on the string variables strvarlist. The same set of value labels is used for all the new variables. By default a new set of labels will be created with the same name as the first variable in strvarlist. Optionally, a name may be specified using the label() option. In either case, no existing set of value labels with the same name will be used, unless the force option is specified, in which case those value labels will be over-written. In this way, the user is assured that the new variables will have the same alphabetically ordered set of value labels, provided as usual that the request does not breach any limits that apply.
Question:
Is there a command that creates one new variable based on multiple string variables? The definition of such a command may read as follows:
-[command]- creates a new numeric variable newvar, with value labels defined and attached, based on the string variables strvarlist.
I'm assuming code is not required for this discussion, however, I am happy to provide if requested.
Thank you and kind regards,
Kate
Related Posts with multencode: similar command that creates only one new output variable?
Non-normal distribution of latent variable in structural equations modelling - transformation?I have a simple path model with several latent variables that are ostensibly well enough indicated b…
Tobit with vce(robust) or notHi, When I run tobit model specifying vce(robust), it does F test to test the hypothesis that the co…
Time DummiesHello! Quick question regarding time dummies. I have data from 4 quarters of the Labour Force Surv…
Gsem and Logistic regressionHi dears please help me I want to run this model But when I run the model, the effect of variable "C…
Error in loop codeHi I ran the following code. Code: foreach y in 2003 2004 2005 { foreach s in 3 6 8 15 27 3…
Subscribe to:
Post Comments (Atom)
0 Response to multencode: similar command that creates only one new output variable?
Post a Comment