msss_pred: Predictions and summaries from msss_fit

Description Usage Arguments Value Examples

View source: R/predict_fn.R View source: R/mrsss_c_work_z_test_bedtestpredfnBMA.R

Description

Predictions and summaries from msss_fit

Usage

1
2
msss_pred(locations, results, design_mat = NULL, level = 0.95,
  model_used = 1:100, type = "pred")

Arguments

locations

1d vector or 2d matrix of locations of the locations you'd like to predict at

results

output from msss_fit

design_mat

if fixed effects are part of the model, design matrix for the locations

level

confidence level, not always needed, .95 is defaykt

model_used

vector of how many top models to use for Bayesian model averaging, 1:100 is default, if slow try 1:10

type

'pred' is default for prediction interval, 'mean' is interval for the mean, 'noint' is just a prediction without lower and upper bounds and is much faster, 'rescount' counts how many resoltuions are active at each point

Value

list with either a row matrix of predictions, a row matrix of resolutions active, or 3 row matricies with upper bounds, predicted values, and lower bound

Examples

1
FILLER

daktx2/MSSS documentation built on May 24, 2020, 4:28 a.m.