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
Generate dummy variables if it is the same day / monthI would like to generate two dummy variables: "same_month" and "same_day". Basically, by id and grou…
The rank of the differenced variance matrix does not equal the number of coefficients being testedHi there, I have a panel data and I want to do Hausman Test but it keeps on showing this note: . …
Merging Specific File Names onlyHello Everyone, Hope you all are doing well. I have this somewhat confusing query which I am tryin…
Question CEO Duality applying to whole firm in a yearHello everyone, For my thesis I have to investigate CEO Duality. CEO Duality is when the CEO of the…
Repeated time values within panel error in ESS cumulative fileI'm trying to run a fixed effects panel data analysis with a cumulative file of the European Social …
Subscribe to:
Post Comments (Atom)
0 Response to Creating subset in STATA
Post a Comment