pred_int_tdist_df: Prediction interval for a 'data.frame' based on the...

Description Usage Arguments Details Value See Also Examples

View source: R/pred_int_tdist.R

Description

Simple wrapper which 'bootstraps' the trial means.

Usage

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
)

Arguments

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

Details

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.

Value

a prediction interval

See Also

function 'pred_int_tdist_df'

Examples

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)

femiguez/predintma documentation built on July 5, 2021, 4:16 a.m.