Hello all;
Anybody know how to transform the following SPSS command into a STATA command?
Thank you
USE ALL.
COMPUTE filter_$=(B8_under5 = 1 | B8_under5 = 2 | B8_under5 = 3).
VARIABLE LABELS filter_$ 'B8_under5 = 1 | B8_under5 = 2 | B8_under5 = 3 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.
Related Posts with SPSS Command to STATA
Dealing with Missing ValuesGreetings Everyone! Hopefully, you will be doing well. I have a problem with missing values. I have…
xtreg fixed effect and estimate using wlsDear Statalist, Following is the code for firm and year fixed effect using xtreg [CODE] xtset comp…
Interpretation of metatrimHi all, I'm a newbie to Stata and hope someone can help explain the metatrim command. My understan…
Nice export STATA output to excel or wordDear Madam/Sir, I used the following command using posts here, but tables are broken both in MS wor…
How to delete the spaces in the string? Code: * Example generated by -dataex-. For more info, type help dataex clear input str7 code " …
Subscribe to:
Post Comments (Atom)
0 Response to SPSS Command to STATA
Post a Comment