Learn R Programming

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

VGAM (version 0.9-8)

Vector Generalized Linear and Additive Models

Description

An implementation of about 6 major classes of statistical regression models. At the heart of it are the vector generalized linear and additive model (VGLM/VGAM) classes. Currently only fixed-effects models are implemented, i.e., no random-effects models. Many (150+) models and distributions are estimated by maximum likelihood estimation (MLE) or penalized MLE, using Fisher scoring. VGLMs can be loosely thought of as multivariate GLMs. VGAMs are data-driven VGLMs (i.e., with smoothing). The other classes are RR-VGLMs (reduced-rank VGLMs), quadratic RR-VGLMs, reduced-rank VGAMs, RCIMs (row-column interaction models)---these classes perform constrained and unconstrained quadratic ordination (CQO/UQO) models in ecology, as well as constrained additive ordination (CAO). Note that these functions are subject to change, especially before version 1.0.0 is released; see the NEWS file for latest changes.

Copy Link

Version

Install

install.packages('VGAM')

Monthly Downloads

43,625

Version

0.9-8

License

GPL-2

Maintainer

Thomas Yee

Last Published

May 11th, 2015

Functions in VGAM (0.9-8)

Posnorm

The Positive-Normal Distribution
vglm.control

Control function for vglm
yulesimon

Yule-Simon Family Function
posnormal

Positive Normal Distribution Family Function
rigff

Reciprocal Inverse Gaussian distribution
reciprocal

Reciprocal link function
Tikuv

A Short-tailed Symmetric Distribution
rdiric

The Dirichlet distribution
rhobit

Rhobit Link Function
seq2binomial

The Two-stage Sequential Binomial Distribution Family Function
truncweibull

Truncated Weibull Distribution Family Function
rrvglm-class

Class ``rrvglm''
venice

Venice Maximum Sea Levels Data
vgam.control

Control function for vgam
Triangle

The Triangle Distribution
powerlink

Power Link Function
smartpred

Smart Prediction
Zanegbin

Zero-Altered Negative Binomial Distribution
rec.normal

Upper Record Values from a Univariate Normal Distribution
Sinmad

The Singh-Maddala Distribution
prinia

Yellow-bellied Prinia
propodds

Proportional Odds Model for Ordinal Regression
rrar

Nested reduced-rank autoregressive models for multiple time series
rrvglm.optim.control

Control function for rrvglm() calling optim()
Tobit

The Tobit Distribution
qtplot.gumbel

Quantile Plot for Gumbel Regression
quasibinomialff

Quasi-Binomial Family Function
studentt

Student t Distribution
vonmises

von Mises Distribution Family Function
undocumented-methods

Undocumented Methods Functions
zageometric

Zero-Altered Geometric Distribution
qvar

Quasi-variances Extraction Function
put.smart

Adds a List to the End of the List ``.smart.prediction''
zipoisson

Zero-Inflated Poisson Distribution Family Function
rrvglm

Fitting Reduced-Rank Vector Generalized Linear Models (RR-VGLMs)
probit

Probit Link Function
waitakere

Waitakere Ranges Data
Skellam

The Skellam Distribution
Zapois

Zero-Altered Poisson Distribution
trplot.qrrvglm

Trajectory plot for QRR-VGLMs
Rayleigh

The Rayleigh Distribution
sc.studentt2

Scaled Student t Distribution with 2 df Family Function
prentice74

Prentice (1974) Log-gamma Distribution
zeta

Riemann's Zeta Function
s

Defining smooths in VGAM formulae
vsmooth.spline

Vector cubic smoothing spline
rec.exp1

Upper Record Values from a 1-parameter Exponential Distribution
vglm

Fitting Vector Generalized Linear Models
qtplot.lmscreg

Quantile Plot for LMS Quantile Regression
predictvglm

Predict Method for a VGLM fit
pospoisson

Positive Poisson Distribution Family Function
ucberk

