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
generate a value indicating how many time a situation happens before the specific dateHello everyone in the community! Sorry to have some problems with the same data again , thanks agai…
preparing data for propensity score matchDear All, I want to analyze if the gain in public health insurance due to this policy (Medicaid exp…
Loop mixed model over a least of predictors and store the coefficients and P valuesHi, I want to loop a mixed model over a list of predictors (fixed effects) and store the coefficien…
Matching Actions to YearsI have to different databases. Database 1 has executive actions in specific years, but this is not c…
Specifying a 'fill in the blank' variable in a loopHello, I'm sure this is a function but I'm having trouble finding it -- I'm trying to make a loop t…
Subscribe to:
Post Comments (Atom)
0 Response to Using a probability variable to generate random dummy´s
Post a Comment