jackknife | R Documentation |
Perform Jackknife Resampling on an Object
jackknife(object, ...)
## S3 method for class 'SensIAT_within_group_model'
jackknife(object, time, ...)
## S3 method for class 'SensIAT_fulldata_model'
jackknife(object, time, ...)
object |
An object to cross validate on. |
... |
Additional arguments passed to the method. |
time |
Time points for which to estimate the response. |
A data frame of the jackknife resampling results. For SensIAT
objects,
a tibble
with columns alpha, time, jackknife_mean, and jackknife_var,
where jackknife_mean is the mean of the jackknife estimates and jackknife_var
is the estimated variances of the response at the given time points for the
specified alpha values.
jackknife(SensIAT_within_group_model)
: Perform jackknife resampling on a SensIAT_within_group_model
object.
jackknife(SensIAT_fulldata_model)
: Perform jackknife resampling on a SensIAT_fulldata_model
object.
## Not run:
object <-
fit_SensIAT_within_group_model(
group.data = SensIAT_example_data,
outcome_modeler = fit_SensIAT_single_index_fixed_coef_model,
alpha = c(-0.6, -0.3, 0, 0.3, 0.6),
id = Subject_ID,
outcome = Outcome,
time = Time,
intensity.args=list(bandwidth = 30),
knots = c(60,260,460),
End = 830
)
jackknife.estimates <- SensIAT_jackknife(object, time = c(90, 180, 270, 360, 450))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.