University California Berkeley Graduate Admissions
Posnegbin

Positive-Negative Binomial Distribution
Yules

Yule-Simon Distribution
quasipoissonff

Quasi-Poisson Family Function
Zigeom

Zero-Inflated Geometric Distribution
alaplace

Asymmetric Laplace Distribution Family Functions
setup.smart

Smart Prediction Setup
Pospois

Positive-Poisson Distribution
ruge

Rutherford-Geiger Polonium Data
Zibinom

Zero-Inflated Binomial Distribution
Truncpareto

The Truncated Pareto Distribution
vglm-class

Class ``vglm''
vgam-class

Class ``vgam''
waldff

Wald Distribution Family Function
Tol

Tolerances
double.cens.normal

Univariate Normal Distribution with Double Censoring
zipf

Zipf Distribution Family Function
vgam

Fitting Vector Generalized Additive Models
dirichlet

Fitting a Dirichlet Distribution
riceff

Rice Distribution Family Function
prplot

Probability Plots for Categorical Data Analysis
fff

F Distribution Family Function
zero

The zero Argument in VGAM Family Functions
Hzeta

Haight's Zeta Distribution
zibinomial

Zero-Inflated Binomial Distribution Family Function
toxop

Toxoplasmosis Data
genpoisson

Generalized Poisson distribution
zanegbinomial

Zero-Altered Negative Binomial Distribution
rlplot.egev

Return Level Plot for GEV Fits
calibrate.qrrvglm

Calibration for CQO and CAO models
Select

Select variables for a formula response or the RHS of a formula
explogff

Exponential Logarithmic Distribution Family Function
loge

Log link function, and variants
betageometric

Beta-geometric Distribution Family Function
binom2.rho

Bivariate Probit Model (Family Function)
nparam.vlm

Number of Parameters
sratio

Ordinal Regression with Stopping Ratios
Bifgmcop

Farlie-Gumbel-Morgenstern's Bivariate Distribution
vglmff-class

Class ``vglmff''
constraints

Constraint Matrices
bilogis

Bivariate Logistic Distribution
inv.paralogistic

Inverse Paralogistic Distribution Family Function
AICvlm

Akaike's Information Criterion
cens.normal

Censored Normal Distribution
foldsqrt

Folded Square Root Link Function
uninormal

Univariate Normal Distribution
prats

Pregnant Rats Toxological Experiment Data
wrapup.smart

Cleans Up After Smart Prediction
Rice

The Rice Distribution
SurvS4

Create a Survival Object
zabinomial

Zero-Altered Binomial Distribution
cdf.lmscreg

Cumulative Distribution Function for LMS Quantile Regression
chinese.nz

Chinese Population in New Zealand 1867--2001 Data
bifrankcop

Frank's Bivariate Distribution Family Function
cratio

Ordinal Regression with Continuation Ratios
fisk

Fisk Distribution family function
Bistudentt

Bivariate Student-t distribution cumulative distribution function
Benford

Benford's Distribution
betaR

The Two-parameter Beta Distribution Family Function
cumulative

Ordinal Regression with Cumulative Probabilities
identitylink

Identity Link Function
dAR1

The AR-1 Autoregressive Process
felix

Felix Distribution Family Function
lvplot

Latent Variable Plot
Pareto

The Pareto Distribution
A1A2A3

The A1A2A3 Blood Group System
Zabinom

Zero-Altered Binomial Distribution
gew

General Electric and Westinghouse Data
gammahyperbola

Gamma Hyperbola Bivariate Distribution
Inv.gaussian

The Inverse Gaussian Distribution
amlbinomial

Binomial Logistic Regression by Asymmetric Maximum Likelihood Estimation
Zinegbin

Zero-Inflated Negative Binomial Distribution
VGAM-package

Vector Generalized Linear and Additive Models
calibrate.qrrvglm.control

Control function for CQO/CAO calibration
bigumbelIexp

