Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

param

Extract All Parameters from a Model — Generic Function


Description

This function extracts all parameters (regression coefficients, variance parameters etc.) from a fitted model.

Usage

param(object, ...)

Arguments

object

any fitted model object from which parameters may be extracted.

...

additional arguments like digits to control how many digits should be printed.

Details

This function is generic (see methods); method functions can be written to handle specific classes of data. Classes which already have methods for this function include: nlreg.

Value

all parameters (regression coefficients, variance parameters etc.) of a fitted model.

See Also

Examples

data(metsulfuron)
metsulfuron.nl <- 
    nlreg( log(area) ~ log( b1+(b2-b1) / (1+(dose/b4)^b3) ), 
           weights = ~( 1+dose^exp(g) )^2, data = metsulfuron, 
           start = c(b1 = 138, b2 = 2470, b3 = 2, b4 = 0.07, g = log(0.3)),
           hoa = TRUE )
param( metsulfuron.nl )
##          b1           b2           b3           b4            g         logs
## 139.0395322 2471.5097481    1.7091297    0.0772535   -1.2582597   -3.8198406

nlreg

Higher Order Inference for Nonlinear Heteroscedastic Models

v1.2-2.2
GPL (>= 2) | file LICENCE
Authors
S original by Alessandra R. Brazzale <alessandra.brazzale@unipd.it> and Ruggero Bellio <ruggero.bellio@uniud.it>. R port by Alessandra R. Brazzale <alessandra.brazzale@unipd.it>, following earlier work by Douglas Bates.
Initial release
2019-01-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.