as.data.frame.predint {predint}R Documentation

Store prediction intervals or limits as a data.frame

Description

Get the prediction intervals or limits of an object of class predint and save them as a data.frame.

Usage

## S3 method for class 'predint'
as.data.frame(x, ...)

Arguments

x

object of class predint

...

additional arguments to be passed to base::as.data.frame()

Value

This function returns the prediction intervals or limits stored in an object of class "predint" as a data.frame

Examples

### PI for quasi-Poisson data
pred_int <- quasi_pois_pi(histdat=ames_HCD,
                          newoffset=3,
                          nboot=100,
                          traceplot = FALSE)

# Return the prediction intervals as a data.frame
as.data.frame(pred_int)

# Please note that nboot was set to 100 in order to decrease computing time
# of the example. For a valid analysis set nboot=10000.

[Package predint version 2.2.1 Index]