Gumbel's Type I Bivariate Distribution Family Function
gengammaUC

The Generalized Gamma Distribution
AB.Ab.aB.ab

The AB-Ab-aB-ab Blood Group System
lino

Generalized Beta Distribution Family Function
MNSs

The MNSs Blood Group System
clo

Redirects the user to rrvglm
gompertz

Gompertz Distribution Family Function
gengamma.stacy

Generalized Gamma distribution family function
zipebcom

Exchangeable bivariate cloglog odds-ratio model from a zero-inflated Poisson distribution
exppoisson

Exponential Poisson Distribution Family Function
gev

Generalized Extreme Value Distribution Family Function
gpd

Generalized Pareto Distribution Family Function
biplot-methods

Biplot of Constrained Regression Models
plotqtplot.lmscreg

Quantile Plot for LMS Quantile Regression
lvplot.qrrvglm

Latent Variable Plot for QO models
cloglog

Complementary Log-log Link Function
enzyme

Enzyme Data
GenbetaII

The Generalized Beta II Distribution
flourbeetle

Mortality of Flour Beetles from Carbon Disulphide
AA.Aa.aa

The AA-Aa-aa Blood Group System
Posbinom

Positive-Binomial Distribution
golf

Gamma-Ordinal Link Function
binormal

Bivariate normal distribution family function
betabinomial

Beta-binomial Distribution Family Function
beggs

Bacon and Eggs Data
aux.posbernoulli.t

Auxiliary Function for the Positive Bernoulli Family Function with Time Effects
logoff

Log link function with an offset
Biclaytoncop

Clayton Copula (Bivariate) Distribution
olympics

2008 and 2012 Summer Olympic Final Medal Count Data
expgeom

The Exponential Geometric Distribution
inv.binomial

Inverse Binomial Distribution Family Function
Bisa

The Birnbaum-Saunders Distribution
biamhcop

Ali-Mikhail-Haq Distribution Family Function
CommonVGAMffArguments

Common VGAM family function Arguments
expint

The Exponential Integral and Variants
benini1

Benini Distribution Family Function
bifgmexp

Bivariate Farlie-Gumbel-Morgenstern Exponential Distribution Family Function
Log

Logarithmic Distribution
chisq

Chi-squared Distribution
cauchy

Cauchy Distribution Family Function
Frank

Frank's Bivariate Distribution
BICvlm

Bayesian Information Criterion
V1

V1 Flying-Bombs Hits in London
depvar

Response variable extracted
skewnorm

Skew-Normal Distribution
Coef.qrrvglm-class

Class ``Coef.qrrvglm''
coefvlm

Extract Model Coefficients
coalminers

Breathlessness and Wheeze Amongst Coalminers Data
Max

Maximums
freund61

Freund's (1961) Bivariate Extension of the Exponential Distribution
Biplackett

Plackett's Bivariate Copula
explink

Exponential Link Function
gumbel

Gumbel Distribution Family Function
Brat

Inputting Data to fit a Bradley Terry Model
amlexponential

Exponential Regression by Asymmetric Maximum Likelihood Estimation
lognormal

Lognormal Distribution
binom2.or

Bivariate Binary Regression with an Odds Ratio (Family Function)
rcqo

Constrained Quadratic Ordination
expgeometric

Exponential Geometric Distribution Family Function
gammaR

2-parameter Gamma Distribution
nbolf

Negative Binomial-Ordinal Link Function
genray

The Generalized Rayleigh Distribution
yip88

Zero-Inflated Poisson Distribution (Yip (1988) algorithm)
backPain

Data on Back Pain Prognosis, from Anderson (1984)
betaff

The Two-parameter Beta Distribution Family Function
hunua

Hunua Ranges Data
Gumbel-II

The Gumbel-II Distribution
Rcim

Mark the Baseline of Row and Column on a Matrix data
poisson.points

Poisson-points-on-a-plane/volume Distances Distribution
biplackettcop

