Skip to content
Prev 259977 / 398502 Next

Question on approximations of full logistic regression model

Thank you for your comment, Prof. Harrell.
I would appreciate it very much if you could teach me how to simulate 
for the estimation. For reference, following codes are what I did 
(bootcov, summary, and validation).

MyFullModel.boot <- bootcov(MyFullModel, B=1000, coef.reps=T)

 > summary(MyFullModel, stenosis=c(70, 80), x1=c(1.5, 2.0), x2=c(1.5, 2.0))
              Effects              Response : outcome

  Factor              Low  High Diff. Effect S.E. Lower 0.95 Upper 0.95
  stenosis            70.0 80   10.0  -0.11  0.24 -0.59      0.37
   Odds Ratio         70.0 80   10.0   0.90    NA  0.56      1.45
  x1                   1.5  2    0.5   1.21  0.37  0.49      1.94
   Odds Ratio          1.5  2    0.5   3.36    NA  1.63      6.95
  x2                   1.5  2    0.5  -0.29  0.19 -0.65      0.08
   Odds Ratio          1.5  2    0.5   0.75    NA  0.52      1.08
  ClinicalScore        3.0  5    2.0   0.61  0.38 -0.14      1.36
   Odds Ratio          3.0  5    2.0   1.84    NA  0.87      3.89
  procedure - CA:CE    2.0  1     NA   0.83  0.46 -0.07      1.72
   Odds Ratio          2.0  1     NA   2.28    NA  0.93      5.59

 > summary(MyFullModel.boot, stenosis=c(70, 80), x1=c(1.5, 2.0), 
x2=c(1.5, 2.0))
              Effects              Response : outcome

  Factor              Low  High Diff. Effect S.E. Lower 0.95 Upper 0.95
  stenosis            70.0 80   10.0  -0.11  0.28 -0.65      0.43
   Odds Ratio         70.0 80   10.0   0.90    NA  0.52      1.54
  x1                   1.5  2    0.5   1.21  0.29  0.65      1.77
   Odds Ratio          1.5  2    0.5   3.36    NA  1.92      5.89
  x2                   1.5  2    0.5  -0.29  0.16 -0.59      0.02
   Odds Ratio          1.5  2    0.5   0.75    NA  0.55      1.02
  ClinicalScore        3.0  5    2.0   0.61  0.45 -0.28      1.50
   Odds Ratio          3.0  5    2.0   1.84    NA  0.76      4.47
  procedure - CAS:CEA  2.0  1     NA   0.83  0.38  0.07      1.58
   Odds Ratio          2.0  1     NA   2.28    NA  1.08      4.85

 > validate(MyFullModel, bw=F, B=1000)
           index.orig training    test optimism index.corrected    n
Dxy           0.6425   0.7054  0.6122   0.0932          0.5493 1000
R2            0.3270   0.3745  0.3330   0.0415          0.2855 1000
Intercept     0.0000   0.0000  0.0683  -0.0683          0.0683 1000
Slope         1.0000   1.0000  1.0465  -0.0465          1.0465 1000
Emax          0.0000   0.0000  0.0221   0.0221          0.0221 1000
D             0.2715   0.2795  0.2424   0.0371          0.2345 1000
U            -0.0192  -0.0192 -0.0035  -0.0157         -0.0035 1000
Q             0.2908   0.2987  0.2460   0.0528          0.2380 1000
B             0.1265   0.1164  0.1332  -0.0168          0.1433 1000
g             1.3366   1.5041  1.5495  -0.0455          1.3821 1000
gp            0.2082   0.2172  0.2258  -0.0087          0.2169 1000

 > validate(MyFullModel.boot, bw=F, B=1000)
           index.orig training    test optimism index.corrected    n
Dxy           0.6425   0.7015  0.6139   0.0877          0.5549 1000
R2            0.3270   0.3738  0.3346   0.0392          0.2878 1000
Intercept     0.0000   0.0000  0.0613  -0.0613          0.0613 1000
Slope         1.0000   1.0000  1.0569  -0.0569          1.0569 1000
Emax          0.0000   0.0000  0.0226   0.0226          0.0226 1000
D             0.2715   0.2805  0.2438   0.0367          0.2348 1000
U            -0.0192  -0.0192 -0.0039  -0.0153         -0.0039 1000
Q             0.2908   0.2997  0.2477   0.0521          0.2387 1000
B             0.1265   0.1177  0.1329  -0.0153          0.1417 1000
g             1.3366   1.5020  1.5523  -0.0503          1.3869 1000
gp            0.2082   0.2191  0.2263  -0.0072          0.2154 1000
(11/05/16 22:01), Frank Harrell wrote: