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
Expressing all other variables in deviation from the cross-section mean of 'year' variableHello everyone, I am a STATA novice and still getting to grips with the software. I am running a l…
test of endogeneityHow to find which variable is endogenous before finding an instrument for it (before 2sls test)? …
Removing duplicatesHi Statalist, I have this variable: Code: * Example generated by -dataex-. To install: ssc instal…
Complicate box plotHii guys, I have a database made as follows: Code: * Example generated by -dataex-. To install: s…
Diff in Diff by Hand and StataHi everyone, I'm an undergrad and trying to understand what Stata does when I run a diff-in-diff co…
Subscribe to:
Post Comments (Atom)
0 Response to Creating subset in STATA
Post a Comment