Description Usage Arguments Value Author(s)
View source: R/fqr_prediction.R
Return point predictions and prediction intervals for functional scalar-on-image quantile regression and outputs from FPCA.
1 2 3 4 5 6 7 8 9 10 11 12 13 | fqr_prediction(
data_projected_name,
train_sub,
test_sub,
data_demo,
pve_threshold,
pred_table,
qr_pen = "LASSO",
qr_postLASSO = FALSE,
lambda = NULL,
tau_levels,
return_func_coef = FALSE
)
|
data_projected_name |
text file with the smoothing projections for each statistical unit |
train_sub |
rownames of |
test_sub |
rownames of |
data_demo |
demographic data with the scalar outcome of interest |
pred_table |
table with predictions for each statistical unit |
qr_pen |
penalty type for quantile regression |
qr_postLASSO |
refit quantile regression with LASSO selected variables? |
lambda |
lambda parameter for penalised quantile regression |
tau_levels |
quantiles for which quantile regression is fitted |
return_func_coef |
return the functional coefficient? |
A list with the following elements
table with predictions for each statistical unit
number of functional principal components selected
Eigenimages
Regression coefficient from median regression
Regression coefficient from regression with lower quantile
Regression coefficient from regression with lower quantile
Value of lambda
for which model_med_coef
is extracted
Marco Palma, M.Palma@warwick.ac.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.