View source: R/DNPROCregData.R
DNPROCregData | R Documentation |
Selects an adequate set of points from a data set to be used as a default dataset for obtaining predictions or plots.
DNPROCregData(data, names.cov, group)
data |
Data set from which the new set of covariate values is obtained. |
names.cov |
Character vector with the names of the covariates to be included in the new data set. |
group |
A character string with the name of the variable in the original data set that distinguishes healthy from diseased individuals. |
a data frame containing selected values of all needed covariates. For those that are continuous, 30 different values are selected.
Maria Xose Rodriguez - Alvarez and Javier Roca-Pardinas
See Also DNPROCreg
.
data(endosim)
# Fit a model including the interaction between age and gender.
m0 <- DNPROCreg(marker = "bmi", formula.h = "~ gender + s(age) + s(age, by = gender)",
formula.ROC = "~ gender + s(age) + s(age, by = gender)",
group = "idf_status",
tag.healthy = 0,
data = endosim,
control = list(card.P=50, kbin=30, step.p=0.02),
ci.fit = FALSE,
test.partial = NULL,
newdata = NULL)
summary(m0)
plot(m0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.