I have a probability (prob) variable, created by myself for each observation. I want to generate a dummy wich takes values 1 o 0 (for each obs) with the probability that indicates the prob variable.
Related Posts with Using a probability variable to generate random dummy´s
sub group analysis in clinical trial and forest plot in stataKindly help with the command for a forest plot Am analysis RCT data A binary outcome with several b…
Air Land TemperatureDear All, I firstly apologize for my post is not strictly related to Stata procedures, but I am mak…
Factor analysisHello everyone, I have recently conducted a validation study on a 7-item survey. For the factor ana…
Frequency of Patient's Visits after First Discharge DateHello, I want to count the number of times the "Name" appears after the first Admission_Date and Dis…
Is there any case that the coefficient of variable of interest in DiD more significant when adding more variables?Considering a Difference-in-Differences equation with a dummy variable: yi=α+βDi+Xit+εi. While Xit…
Subscribe to:
Post Comments (Atom)
0 Response to Using a probability variable to generate random dummy´s
Post a Comment