Can foreach be used to keep a group of observations of a specific variable?
I need to keep a group of around 1000 individuals within dataset (eg id=1 id=2.....id=1000) and was trying to work out the most efficient way of doing this.
A search has brought up the "inlist" command but it looks like only 10 or so observations can be listed at a time, and each one needs to be typed out (rather than just id=1 - id=1000)
Any solutions to this would be greatly appreciated, thank you in advance
Related Posts with Keeping a list of observations using foreach
Network Analysis-nwcommandsHi, I am using the nwcommands package to run some social network analysis. I am facing two issues-…
Test for two mean and standard deviation with unknown sample size.Hi, I have lung function data (mean and SD) for two time point, say, admission and discharge for 20 …
auto-filter variable name in dialog boxHi, I'm relatively new to Stata and am wondering if I'm missing something simple when it comes to se…
regressions with Fixed Effect and CCEMG/CCEP give different resultsDear all, I want to ask you about results of fixed effect and CCEP/CCEMG. I regressed my variables…
Error-correction model with GMM first differenceDear Statalist users Could you please help with advice on how to construct an Error correction mode…
Subscribe to:
Post Comments (Atom)
0 Response to Keeping a list of observations using foreach
Post a Comment