se: Extract Standard Errors

View source: R/util.R

seR Documentation

Extract Standard Errors

Description

se is a generic function which extracts standard errors from objects.

Usage

se(x)

Arguments

Object Input

Object to interrogate for standard errors.

x

an object for which the extraction of standard errors is meaningful.

Details

This function extracts stored standard errors; it does not select bandwidths, refit a model, or run a bootstrap. For estimators with a se fitting control, request se = TRUE when those errors will be needed. With se = FALSE, errors are deliberately absent and this accessor explains how to refit with se = TRUE, reusing the bandwidth object without repeating bandwidth selection. Requested but unavailable standard errors may remain NA; extraction does not replace or recompute them.

Value

Standard errors extracted from the model object x.

Note

This method currently only supports objects from the np library.

Author(s)

Tristen Hayfield tristen.hayfield@gmail.com, Jeffrey S. Racine racinej@mcmaster.ca

See Also

fitted, residuals, coef, and gradients, for related methods; np for supported objects.

Examples

x <- rnorm(10)
se(npudens(npudensbw(~x), se = TRUE))

np documentation built on Nov. 25, 2026, 1:06 a.m.