Description Usage Arguments Value Examples
This function searches a grid to find the bandwidth that
minimizes mean squared leave-one-out cross validation error.
The procedure uses a first-order kernel, and thus
yields a bandwidth on the order of n^(-1/3). We recommend using a
bandwidth on the order of n^(-7/24) in the kernel estimator, which can be
obtained by multiplying the bandwidth returned by the dab
function
by n^(1/24).
1 | dab(dat, lower, upper, tau, tau2, length.out = 5000)
|
dat |
a dataframe with one row per individual with the variables
|
lower |
the lower end of the interval that will be searched |
upper |
the upper end of the interval that will be searched |
tau |
the maximum visit time that will be used in the cross-validation |
tau2 |
the maximum time that individuals were at risk for a visit, based on the study design |
length.out |
the number of grid points in the interval [lower, upper] that will be considered. Default is 5000. |
the bandwidth minimizes cross-validation error. We recommend multiplying by n^(1/24) to get a bandwidth on the order of n^(-7/24) for the kernel estiamtor.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.