get_validation_summaries {bmstdr} | R Documentation |
Obtains suitable validation summary statistics from MCMC samples obtained for validation.
Description
Obtains suitable validation summary statistics from MCMC samples obtained for validation.
Usage
get_validation_summaries(samps, level = 95)
Arguments
samps |
A matrix of N by p samples for the p parameters |
level |
Desired confidence level - defaults to 95%. |
Value
A data frame containing five columns: meanpred, medianpred, sdpred, low (er limit), and up (per limit) for the p parameters.
Examples
set.seed(4)
vrows <- sample(nrow(nysptime), 100)
M1 <- Bsptime(model="lm", formula=y8hrmax~xmaxtemp+xwdsp+xrh, data=nysptime,
validrows=vrows, scale.transform = "SQRT")
samps<- M1$valpreds
valsums <- get_validation_summaries(samps)
head(valsums)
[Package bmstdr version 0.7.9 Index]