coef.psar: Extract method for model coefficients from objects of class...

View source: R/coefficients.psar.R

coef.psarR Documentation

Extract method for model coefficients from objects of class psar.

Description

Extract method for model coefficients from objects of class psar.

Usage

## S3 method for class 'psar'
coef(object, ...)

Arguments

...

further arguments passed to or from other methods.

z

object of class psar.

Value

A vector of the coefficients of the model including fixed and random effects.

See Also

  • logLik.psar Extract log-likelihood or restricted log-likelihood for fitted psar objects.

Examples

################################################
 ###################### Examples using a panel data of rate of
 ###################### unemployment for 103 Italian provinces in period 1996-2014.
library(sptpsar)
data(unemp_it); Wsp <- Wsp_it
 ######################  GAM pure
form1 <- unrate ~ partrate + agri + cons +
                 pspl(serv,nknots=15) +
                 pspl(empgrowth,nknots=20)
gamsar <- psar(form1,data=unemp_it,sar=TRUE,Wsp=Wsp_it)
summary(gamsar)
coef(gamsar)

rominsal/sptpsar documentation built on June 1, 2022, 2:03 a.m.