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
Fill in missing information for only specific observations Code: * Example generated by -dataex-. To install: ssc install dataex clear input byte survey int …
simple addplot syntax errors?Hi I'm trying to overlay a couple of plots but I can't seem to make it work and the stata help file…
Multinomial probit (mprobit): Syntax for specifying constraintsColleagues: The model being estimated is Code: mprobit y i.(x1 x2 x3 x4 x5) LHS variable y has 5 …
Reusing SEM estimatesI feel like I'm missing something basic here. In order to reuse the results of a polychoric correlat…
Create a control group matching categorical and continuous variablesDear all, I am analyzing whether a CEO turnover (c. 600 events) has a long-term impact on operating…
Subscribe to:
Post Comments (Atom)
0 Response to Creating subset in STATA
Post a Comment