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
Why cannot I add note to this graph by using the following code?twoway (scatter astate year) (scatter awagepre year, yaxis(2)title(wage premium)) , ytitle(State emp…
Automating the Creation of a Table to Report Summary Statistics Net Panel and Time Fixed EffectsHello Statalist, I am attempting to automate the creation of a summary statistics table to report t…
Person-Specific IndicatorI have firm-year level data. I want to create person-specific indicators (not firm-specific). Howeve…
ICD 10 Codes dataset: Please helpHi there, Please I urgently need help with generate new variable consisting ICD 10 codes related to…
checking string similarity within the same variableDear all, This message was initially posted in the discussion thread HTML Code: https://www.stata…
Subscribe to:
Post Comments (Atom)
0 Response to Using a probability variable to generate random dummy´s
Post a Comment