Plackett's Bivariate Copula Family Function
Benini

The Benini Distribution
Kumar

The Kumaraswamy Distribution
fill

Creates a Matrix of Appropriate Dimension
posbernoulli.t

Positive Bernoulli Family Function with Time Effects
crashes

Crashes on New Zealand Roads in 2009
hspider

Hunting Spider Data
Coef.vlm

Extract Model Coefficients for VLM Objects
weightsvglm

Prior and Working Weights of a VGLM fit
grc

Row-Column Interaction Models including Goodman's RC Association Model and Unconstrained Quadratic Ordination
Frechet

The Frechet Distribution
expexpff

Exponentiated Exponential Distribution
normal.vcm

Univariate Normal Distribution as a Varying-Coefficient Model
negbinomial.size

Negative Binomial Distribution Family Function With Known Size
binomialff

Binomial Family Function
melbmaxtemp

melbmaxtemp daily maximum temperatures
plotvgam.control

Control Function for plotvgam()
loglinb2

Loglinear Model for Two Binary Responses
Betanorm

The Beta-Normal Distribution
Links

Link functions for VGLM/VGAM/etc. families
chest.nz

Chest Pain in NZ Adults Data
Expectiles-Exponential

Expectiles of the Exponential Distribution
iam

Index from Array to Matrix
dgenpois

The Generalized Poisson Distribution
pgamma.deriv.unscaled

Derivatives of the Incomplete Gamma Integral (Unscaled Version)
mix2exp

Mixture of Two Exponential Distributions
dlogF

log F Distribution
Expectiles-Uniform

Expectiles of the Uniform Distribution
gamma2

2-parameter Gamma Distribution
Expectiles-sc.t2

Expectiles/Quantiles of the Scaled Student t Distribution with 2 Df
paretoff

Pareto and Truncated Pareto Distribution Family Functions
geometric

Geometric (Truncated and Untruncated) Distributions
leukemia

Acute Myelogenous Leukemia Survival Data
is.zero

Zero Constraint Matrices
Lomax

The Lomax Distribution
exponential

Exponential Distribution
hypersecant

Hyperbolic Secant Distribution Family Function
explog

The Exponential Logarithmic Distribution
acat

Ordinal Regression with Adjacent Categories Probabilities
Nakagami

Nakagami Distribution
Coef.rrvglm

Returns Important Matrices etc. of a RR-VGLM Object
genrayleigh

Generalized Rayleigh Distribution Family Function
Coef.rrvglm-class

Class ``Coef.rrvglm''
gamma1

1-parameter Gamma Distribution
lgamma1

Log-gamma Distribution Family Function
garma

GARMA (Generalized Autoregressive Moving-Average) Models
cgo

Redirects the user to cqo
lerch

Lerch Phi Function
Zipois

Zero-Inflated Poisson Distribution
fisherz

Fisher's Z Link Function
gevUC

The Generalized Extreme Value Distribution
cqo

Fitting Constrained Quadratic Ordination (CQO)
get.smart.prediction

Retrieves ``.smart.prediction''
foldnormal

Folded Normal Distribution Family Function
kendall.tau

Kendall's Tau Statistic
borel.tanner

Borel-Tanner Distribution Family Function
logF

Natural Exponential Family Generalized Hyperbolic Secant Distribution Family Function
cens.poisson

Censored Poisson Family Function
laplace

Laplace Distribution
oxtemp

Oxford Temperature Data
ducklings

Relative Frequencies of Serum Proteins in white Pekin ducklings
guplot

Gumbel Plot
linkfun.vglm

Link Functions for VGLMs
logit

Logit Link Function
hormone

Hormone Assay Data
is.smart

Test For a Smart Object
grain.us

Grain Prices Data in USA
mccullagh89

McCullagh (1989) Distribution Family Function
Zageom

Zero-Altered Geometric Distribution
smart.mode.is

Determine What Mode the Smart Prediction is In
AR1

