get_validation_summaries | R Documentation |
Obtains suitable validation summary statistics from MCMC samples obtained for validation.
get_validation_summaries(samps, level = 95)
samps |
A matrix of N by p samples for the p parameters |
level |
Desired confidence level - defaults to 95%. |
A data frame containing five columns: meanpred, medianpred, sdpred, low (er limit), and up (per limit) for the p parameters.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.