Dear Statalisters,

I work on prediction of outcome (neurological outcome 0 or 1) with a score which range from 0 to 200.

The discrimination and calibration of the score is good and I want to highlight the calibration on a graph Observed outcome versus Predicted and the development cohort and 3 validation cohorts.

I try:

Code:
 logit CPC_B CAHP
Code:
 margins
But without success...

Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input float(CPC5 CAHP)
1      .
1      .
1 108.52
1      .
1 127.34
1 100.02
1  79.22
1      .
1 117.54
1 131.12
end