Hi everyone,
I have a dataset that includes age (continuous variable) and smoking status (smokers=500 vs. non-smokers1500). Given that smokers are older than non-smokers, I would like to match two subsamples based on the age variable. In other words, I would like to have a dataset with 500 smokers and non-smokers (n=?) that have a pretty similar age.
Thanks,
NM
Related Posts with Balancing two subsamples
Problem with opening the datasetHi Stata community. I am trying to open a .dta dataset, which I have been working on for the last fo…
Clustering Standard Errors helpHi, I want to check whether there is a need to cluster my results. I asked this question before with…
Generating categorical dummy variableHi all, I need some help with this. I would like to generate a new binomial variable EDUCATION equ…
making loop with the values within the variableHello, I have one of the variables G1 which has values from 1 to 17. Then I want to make a loop as …
Splitting a data set into four data sets over all observations but keepin all variables for each splitted data setHi All, I am using a data set which contains more than 50 variables and 0.36 observations. I need to…
Subscribe to:
Post Comments (Atom)
0 Response to Balancing two subsamples
Post a Comment