Learn R Programming

GCEstim (version 0.1.0)

coefficients.neagging: Extract neagging Coefficients

Description

Extract coefficients from a neagging object

Usage

# S3 method for neagging
coefficients(object, which = which.min(object$error)[[1]], ...)

Value

Returns the coefficients from a neagging object

Arguments

object

Fitted neagging model object.

which

Number of aggregated models. The coefficients returned are by default the ones that produced the lowest in sample error.

...

Additional arguments.

Author

Jorge Cabral, jorgecabral@ua.pt

Examples

Run this code
# \donttest{
res_gce_package <-
  lmgce(y ~ .,
        data = dataGCE,
        boot.B = 50,
        seed = 230676)

res_neagging <- neagging(res_gce_package)
coefficients(res_neagging)
coefficients(res_neagging, which = ncol(res_neagging$matrix))
# }

Run the code above in your browser using DataLab