View source: R/coefficients.psar.R
coef.psar | R Documentation |
Extract method for model coefficients from objects of class psar.
## S3 method for class 'psar' coef(object, ...)
... |
further arguments passed to or from other methods. |
z |
object of class psar. |
A vector of the coefficients of the model including fixed and random effects.
logLik.psar
Extract log-likelihood or restricted
log-likelihood for fitted psar objects.
################################################ ###################### 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.