I am trying to plot a calibration plot. There are 329443 observations, and I enter the following:
> val.prob.ci.2(Bare$KFRE_Pred, Bare$RRT_in_2YRS, smooth="rcs")
which leads to the following error:
singular information matrix in lrm.fit (rank= 3 ). Offending variable(s):
Warning in value[[3L]](https://github.com/BavoDC/val.prob.ci.2/issues/cond) :
The number of knots led to estimation problems, nk will be set to 4.
singular information matrix in lrm.fit (rank= 3 ). Offending variable(s):
Warning in value[[3L]](https://github.com/BavoDC/val.prob.ci.2/issues/cond) :
Nk 4 also led to estimation problems, nk will be set to 3.
singular information matrix in lrm.fit (rank= 2 ). Offending variable(s):
Error in array(x, c(length(x), 1L), if (!is.null(names(x))) list(names(x), :
'data' must be of a vector type, was 'NULL'
In addition: Warning message:
In val.prob.ci.2(Bare$KFRE_Pred, Bare$RRT_in_2YRS, smooth = "rcs") :
27 observations deleted from logistic calibration due to probs. of 0 or 1
Any suggestions?
Best,
Anthony