Autoregressive Process with Order-1 Family Function
bratt

Bradley Terry Model With Ties
Betabinom

The Beta-Binomial Distribution
lqnorm

Minimizing the L-q norm Family Function
amlnormal

Asymmetric Least Squares Quantile Regression
lambertW

The Lambert W function
logff

Logarithmic Distribution
levy

Levy Distribution Family Function
double.expbinomial

Double Exponential Binomial Distribution Family Function
finney44

Toxicity trial for insects
lirat

Low-iron Rat Teratology Data
Lindley

The Lindley Distribution
Maxwell

The Maxwell Distribution
logLik.vlm

Extract Log-likelihood for VGLMs/VGAMs/etc.
posbernoulli.tb

Positive Bernoulli Family Function with Time and Behavioural Effects
ABO

The ABO Blood Group System
get.smart

Retrieve One Component of ``.smart.prediction''
expexpff1

Exponentiated Exponential Distribution
polf

Poisson-Ordinal Link Function
zapoisson

Zero-Altered Poisson Distribution
latvar

Latent Variables
betabinomialff

Beta-binomial Distribution Family Function
model.matrixvlm

Construct the Design Matrix of a VLM Object
makeham

Makeham Distribution Family Function
huber2

Huber's least favourable distribution family function
plotvgam

Default VGAM Plotting
erlang

Erlang Distribution
machinists

Machinists Accidents
cfibrosis

Cystic Fibrosis Data
lms.yjn

LMS Quantile Regression with a Yeo-Johnson Transformation to Normality
is.parallel

Parallelism Constraint Matrices
negbinomial

Negative Binomial Distribution Family Function
deplot.lmscreg

Density Plot for LMS Quantile Regression
gaussianff

Gaussian (normal) Family Function
gpdUC

The Generalized Pareto Distribution
Opt

Optimums
plotdeplot.lmscreg

Density Plot for LMS Quantile Regression
logistic

Logistic Distribution Family Function
bmi.nz

Body Mass Index of New Zealand Adults Data
plotvglm

Plots for VGLMs
Posgeom

Positive-geometric Distribution
inv.lomax

Inverse Lomax Distribution Family Function
Huggins89.t1

Table 1 of Huggins (1989)
hatvalues

Hat Values and Regression Deletion Diagnostics
paretoIV

Pareto(IV/III/II) Distribution Family Functions
binormalcop

Gaussian Copula (Bivariate) Family Function
SURff

Seemingly Unrelated Regressions
auuc

Auckland University Undergraduate Counts Data
notdocumentedyet

Undocumented and Internally Used Functions and Classes
laplaceUC

The Laplace Distribution
Paralogistic

The Paralogistic Distribution
posnegbinomial

Positive Negative Binomial Distribution Family Function
SurvS4-class

Class "SurvS4"
deermice

Captures of Peromyscus maniculatus, also known as deer mice.
loglinb3

Loglinear Model for Three Binary Responses
pneumo

Pneumoconiosis in Coalminers Data
Binormcop

Gaussian Copula (Bivariate) Distribution
betaprime

The Beta-Prime Distribution
micmen

Michaelis-Menten Model
smart.expression

S Expression for Smart Functions
concoef

Extract Model Constrained/Canonical Coefficients
perspqrrvglm

Perspective plot for QRR-VGLMs
ordpoisson

Ordinal Poisson Family Function
PoissonPoints

Poisson Points Distribution
cao

Fitting Constrained Additive Ordination (CAO)
marital.nz

New Zealand Marital Data.
Card

Cardioid Distribution
lgammaUC

The Log-Gamma Distribution
alaplaceUC

The Laplace Distribution
plotrcim0

Main effects plot for a Row-Column Interaction Model (RCIM)
lrtest

Likelihood Ratio Test of Nested Models
Betageom

The Beta-Geometric Distribution
bilogistic

Bivariate Logistic Distribution Family Function
logc

