Learn R Programming

brr (version 1.0.0)

inference.brr: Credibility intervals and estimates

Description

Get credibility intervals and estimates from a brr object

Usage

"confint"(object, parm = NULL, level = 0.95, intervals = "all", ...)
"print"(x, style = "grid", ...)
"coef"(object, parameter = "phi", ...)
"print"(x, ...)
"predict"(object, level = 0.95, ...)
"print"(x, style = "grid", ...)

Arguments

object
a brr object
parm
ignored
level
confidence level
intervals
a character vector, the intervals to be returned
...
other aguments passed to brr_intervals or brr_estimates
x
the output to be printed
style
the style of the table to print (passed to pandoc.table.return)
parameter
parameter of interest "phi" or "VE" (=1-phi)

Value

confint.brr returns a list of confidence intervals, coef.brr returns a list of estimates, predict.brr returns a data frame.

Details

confint.brr is a wrapper to brr_intervals and coef.brr is a wrapper to brr_estimates

Examples

Run this code
model <- Brr(x=10, y=10, S=100, T=100)
confint(model)
coef(model)
predict(model)
predict(model, Snew=1000, Tnew=1000)
model <- model(Snew=1000, Tnew=1000)
predict(model)

Run the code above in your browser using DataLab