I am new user of stata, kindly forgiven my ignorance and poor English.
My case is here. I have a data set consist 800+ company with other variable, such as total asset, total debt and many other from year 2010 to year 2016.
I have divide this 800+ company in to two group with a dummy variable (company do not being targeted for takeover during the study period (2010-2016)= 0, otherwise= 1).
However, I find out number of company is been targeted is only 50+ and the other side is about 700+.
So, I wish create a subset of data from this 700+ company(dummy=0) to compare with the 50+ company(dummy=1).
if it is possible included Total asset as one of the factor, such as new group 0 (dummy=0) having the same mean with group 1.
or just a random sample from group 0 with same number of company in group 1.
Thank you!
Related Posts with How to make a random sample or subset of data with two group?
Am I correct with the two step system GMM xtabond2 commandDear Statalists, I am doing two-step system GMM xtabond2 the dependent variable is rgdpg endogeno…
Convert multiple similar variables into one variable with multiple observations (rows)Hello, I am very very to Stata and trying to teach myself but I am stuck on this issue. I don't know…
Diagnostics test in Panel Data AnalysisHi everyone! I am doing my master thesis using panel data regression. However, before proceeding to…
Reorganize data from long (panel) form to id-separated variables?Dear all, I need to reorganize my dataset. I have an unbalanced panel dataset in long form for 100 i…
Unable to run xtcsd, pesaranI'm using a panel data set that is unbalanced. I'm running through tests for OLS assumptions and my …
Subscribe to:
Post Comments (Atom)
0 Response to How to make a random sample or subset of data with two group?
Post a Comment