Dear members,
is there a command that allows to draw a probability tree in Stata?
I have a panel data set of a few thousand employees for several time periods and I have a binary outcome for each observation. I want to draw a plot, which plots the conditional probability of the outcome given the outcome(s) in previous periods. Hence, at the first knot Pr(Y=0) and Pr(Y=1) should be plotted for t = 1. At the second knot (t = 2) four conditional probabilities should be plotted (positive/ negative outcome given positive/ negative outcome in the first period), and so forth.
The probabilities should be just the "descriptive" probabilities (or should I rather say relative frequencies?) as they appear in the sample and should not be based on a regression model.
Best regards
Felix Scholl
Related Posts with Plotting probability trees to model path dependence
stan in stataGood day everyone in the house, please I need someone to guide me on how I can download stan in stat…
One unique value label for several variables: how changing that automatically ?Hi everyone, I have a big dataset which i have for hundreds variables an unique label value. Here i…
Please Help Convert Country CodeGood day , I am working on trade data set from BACI ( about 3 million observations )which reports co…
Reshape: (note: it20180624 not found)Hello all, I am trying to reshape my data from wide format to long format the variable I am trying t…
getting transformed variables in reghdfeHello everyone, I have a problem with reghdfe and reg2hdfe I hope someone here can help me with. I …
Subscribe to:
Post Comments (Atom)
0 Response to Plotting probability trees to model path dependence
Post a Comment