predict.cpr_cp | R Documentation |
Model prediction for cpr_cp
and cpr_cn
objects.
## S3 method for class 'cpr_cp'
predict(object, ...)
object |
a |
... |
passed to |
the same as you would get from calling predict
on the object$fit
.
acp <- cp(log10(pdg) ~ bsplines(age, df = 12, bknots = c(45, 53))
, data = spdg
, keep_fit = TRUE)
acp_pred0 <- predict(acp$fit, se.fit = TRUE)
acp_pred <- predict(acp, se.fit = TRUE)
all.equal(acp_pred0, acp_pred)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.