Displaying 3 results from an estimated 3 matches for "getolddesign".
2009 Aug 21
1
Possible bug with lrm.fit in Design Library
...au-a R2 Brier
0.49 0.179 0.195 0.157
Coef S.E. Wald Z P
Intercept -2.890 0.04318 -66.92 0
x[1] 5.864 0.23341 25.12 0
x[2] 4.479 0.17256 25.95 0
> predictions <- predict(fmodel, trainlogdata, type="fitted");
Error in getOldDesign(fit) :
2005 Jul 12
1
Design: predict.lrm does not recognise lrm.fit object
..., sls=0.05)
# Fit reduced model
lrm_reduced = lrm.fit(training[,lrm_stp$parms.kept[-1]], training$PresAbs)
# Predict using parameters from reduced model against a new dataset
predict(lrm_reduced, testing, type="fitted.ind")
It is the last command that fails, reporting the error:
Error in getOldDesign(fit): fit was not created with a Design library
fitting function.
On further investigation, the class of the object from lrm.fit is only
"lrm", whereas predict.lrm seems to be expecting objects with the class
"lrm", "Design", "glm", judging from the examples...
2009 Aug 21
1
Repost - Possible bug with lrm.fit in Design Library
...Tau-a R2 Brier
0.49 0.179 0.195 0.157
Coef S.E. Wald Z P
Intercept -2.890 0.04318 -66.92 0
x[1] 5.864 0.23341 25.12 0
x[2] 4.479 0.17256 25.95 0
> predictions <- predict(fmodel, trainlogdata, type="fitted");
Error in getOldDesign(fit) :