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
Checking package consistencyDear All, when a user-written package is added to Stata with Code: net from SOMEURL net install SO…
adjustrcspline and plotting axis/limitsHi all. I've been hunting online for a while now but can't seem to find a good solution for this yet…
Referring to matrix columns and rowsDear All, It should be fairly simply, but I am very confused as to how I should refer to a location …
Calculations based on rankHi everyone, I'm an undergraduate student studying economics and am having trouble with Stata. I'm …
melogit, xtmelogit, meglm with Bernoulli family to include survey weights in the modelDear colleagues, Does any one come across with an aides on how to include a survey weight into the …
Subscribe to:
Post Comments (Atom)
0 Response to Using a probability variable to generate random dummy´s
Post a Comment