Hello. I have a variable X with, say, 10000 observations. I want to randomly assign a treatment value of 1 to this variable but cap the number of treatments to 50%, or 5000, observations. How can I do so in my do-file?
Thank you!
Related Posts with Randomly assigning treatment at a proportion to a variable
Estimation of the same survival models converges sometimes and sometimes doesn'tI estimate survival models. However, the model converges sometimes and sometimes it doesn't even tho…
Panel data with more than one observation in a YearHi all, My data set looks like below, input int YEAR str47 Acquirer long DealNumber double MA_DVAL…
Negative -hausman- in the logit/xtlogit decisionI have unbalanced panel data and want to decide whether to compute (pooled) -logit-, -xtlogit,fe- or…
Cluster by firmHi- does clustering by firm has any impact on coefficient (or on Constant)? I read it reduces coeffi…
Economic SignificanceHi, I have a large dataset. The dependent variable is Y and independent variable is X and there are…
Subscribe to:
Post Comments (Atom)
0 Response to Randomly assigning treatment at a proportion to a variable
Post a Comment