Hey all,
Newish to STATA - longtime SAS user - sorry for the basic question. I have a dataset of cases and controls. Trying to split them into two datasets based on the value of the variable casecontrol. It would be something like this in SAS:
data cases controls; set have;
if casecontrol=1 then output cases;
if casecontrol=2 then output controls;
run;
I guess I am confused since we dont have to specify datasets in STATA - so it seems like if I keep cases - then I lose the controls?
Am I missing something?
Thanks!
nick
Related Posts with Splitting a dataset into multiple datasets
Specifying instruments for xtabond2Hi all, This is my first post, so apologize in advance for any posting mistake I may make. I am tr…
undo commandHello all, I have a question, would it be possible to undo last command, say I entered drop Age (va…
Heteroskedasticity and normality in Tobithow we can test heteroskedasticity assumption and normality assumption inTobit model? In case of use…
Crop yaxis when using sts graph?Dear all, Does anyone know how to crop (or not show in some way) the highest part of the yaxis in a…
mfx, predict(xbsel)dear all may I use mfx, predict(xbsel) command after heckman to get marginal effect? thank you …
Subscribe to:
Post Comments (Atom)
0 Response to Splitting a dataset into multiple datasets
Post a Comment