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?
Postfile __000000 already existsHi I am running Stata 15.1 on a Windows 7 8 core desktop. I am trying to run postfile but keep gett…
Survey concordance correlationHello everyone: Is there any way to obtain accurate estimates and 95% confidence intervals for the …
Creating interaction terms between a group of year dummies and a group of product dummies and how to use them in a regression equation.Hello, I have a challenge with how to create a kind of interaction terms for purposes of running a …
Omitted independent variables in xtabond2 using twostep system GMMHi, I am trying my data set in two-step System GMM, three variables annual GDP growth rate, Bond mar…
Bysort Qualifying PartsI’m trying to find which qualifying part was treated after the first visit for the 2nd and 3rd visit…
Subscribe to:
Post Comments (Atom)
0 Response to How to make a random sample or subset of data with two group?
Post a Comment