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!