Description Usage Arguments Value Examples
This function fits a grouped weighted quantile sum (GWQS) regression model.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
y |
A vector containing outcomes for validation. |
y.train |
A vector containing outcomes for training. If left as NULL the validation data will be used for training as well. |
x |
A matrix of component data for validation. |
x.train |
A matrix of component data for training. If left as NULL the validation data will be used for training as well. |
z |
A vector or matrix of covariates for validation. |
z.train |
A vector or matrix of covariates for training. If left as NULL the validation data will be used for training as well. |
x.s |
A vector of the number of components in each index. |
B |
The number of bootstrap samples, must be 1 or more. |
n.quantiles |
The number of quantiles to apply to data. |
pars |
A vector of initial values, listed in order: beta naught intercept and group index beta coefficients, individual chemical weight coefficients, and covariate coefficients. |
func |
The objective function to be used (must match outcome data type); currently only fun args "continuous" or "binary" are supported. |
ineqLB |
Vector of lower bounds for betas and weights, set to -2 by default. |
ineqUB |
Vector of upper bounds for betas and weights, set to 2 be default. |
tol |
Tolerance level for bootstrap convergence. |
delta |
Step size for bootstrap procedure. |
A list of 3 containing the GWQS estimate based on calculated weights, the GWQS model fit to validation data, and weight estimates
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.