Dear Madam/Sir,
I run the following regression and want to use only observations (77,626) that regression is run to generate descriptive statistics. The original dataset is over 100,000 observations.
regress ln_change_sga ln_change_sale ln_bw lnbw_change_sale uncertain gdprate sec_dec asset_int EMP_int uncertian_change_sale gdpg_change_sale sec_dec_sale asset_int_sale emp_int_sale i.sic2 i.fyear, robust cluster(gvkey)
Number of obs = 77,626
Is the following command the only way to use 77,626 observation? It also generates invalid syntax error.
drop if ln_change_sga==. |ln_change_sale ==.| ln_bw==.| lnbw_change_sale==.| uncertain==.| gdprate==.| sec_dec==.| asset_int==.| EMP_int==.| uncertian_change_sale==.| gdpg_change_sale==.| sec_dec_sale==.| asset_int_sale==.| emp_int_sale==.|
invalid syntax
Any help will be highly appreciated.
Joon
Related Posts with Creating subset in STATA
Long data format: How to count individuals and not observations?Dear all I have a problem with my data set that I hope you can help me solve. My dataset is in lon…
Twoway Kdensity Plot – Truncate X-AxisDear Statalisters, I am using Stata 15.1 MP on a Windows 10 PC and face the following problem: I wa…
margins and interpretation of the interaction between two variables one of which in log transformedHi all, I have two questions I was hoping to get some help: 1) I have a panel(longitudinal) model …
Average Marginal Effects - Recursive Bivariate ProbitDear Statalisters, I would like to calculate the average marginal effects from a recursive bivariate…
how to build the GLLAMM model???pLEASE HELP ME ID TIME_POINT A B C 1 0 5 10 10 1 1 25 25 25 1 2 50 50 25 2 0 50 25 25 2 1 25 75 75 2…
Subscribe to:
Post Comments (Atom)
0 Response to Creating subset in STATA
Post a Comment