Dear list,
I am currently charged with the translation of an .sps-file to Stata. In general this is quite easy but there a certain SPSS-command I just cannot reproduce:
if (selfall2(POINTB) ge 1 & selfall2(POINTB)le 3) FJSELFE=10.
selfall2 is a vector comprised of 15 variables and POINTB a variable with 15 attributes. For each observation the code checks the attribute of the variable and accesses the n-th element of selfall, where n is equal to the value of pointb, and examines whether this variable fullfills the if-condition or not.
Is there any way how I can achieve the same effect in Stata?
Thank you
Tobias Wolfram
I am currently charged with the translation of an .sps-file to Stata. In general this is quite easy but there a certain SPSS-command I just cannot reproduce:
if (selfall2(POINTB) ge 1 & selfall2(POINTB)le 3) FJSELFE=10.
selfall2 is a vector comprised of 15 variables and POINTB a variable with 15 attributes. For each observation the code checks the attribute of the variable and accesses the n-th element of selfall, where n is equal to the value of pointb, and examines whether this variable fullfills the if-condition or not.
Is there any way how I can achieve the same effect in Stata?
Thank you
Tobias Wolfram
Comment