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
How to create robust standard errors, clustered by firm IDHi guys, I am currently using a data panel set and want to do a simple pooled OLS regression. I hav…
How to swap components of variable name?Hi - I have about 1200 variables that are in the format monYY_[indicator] which means they look some…
counting event experience based on two datesDear Statalist, I have a dataset that contains the entry dates of a certain investor (unique Invest…
How to create a variable for maximum number of periods an individual can participate in a panelHello everyone, thank you for the helpful advice in my previous posts. I would like to create a vari…
Selecting lags for Pesarans unit root tests which controls for cross-sectional dependenceI am trying to run a panel unit root test using the PESCADF command in Stata. However I am confused …
Subscribe to:
Post Comments (Atom)
0 Response to Creating subset in STATA
Post a Comment