Learn R Programming

PLNmodels (version 0.11.7)

standard_error: Component-wise standard errors of Theta

Description

Extracts univariate standard errors for the estimated coefficient of Theta. Standard errors are computed from the (approximate) Fisher information matrix. See fisher.PLNfit() for more details on the approximations.

Usage

standard_error(object, type)

# S3 method for PLNfit standard_error(object, type = c("wald", "louis"))

Value

A p * d positive matrix (same size as \(\Theta\)) with standard errors for the coefficients of \(\Theta\)

Arguments

object

an R6 object with class PLNfit

type

Either Wald (default) or Louis. Approximation scheme used to compute the Fisher information matrix

Methods (by class)

  • standard_error(PLNfit): Component-wise standard errors of Theta in PLNfit

See Also

vcov.PLNfit() for the complete Fisher information matrix

Examples

Run this code
data(trichoptera)
trichoptera <- prepare_data(trichoptera$Abundance, trichoptera$Covariate)
myPLN <- PLN(Abundance ~ 1 + offset(log(Offset)), data = trichoptera)
standard_error(myPLN, "wald")

Run the code above in your browser using DataLab