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
Margins from a mixed model with a log-transformed outcomeI run a mixed model of a log-transformed outcome using ‘mixed’ (and the dfmethod(kroger) option with…
mean +/- 2 stdDear Statalist, I am dealing with a variable that it is in between 0-1 (taking any possible value wi…
Wald test for trendsHi! I'm new to STATA. I came across a paper that reported a Wald-test for trends p-value along with …
Panel data modelHi, I have a panel dataset whereT=10 and N=77 and found the problem of heteroscedasticity, autocorre…
Changing datesHow can I change a date format in Stata for from this format 06/12/2021 to this format 06-12-2021 …
Subscribe to:
Post Comments (Atom)
0 Response to SPSS Command to STATA
Post a Comment