Hi everyone,
I am analyzing a dataset of a specific treatment and the effect of such treatment on school participation. I need to find conditional probabilities, but cannot figure out how to do this in Stata.
For example, I am looking to find the probability of a student attending school given that they received treatment
School attendance is a number between 0 and 1 (1= 100% attendance)
Treatment is a dummy variable (1=treatment; 0=no treatment)
Would appreciate any insight on how to code this. Thanks!
Related Posts with Calculating conditional probabilities on stata
Oaxaca help - mean wage generated does not match the one given by sum commandGood afternoon, I am using the oaxaca command to decompose the ethnic pay gap, in the example here …
Drop variables with common suffix under certain conditionsDear all, I am facing difficulties in dropping some variables conditional on the missing observatio…
Fractional Proportional Models and Controlling for Time.Hi Statalist, I have a dataset with a large number of observations and a small T. The years for my d…
Question about the effect of adding control variables on estimateDear all, I do a research using instrumental variables, the main problem is that we are not sure wh…
Issues with attempts to drop observations (r109 type mismatch error)Hi there, I'm new to Stata and attempting to drop some observations from my sample, however I keep …
Subscribe to:
Post Comments (Atom)
0 Response to Calculating conditional probabilities on stata
Post a Comment