Description Usage Arguments Details Value See Also Examples
View source: R/pred_int_tdist.R
Simple wrapper which 'bootstraps' the trial means.
1 2 3 4 5 6 7 8 | pred_int_tdist_df(
x,
level = 0.95,
neval = 500,
interval = c("prediction", "confidence"),
var.names = c("y", "trial"),
formula = NULL
)
|
x |
should be an object of class "data.frame" |
level |
coverage level with default 0.95 |
neval |
number of evaluations (default = 500) |
interval |
type of interval, by default is "prediction" |
var.names |
names of variables for response and 'trial' |
formula |
alternative formula interface |
Calculate prediction interval based on the t-distribution. It uses 'pred_int_tdist_df'
the prediction is at the mean of 'x'. Missing values are not allowed.
a prediction interval
function 'pred_int_tdist_df'
1 2 3 4 5 6 | ## Not run:
## Prediciton interval for soybean data
data(soyrs)
pdi <- pred_int_tdist_df(soyrs, var.names = c("lrr","Trial_ID"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.