Complementary-log Link Function
Dagum

The Dagum Distribution
loglapUC

The Log-Laplace Distribution
lms.bcn

LMS Quantile Regression with a Box-Cox Transformation to Normality
Bort

The Borel-Tanner Distribution
gumbelUC

The Gumbel Distribution
Foldnorm

The Folded-Normal Distribution
skewnormal

Univariate Skew-Normal Distribution Family Function
perks

Perks Distribution Family Function
inv.gaussianff

Inverse Gaussian Distribution Family Function
cauchit

Cauchit Link Function
gumbelII

Gumbel-II Distribution Family Function
Simplex

Simplex Distribution
cardioid

Cardioid Distribution Family Function
lakeO

Annual catches on Lake Otamangakau from October 1974 to October 1989
betaII

Beta Distribution of the Second Kind
zinegbinomial

Zero-Inflated Negative Binomial Distribution Family Function
concoef-methods

Constrained (Canonical) Coefficients
exppois

The Exponential Poisson Distribution
loglog

Log-log Link Function
rrvglm.control

Control function for rrvglm
dhuber

Huber's least favourable distribution
amlpoisson

Poisson Regression by Asymmetric Maximum Likelihood Estimation
fittedvlm

Fitted Values of a VLM object
wine

Bitterness in Wine Data
is.buggy

Does the fitted object suffer from a known bug?
cao.control

Control Function for RR-VGAMs (CAO)
dirmul.old

Fitting a Dirichlet-Multinomial Distribution
erf

Error Function, and variants
linkfun

Link functions
bigamma.mckay

Bivariate Gamma: McKay's Distribution
yeo.johnson

Yeo-Johnson Transformation
mix2normal

Mixture of Two Univariate Normal Distributions
poissonff

Poisson Family Function
Polono

The Poisson Lognormal Distribution
predictqrrvglm

Predict Method for a CQO fit
cens.gumbel

Censored Gumbel Distribution
moffset

Matrix Offset
Slash

Slash Distribution
margeff

Marginal effects for the multinomial logit and cumulative models
lms.bcg

LMS Quantile Regression with a Box-Cox transformation to a Gamma Distribution
leipnik

Leipnik Distribution Family Function
dirmultinomial

Fitting a Dirichlet-Multinomial Distribution
Coef.qrrvglm

Returns Important Matrices etc. of a QO Object
plotqrrvglm

Model Diagnostic Plots for QRR-VGLMs
multinomial

Multinomial Logit Model
qrrvglm.control

Control function for QRR-VGLMs (CQO)
posbernUC

Positive Bernoulli Sequence Model
mix2poisson

Mixture of Two Poisson Distributions
zetaff

Zeta Distribution Family Function
corbet

Corbet's Butterfly Data
log1pexp

Logarithms with an Unit Offset and Exponential Term
hyperg

Hypergeometric Family Function
Binorm

Bivariate normal distribution cumulative distribution function
multilogit

Multi-logit Link Function
pgamma.deriv

Derivatives of the Incomplete Gamma Integral
loglaplace

Log-Laplace and Logit-Laplace Distribution Family Functions
df.residual

Residual Degrees-of-Freedom
posbinomial

Positive Binomial Distribution Family Function
model.framevlm

Construct the Model Frame of a VLM Object
zigeometric

Zero-Inflated Geometric Distribution Family Function
meplot

Mean Excess Plot
lvplot.rrvglm

Latent Variable Plot for RR-VGLMs
calibrate-methods

Calibration for Constrained Regression Models
calibrate

Model Calibrations
weibullR

Weibull Distribution Family Function
Expectiles-Normal

Expectiles of the Normal Distribution
trplot

Trajectory Plot
nbcanlink

Negative binomial canonical link function
posbernoulli.b

Positive Bernoulli Family Function with Behavioural Effects
Coef

Computes Model Coefficients and Quantities
simulate.vlm

Simulate Responses for VGLMs and VGAMs