DNPROCregData {npROCRegression}R Documentation

Selects an adequate set of points from a data set for obtaining predictions or plots.

Description

Selects an adequate set of points from a data set to be used as a default dataset for obtaining predictions or plots.

Usage

DNPROCregData(data, names.cov, group)

Arguments

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.

Value

a data frame containing selected values of all needed covariates. For those that are continuous, 30 different values are selected.

Author(s)

Maria Xose Rodriguez - Alvarez and Javier Roca-Pardinas

See Also

See Also DNPROCreg.

Examples

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)			 

[Package npROCRegression version 1.0-7 Index]