Learn R Programming

⚠️There's a newer version (0.4.17) of this package.Take me there.

pgam (version 0.4.1)

Poisson-Gamma Additive Models.

Description

This work is aimed at extending a class of state space models for Poisson count data, so called Poisson-Gamma models, towards a semiparametric specification. Just like the generalized additive models (GAM), cubic splines are used for covariate smoothing. The semiparametric models are fitted by an iterative process that combines maximization of likelihood and backfitting algorithm.

Copy Link

Version

Install

install.packages('pgam')

Monthly Downloads

232

Version

0.4.1

License

GPL version 2 or later

Maintainer

Washington Junger

Last Published

August 19th, 2022

Functions in pgam (0.4.1)

pgam.likelihood

Likelihood function to be maximized
predict.pgam

Prediction
aihrio

Sample dataset
pgam.parser

Read the model formula and split it into the parametric and nonparametric partitions
elapsedtime

Utility function
backfitting

Backfitting algorithm
pgam.fit

One-step ahead prediction and variance
tbl2tex

LaTeX table exporter
deviance.pgam

Deviance extraction
framebuilder

Utility function
residuals.pgam

Residuals extraction
print.summary.pgam

Summary output
formparser

Read the model formula and split it into the parametric and nonparametric partitions
pgam.filter

Estimation of the conditional distributions parameters of the level
logLik.pgam

Loglik extraction
AIC.pgam

AIC extraction
fnz

Utility function
intensity

Utility function
coef.pgam

Coefficients extraction
periodogram

Raw Periodogram
envelope

Generic function for simulated envelope generation.
bkfsmooth

Smoothing of nonparametric terms
pgam.par2psi

Utility function
envelope.pgam

Normal plot with simulated envelope of the residuals.
pgam

Poisson-Gamma Additive Models
plot.pgam

Plot of estimated curves
link

Utility function
summary.pgam

Summary output
g

Utility function
lpnorm

Utility function
print.pgam

Model output
pgam.psi2par

Utility function
fitted.pgam

Fitted values extraction
pgam.hes2se

Utility function
f

Utility function
pgam.smooth

Smoothing of nonparametric terms