Description Usage Arguments Value Author(s) Examples
This function estimates the time-varying coefficient models for a binary response variable.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
formula |
A formula class object. Provides information about the names of the response and predictor variables. |
data |
A data frame containing the variables needed for the function. |
time |
The name of the variable indicating the time points for each observation. |
id |
The name of the variable to group observations. Necessary when dealing with repeated measurements such as longitudinal data. |
ngrids |
When specified, a vector of size ngrid is created for the varying-coefficient values. The default value is 200. The vector is creates using the maximum and minimum from the provided time points. |
grid_points |
A vector indicating the grid points to estimate the varying coefficient values. When specified, ngrid is ignored. |
bandwidth |
A numeric value indicating the bandwidth. Default is the tenth of the range of the time points. |
kernel |
The name of the kernel function used to estimate the varying-coefficient values. Default is Epanechnikov. |
se |
If set TRUE, a bootstrap method is applied to estimate the standard errors and percentiles. |
alpha |
A value indicating the significance level for the percentiles. |
nboot |
A number indicating how many boot samples to construct. |
binary_vcm returns a list containing the estimated varying coefficients
estimates: A list containing two matrices:
est: a matrix for the estimates, each row represents the estimate of the varying coefficient
deriv: a matrix for the first derivative, each row represents the derivative of the varying coefficient
bootstrap_results: If specified, a list containing the elements below
boot_se: A list containing two matrices for the standard errors:
est: a matrix for the estimates, each row represents the estimate of the varying coefficient
deriv: a matrix for the first derivative, each row represents the derivative of the varying coefficient
boot_lower: A list containing two matrices for the lower percentiles:
est: a matrix for the estimates, each row represents the estimate of the varying coefficient
deriv: a matrix for the first derivative, each row represents the derivative of the varying coefficient
boot_upper:A list containing two matrices for the upper percentiles:
est: a matrix for the estimates, each row represents the estimate of the varying coefficient
deriv: a matrix for the first derivative, each row represents the derivative of the varying coefficient
boot_samples: An array containing the bootstrap samples
time_points: The time points used for the estimates
Isaac Quintanilla Salinas
1 2 | binary_vcm(formula = Y~x1+x2, data = binary_data, time = time,
id = id, se = TRUE, nboot = 100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.