View source: R/nested.compare_241224.R
nested.compare | R Documentation |
Compare cross-validation model fits in terms of average performances from the nested cross validation fits. In general the standard deviations for the performance measures evaluated on the leave-out samples may be biased. While the standard deviations of the paired within fold differences of performances intuitively might be less biased this has not been shown. See the package vignettes for more discussion.
nested.compare(object, type = "devrat", digits = 4, pow = 1)
object |
A nested.glmnetr output object. |
type |
determines what type of nested cross validation performance measures are compared. Possible values are "devrat" to compare the deviance ratios, i.e. the fractional reduction in deviance relative to the null model deviance, "agree" to compare agreement, "lincal" to compare the linear calibration slope coefficients, "intcal" to compare the linear calibration intercept coefficients, from the nested cross validation. |
digits |
digits for printing of z-scores, p-values, etc. with default of 4 |
pow |
the power to which the average of correlations is to be raised. Only applies to the "gaussian" model. Default is 2 to yield R-square but can be on to show correlations. pow is ignored for the family of "cox" and "binomial". |
A printout to the R console.
nested.cis
, summary.nested.glmnetr
, nested.glmnetr
sim.data=glmnetr.simdata(nrows=1000, ncols=100, beta=NULL)
xs=sim.data$xs
y_=sim.data$yt
event=sim.data$event
# for this example we use a small number for folds_n to shorten run time
fit3 = nested.glmnetr(xs, NULL, y_, event, family="cox", folds_n=3)
nested.compare(fit3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.