Title: | Kernel-Based Nonparametric ROC Regression Modelling |
---|---|
Description: | Implements several nonparametric regression approaches for the inclusion of covariate information on the receiver operating characteristic (ROC) framework. |
Authors: | Maria Xose Rodriguez-Alvarez [aut, cre], Javier Roca-Pardinas [aut] |
Maintainer: | Maria Xose Rodriguez-Alvarez <[email protected]> |
License: | GPL |
Version: | 1.0-7 |
Built: | 2024-11-23 06:41:05 UTC |
Source: | CRAN |
The npROCRegression package allows the user to apply in practice the nonparametric induced and direct ROC regression approaches presented in Rodriguez-Alvarez et al. (2011a) and Rodriguez-Alvarez et al. (2011b, 2016) respectively.
Package: | npROCRegression |
Type: | Package |
Version: | 1.0-7 |
Date: | 2023-08-31 |
License: | GPL |
Maria Xose Rodriguez - Alvarez and Javier Roca-Pardinas
Maintainer: Maria Xose Rodriguez - Alvarez <[email protected]>
Rodriguez-Alvarez, M.X., Roca-Pardinas, J. and Cadarso-Suarez, C. (2011a). ROC curve and covariates: extending induced methodology to the non-parametric framework. Statistics and Computing, 21(4), 483–499.
Rodriguez-Alvarez, M.X., Roca-Pardinas, J. and Cadarso-Suarez, C. (2011b). A new flexible direct ROC regression model - Application to the detection of cardiovascular risk factors by anthropometric measures. Computational Statistics and Data Analysis, 55(12), 3257–3270.
Rodriguez-Alvarez, M.X., Roca-Pardinas, J. and Cadarso-Suarez, C. (2016). Bootstrap-based procedures for inference in nonparametric ROC regression analysis. Technical report.
Function used to set several parameters controlling the ROC regression fitting process
controlDNPROCreg(step.p = 0.02, card.P = 50, link = c("probit", "logit","cloglog"), kbin = 30, p = 1, seed = NULL, nboot = 500, level = 0.95, resample.m = c("coutcome", "ncoutcome"))
controlDNPROCreg(step.p = 0.02, card.P = 50, link = c("probit", "logit","cloglog"), kbin = 30, p = 1, seed = NULL, nboot = 500, level = 0.95, resample.m = c("coutcome", "ncoutcome"))
step.p |
a numeric value, defaulting to 0.02. ROC curves are calculated at a regular sequence of false positive fractions with |
card.P |
an integer value specifying the cardinality of the set of false positive fractions used in the estimation processs. By default 50. |
link |
a character string specifying the link function (“probit”, “logit” or “cloglog”). By default the link is the probit function. |
kbin |
an integer value specifying the number of binning knots. By default 30. |
p |
an integer value specifying the order of the local polinomial kernel estimator. By default 1. |
seed |
an integer value specifying the seed for the bootstrap resamples. If NULL it is initialized randomly. |
nboot |
an integer value specifying the number of bootstrap resamples for the construction of the confidence intervals. By default 500. |
level |
a real value specifying the confidence level for the confidence intervals. By default 0.95 |
resample.m |
a character string specifying if bootstrap resampling (for the confidence intervals) should be done with or without regard to the disease status (“coutcome” or “noutcome”). In both cases, a naive bootstrap is used. By default, the resampling is done conditionally on the disease status. |
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 = controlDNPROCreg(card.P=50, kbin=30, step.p=0.02)) summary(m0) plot(m0)
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 = controlDNPROCreg(card.P=50, kbin=30, step.p=0.02)) summary(m0) plot(m0)
Function used to set several parameters controlling fitting process.
controlINPROCreg(step.p = 0.02, kbin = 30, p = 1, h = c(-1, -1, -1, -1), seed = NULL, nboot = 500, level = 0.95, resample.m = c("coutcome", "ncoutcome"))
controlINPROCreg(step.p = 0.02, kbin = 30, p = 1, h = c(-1, -1, -1, -1), seed = NULL, nboot = 500, level = 0.95, resample.m = c("coutcome", "ncoutcome"))
step.p |
a numeric value, defaulting to 0.02. ROC curves are calculated at a regular sequence of false positive fractions with |
kbin |
an integer value specifying the number of binning knots. By default 30. |
p |
an integer value specifying the order of the local polynomial kernel estimator for the regression functions. By default 1. |
h |
a vector of length 4 specifying the bandwidths to be used for the estimation of the regression and variance functions in healthy population and the regression and variance functions in diseased populations (in this order). By default -1 (selected using cross-validation). A value of 0 would indicate a linear fit. |
seed |
an integer value specifying the seed for the bootstrap resamples. If NULL it is initialized randomly. |
nboot |
an integer value specifying the number of bootstrap resamples for the construction of the confidence intervals. By default 500. |
level |
a real value specifying the confidence level for the confidence intervals. By default 0.95. |
resample.m |
a character string specifying if bootstrap resampling (for the confidence intervals) should be done with or without regard to the disease status (“coutcome” or “noutcome”). When the resampling method is done conditionally on the disease status, the resampling is based on the residuals of the regression models in healthy and diseased populations. However, when the bootstrap resampling is done without regard to the disease status, a naive bootstrap is used. By default, the resampling is done conditionally on the disease status. |
Maria Xose Rodriguez - Alvarez and Javier Roca-Pardinas
See Also INPROCreg
data(endosim) # Evaluate the effect of age on the accuracy of the body mass index for males m0.men <- INPROCreg(marker = "bmi", covariate = "age", group = "idf_status", tag.healthy = 0, data = subset(endosim, gender == "Men"), ci.fit = FALSE, test = FALSE, accuracy = c("EQ","TH"), accuracy.cal="AROC", control=controlINPROCreg(p=1,kbin=30,step.p=0.01), newdata = data.frame(age = seq(18,85,l=50))) summary(m0.men) plot(m0.men)
data(endosim) # Evaluate the effect of age on the accuracy of the body mass index for males m0.men <- INPROCreg(marker = "bmi", covariate = "age", group = "idf_status", tag.healthy = 0, data = subset(endosim, gender == "Men"), ci.fit = FALSE, test = FALSE, accuracy = c("EQ","TH"), accuracy.cal="AROC", control=controlINPROCreg(p=1,kbin=30,step.p=0.01), newdata = data.frame(age = seq(18,85,l=50))) summary(m0.men) plot(m0.men)
Estimates the covariate-specific ROC curve in the presence of multidimensional covariates by means of the ROC-GAM regression model presented in Rodriguez- Alvarez et al. (2011)
DNPROCreg(marker, formula.h = ~1, formula.ROC = ~1, group, tag.healthy, data, ci.fit = FALSE, test.partial = NULL, newdata = NULL, control = controlDNPROCreg(), weights = NULL)
DNPROCreg(marker, formula.h = ~1, formula.ROC = ~1, group, tag.healthy, data, ci.fit = FALSE, test.partial = NULL, newdata = NULL, control = controlDNPROCreg(), weights = NULL)
marker |
A character string with the name of the diagnostic test variable. |
formula.h |
Right-hand formula(s) giving the mean and variance model(s) to be fitted in healthy population. Atomic values are also valid, being recycled. |
formula.ROC |
Right-hand formula giving the ROC regression model to be fitted (ROC-GAM model). |
group |
A character string with the name of the variable that distinguishes healthy from diseased individuals. |
tag.healthy |
The value codifying the healthy individuals in the variable |
data |
Data frame representing the data and containing all needed variables. |
ci.fit |
A logical value. If TRUE, confidence intervals are computed. |
test.partial |
A numeric vector containing the position of the covariate components in the ROC-GAM formula to be tested for a possible effect. If NULL, no test is performed.. If NULL, no test is performed. |
newdata |
A data frame containing the values of the covariate at which predictions are required. |
control |
Output of the |
weights |
An optional vector of ‘prior weights’ to be used in the fitting process. |
As a result, the function DNPROCreg()
provides a list with the following components:
call |
The matched call. |
model |
Data frame containing all variables and observations used in the fitting process. |
fpf |
Set of false positive fractions (FPF) at which the covariate-specific ROC curve has been estimated. |
newdata |
Data frame containing the values of the covariates at which estimates has been obtained. |
pfunctions |
Matrices containing the estimates of each component of the additive predictor of the ROC-GAM. One matrix contains the effects of the covariates, the other the effect of the FPF. Confidence intervals are returned if required). |
coefficients |
Vector of parametric coefficient of the fitted ROC-GAM. |
ROC |
Estimated covariate-specific ROC curve. |
AUC |
Estimated covariate-specific AUC, and corresponding confidence intervals if required. |
pvalue |
If required, p-values are obtained - with two different bootstrap-based tests - for each model component indicated in argument |
Maria Xose Rodriguez-Alvarez and Javier Roca-Pardinas
Rodriguez- Alvarez, M.X., Roca-Pardinas, J. and Cadarso-Suarez, C. (2011). A new flexible direct ROC regression model - Application to the detection of cardiovascular risk factors by anthropometric measures. Computational Statistics and Data Analysis, 55(12), 3257–3270.
Rodriguez- Alvarez, M.X., Roca-Pardinas, J. and Cadarso-Suarez, C. (2016). Bootstrap-based procedures for inference in nonparametric ROC regression analysis. Technical report.
See Also as INPROCreg
, summary.DNPROCreg
, plot.DNPROCreg
, controlDNPROCreg
, DNPROCregData
.
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)) summary(m0) plot(m0) ## Not run: # For confidence intervals set.seed(123) m1 <- 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 = TRUE) summary(m1) plot(m1) # For testing the presence of interaccion between age and gender set.seed(123) m2 <- 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), test.partial = 3) summary(m2) plot(m2) ## End(Not run)
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)) summary(m0) plot(m0) ## Not run: # For confidence intervals set.seed(123) m1 <- 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 = TRUE) summary(m1) plot(m1) # For testing the presence of interaccion between age and gender set.seed(123) m2 <- 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), test.partial = 3) summary(m2) plot(m2) ## End(Not run)
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)
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)
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)
The endosim
data set was simulated based on the data analyzed in Rodriguez-Alvarez et al. (2011a,b) and presented in Botana et al. (2007) and Tome et al. (2008). The aim of these studies was to use the Body Mass Index (BMI) to detect patients having a higher risk of cardiovascular
problems, ascertaining the possible effect of age and gender on the accuracy of this measure.
data(endosim)
data(endosim)
A data frame with 2840 observations on the following 4 variables.
gender
patient's gender. Factor with Male
and Female
levels.
age
patient's age.
idf_status
true disease status (presence/absence of two of more cardiovascular risk factors according to the International Diabetes Federation). Numerical vector (0=absence, 1=presence).
bmi
patient's body mass index.
Botana, M.A., Mato, J.A., Cadarso-Suarez, C., Tome, M.A., Perez-Fernandez, R., Fernandez-Mario, A., Rego-Iraeta, A., Solache, I. (2007). Overweight, obesity and central obesity prevalences in the region of Galicia in Northwest Spain. Obesity and Metabolism, 3, 106–115.
Tome, M.A., Botana, M.A., Cadarso-Suarez, C., Rego-Iraeta, A., Fernandez-Mario, A., Mato, J.A, Solache, I., Perez-Fernandez, R. (2008). Prevalence of metabolic syndrome in Galicia (NW Spain) on four alternative definitions and association with insulin resistance. Journal of Endocrinological Investigation, 32, 505–511.
Rodriguez-Alvarez, M.X., Roca-Pardinas, J. and Cadarso-Suarez, C. (2011a). ROC curve and covariates: extending induced methodology to the non-parametric framework. Statistics and Computing, 21(4), 483–499.
Rodriguez- Alvarez, M.X., Roca-Pardinas, J. and Cadarso-Suarez, C. (2011b). A new flexible direct ROC regression model - Application to the detection of cardiovascular risk factors by anthropometric measures. Computational Statistics and Data Analysis, 55(12), 3257–3270.
data(endosim) summary(endosim)
data(endosim) summary(endosim)
Estimates the covariate-specific ROC curve (and related measures) in the presence of a one-dimensional continuous covariate based on the induced nonparametric ROC regression approach as presented in Rodriguez-Alvarez et al. (2011).
INPROCreg(marker, covariate, group, tag.healthy, data, ci.fit = FALSE, test = FALSE, accuracy = NULL, accuracy.cal = c("ROC", "AROC"), newdata = NULL, control = controlINPROCreg(), weights = NULL)
INPROCreg(marker, covariate, group, tag.healthy, data, ci.fit = FALSE, test = FALSE, accuracy = NULL, accuracy.cal = c("ROC", "AROC"), newdata = NULL, control = controlINPROCreg(), weights = NULL)
marker |
A character string with the name of the diagnostic test variable. |
covariate |
A character string with the name of the continuous covariate. |
group |
A character string with the name of the variable that distinguishes healthy from diseased individuals. |
tag.healthy |
The value codifying the healthy individuals in the variable |
data |
Data frame representing the data and containing all needed variables. |
ci.fit |
A logical value. If TRUE, confidence intervals are computed. |
test |
A logical value. If TRUE, the bootstrap-based test for detecting covariate effect is performed. |
accuracy |
A character vector indicating if the Youden index (“YI”), the value for which the TPF and the TNF coincides (“EQ”), and/or optimal threshold (“TH”) based on these two criteria should be computed. |
accuracy.cal |
A character string indicating if the accuracy measures should be calculated based on the covariate-specific ROC curve or on the covariate-adjusted ROC curve (AROC). |
newdata |
A data frame containing the values of the covariate at which predictions are required. |
control |
Output of the |
weights |
An optional vector of ‘prior weights’ to be used in the fitting process. |
As a result, the function INPROCreg()
provides a list with the following components:
call |
The matched call. |
X |
The data frame used in the predictions. |
fpf |
Set of false positive fractions at which the covariate-specific ROC curve has been estimated. |
h |
Estimated regression and variance functions in healthy population. |
d |
Estimated regression and variance functions in diseased population. |
ROC |
Estimated covariate-specific ROC curve. |
AUC |
Estimated covariate-specific AUC, and corresponding confidence intervals if required. |
AROC |
Estimated covariate-adjusted ROC curve. |
YI/EQ |
If required, estimated covariate-specific YI (or values at which the TPF and the TNF coincide), and corresponding bootstrap confidence intervals. |
TH |
If required, estimated optimal threshold values based on either the YI or the criterion of equality of TPF and TNF, and corresponding bootstrap confidence intervals. |
pvalue |
If required, p-value obtained with the test for checking the effect of the continuous covariate on the ROC curve. |
Maria Xose Rodriguez - Alvarez and Javier Roca-Pardinas
Gonzalez - Manteiga, W., Pardo-Fernandez, J.C. and van Keilegom, I. (2011). ROC curves in nonparametric location-scale regression models. Scandinavian Journal of Statistics, 38, 169–184.
Rodriguez - Alvarez, M.X., Roca-Pardinas, J. and Cadarso-Suarez, C. (2011). ROC curve and covariates: extending induced methodology to the non-parametric framework. Statistics and Computing, 21(4), 483–499.
Yao, F., Craiu, R.V. and Reiser, B. (2010). Nonparametric covariate adjustment for receiver operating characteristic curves. The Canadian Journal of Statistics, 38, 27–46.
See Also as DNPROCreg
, summary.INPROCreg
, plot.INPROCreg
, controlINPROCreg
.
data(endosim) # Evaluate the effect of age on the accuracy of the body mass index for males m0.men <- INPROCreg(marker = "bmi", covariate = "age", group = "idf_status", tag.healthy = 0, data = subset(endosim, gender == "Men"), ci.fit = FALSE, test = FALSE, accuracy = c("EQ","TH"), accuracy.cal="AROC", control=controlINPROCreg(p=1,kbin=30,step.p=0.01), newdata = data.frame(age = seq(18,85,l=50))) summary(m0.men) plot(m0.men) # Evaluate the effect of age on the accuracy of the body mass index for females m0.women <- INPROCreg(marker = "bmi", covariate = "age", group = "idf_status", tag.healthy = 0, data = subset(endosim, gender == "Women"), ci.fit = FALSE, test = FALSE, accuracy = c("EQ","TH"), accuracy.cal="ROC", control=controlINPROCreg(p=1,kbin=30,step.p=0.01), newdata = data.frame(age = seq(18,85,l=50))) summary(m0.women) plot(m0.women) ## Not run: # For computing confidence intervals and testing covariate effect set.seed(123) m1.men <- INPROCreg(marker = "bmi", covariate = "age", group = "idf_status", tag.healthy = 0, data = subset(endosim, gender == "Men"), ci.fit = TRUE, test = TRUE, accuracy = c("EQ","TH"), accuracy.cal="AROC", control=controlINPROCreg(p=1,kbin=30,step.p=0.01), newdata = data.frame(age = seq(18,85,l=50))) summary(m1.men) plot(m1.men) ## End(Not run)
data(endosim) # Evaluate the effect of age on the accuracy of the body mass index for males m0.men <- INPROCreg(marker = "bmi", covariate = "age", group = "idf_status", tag.healthy = 0, data = subset(endosim, gender == "Men"), ci.fit = FALSE, test = FALSE, accuracy = c("EQ","TH"), accuracy.cal="AROC", control=controlINPROCreg(p=1,kbin=30,step.p=0.01), newdata = data.frame(age = seq(18,85,l=50))) summary(m0.men) plot(m0.men) # Evaluate the effect of age on the accuracy of the body mass index for females m0.women <- INPROCreg(marker = "bmi", covariate = "age", group = "idf_status", tag.healthy = 0, data = subset(endosim, gender == "Women"), ci.fit = FALSE, test = FALSE, accuracy = c("EQ","TH"), accuracy.cal="ROC", control=controlINPROCreg(p=1,kbin=30,step.p=0.01), newdata = data.frame(age = seq(18,85,l=50))) summary(m0.women) plot(m0.women) ## Not run: # For computing confidence intervals and testing covariate effect set.seed(123) m1.men <- INPROCreg(marker = "bmi", covariate = "age", group = "idf_status", tag.healthy = 0, data = subset(endosim, gender == "Men"), ci.fit = TRUE, test = TRUE, accuracy = c("EQ","TH"), accuracy.cal="AROC", control=controlINPROCreg(p=1,kbin=30,step.p=0.01), newdata = data.frame(age = seq(18,85,l=50))) summary(m1.men) plot(m1.men) ## End(Not run)
Takes a fitted DNPROCreg
object produced by DNPROCreg()
and plots the covariate-specific ROC curve and associated AUC.
## S3 method for class 'DNPROCreg' plot(x, ask = TRUE, ...)
## S3 method for class 'DNPROCreg' plot(x, ask = TRUE, ...)
x |
an object of class |
ask |
a logical value. If TRUE, the default, the user is asked for confirmation, before a new figure is drawn |
... |
further arguments passed to or from other methods. |
Maria Xose Rodriguez-Alvarez and Javier Roca-Pardinas
See Also DNPROCreg
, summary.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)) summary(m0) plot(m0)
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)) summary(m0) plot(m0)
Default INPROCreg plotting (see details)
## S3 method for class 'INPROCreg' plot(x, ask = TRUE, ...)
## S3 method for class 'INPROCreg' plot(x, ask = TRUE, ...)
x |
an object of class |
ask |
a logical value. If TRUE, the default, the user is asked for confirmation, before a new figure is drawn. |
... |
further arguments passed to or from other methods. |
The function produces the following plots:
the estimated regression and variance functions in both the healthy and diseased populations.
the covariate-specific ROC curve and AUC.
the covariate-adjusted ROC curve (AROC).
(optionally) the Youden Index (YI) or the value for which the TPF and the TNF coincides (EQ).
(optionally) the optimal thresholds based on these criteria (TH).
Maria Xose Rodriguez-Alvarez and Javier Roca-Pardinas
See Also INPROCreg
.
data(endosim) # Evaluate the effect of age on the accuracy of the body mass index for males m0.men <- INPROCreg(marker = "bmi", covariate = "age", group = "idf_status", tag.healthy = 0, data = subset(endosim, gender == "Men"), ci.fit = FALSE, test = FALSE, accuracy = c("EQ","TH"), accuracy.cal="AROC", control=controlINPROCreg(p=1,kbin=30,step.p=0.01), newdata = data.frame(age = seq(18,85,l=50))) summary(m0.men) plot(m0.men)
data(endosim) # Evaluate the effect of age on the accuracy of the body mass index for males m0.men <- INPROCreg(marker = "bmi", covariate = "age", group = "idf_status", tag.healthy = 0, data = subset(endosim, gender == "Men"), ci.fit = FALSE, test = FALSE, accuracy = c("EQ","TH"), accuracy.cal="AROC", control=controlINPROCreg(p=1,kbin=30,step.p=0.01), newdata = data.frame(age = seq(18,85,l=50))) summary(m0.men) plot(m0.men)
Print method for DNPROCreg objects
## S3 method for class 'DNPROCreg' print(x, ...)
## S3 method for class 'DNPROCreg' print(x, ...)
x |
an object of class |
... |
further arguments passed to or from other methods. Not yet implemented |
Maria Xose Rodriguez-Alvarez and Javier Roca-Pardinas
See Also as 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) m0 summary(m0) plot(m0)
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) m0 summary(m0) plot(m0)
Print method for INPROCreg objects
## S3 method for class 'INPROCreg' print(x, ...)
## S3 method for class 'INPROCreg' print(x, ...)
x |
an object of class |
... |
further arguments passed to or from other methods. Not yet implemented |
Maria Xose Rodriguez - Alvarez and Javier Roca-Pardinas
See Also as INPROCreg
.
data(endosim) # Evaluate the effect of age on the accuracy of the body mass index for males m0.men <- INPROCreg(marker = "bmi", covariate = "age", group = "idf_status", tag.healthy = 0, data = subset(endosim, gender == "Men"), ci.fit = FALSE, test = FALSE, accuracy = c("EQ","TH"), accuracy.cal="AROC", control=controlINPROCreg(p=1,kbin=30,step.p=0.01), newdata = data.frame(age = seq(18,85,l=50))) m0.men summary(m0.men) plot(m0.men)
data(endosim) # Evaluate the effect of age on the accuracy of the body mass index for males m0.men <- INPROCreg(marker = "bmi", covariate = "age", group = "idf_status", tag.healthy = 0, data = subset(endosim, gender == "Men"), ci.fit = FALSE, test = FALSE, accuracy = c("EQ","TH"), accuracy.cal="AROC", control=controlINPROCreg(p=1,kbin=30,step.p=0.01), newdata = data.frame(age = seq(18,85,l=50))) m0.men summary(m0.men) plot(m0.men)
Summary method for DNPROCreg objects.
## S3 method for class 'DNPROCreg' summary(object, ...)
## S3 method for class 'DNPROCreg' summary(object, ...)
object |
an object of class |
.
... |
further arguments passed to or from other methods. Not yet implemented. |
Maria Xose Rodriguez - Alvarez and Javier Roca-Pardinas
See Also DNPROCreg
, plot.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)
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)
Summary method for INPROCreg objects.
## S3 method for class 'INPROCreg' summary(object, ...)
## S3 method for class 'INPROCreg' summary(object, ...)
object |
an object of class |
.
... |
further arguments passed to or from other methods. Not yet implemented. |
Maria Xose Rodriguez - Alvarez and Javier Roca-Pardinas
See Also INPROCreg
.
data(endosim) # Evaluate the effect of age on the accuracy of the body mass index for males m0.men <- INPROCreg(marker = "bmi", covariate = "age", group = "idf_status", tag.healthy = 0, data = subset(endosim, gender == "Men"), ci.fit = FALSE, test = FALSE, accuracy = c("EQ","TH"), accuracy.cal="AROC", control=controlINPROCreg(p=1,kbin=30,step.p=0.01), newdata = data.frame(age = seq(18,85,l=50))) summary(m0.men) plot(m0.men)
data(endosim) # Evaluate the effect of age on the accuracy of the body mass index for males m0.men <- INPROCreg(marker = "bmi", covariate = "age", group = "idf_status", tag.healthy = 0, data = subset(endosim, gender == "Men"), ci.fit = FALSE, test = FALSE, accuracy = c("EQ","TH"), accuracy.cal="AROC", control=controlINPROCreg(p=1,kbin=30,step.p=0.01), newdata = data.frame(age = seq(18,85,l=50))) summary(m0.men) plot(m0.men)