Hi everyone, I hope someone can help me with this question. I have a dataset includes 1000 observations. Among that, 800 observations has variable "treatment = yes" and 200 observations has variable "treatment= no". I want to resample the with the size of new sample is 1000, where observations which has "treatment = yes" is replacement, and observations which has "treatment = no" is without replacement. Could someone please help me with this? Thanks in advanced.
Related Posts with Resample data
Loop by group in a variable and selecting by conditional Hello, I must select the families "family" that meet the condition of having children. base example…
Generate random data with mean, std and rangeSo my professor is asking us to produce some data from a experimental paper to do power analysis. So…
Exporting a file with a list of variable names and variable labels.Hi all, I've been trying to export a file (Excel or anything) with two columns - first with a list o…
lead (t+1) variablesDearest All I am confronting an issue I have a dataset which consists of 10574 observations panning…
Finding mean value of a column based on yearHi, I am a newbie with STATA and working with it for my thesis. So, I have a dataset of companies f…
Subscribe to:
Post Comments (Atom)
0 Response to Resample data
Post a Comment