Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Calculating conditional probabilities on stata

    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!

  • #2
    As you do not mention any other predictor variables besides "treatment," the relevant procedure would be a two-way frequency tabulation. Take a look at -help tabulate twoway- to learn about a relevant command, and try the following:
    Code:
    tabulate attendance treatment, col

    Comment

    Working...
    X