Learn R Programming

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

VGAM (version 0.9-4)

Vector Generalized Linear and Additive Models

Description

This package fits many (150+) models and distributions by maximum likelihood estimation (MLE) or penalized MLE, using Fisher scoring. This is done via the vector generalized linear and additive model (VGLM/VGAM) classes and associated models (reduced-rank VGLMs, quadratic RR-VGLMs, reduced-rank VGAMs, row-column interaction models). These are abbreviated RR-VGLMs, QRR-VGLMs, RR-VGAMs and RCIMs. These include constrained and unconstrained quadratic ordination (CQO/UQO) models in ecology as well as constrained additive ordination (CAO).

Copy Link

Version

Install

install.packages('VGAM')

Monthly Downloads

42,087

Version

0.9-4

License

GPL-2

Maintainer

Last Published

May 28th, 2014

Functions in VGAM (0.9-4)

machinists

Machinists Accidents
lvplot.rrvglm

Latent Variable Plot for RR-VGLMs
pgamma.deriv.unscaled

Derivatives of the Incomplete Gamma Integral (Unscaled Version)
predictqrrvglm

Predict Method for a CQO fit
weibull

Weibull Distribution Family Function
plotrcim0

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

Reciprocal Inverse Gaussian distribution
Slash

Slash Distribution
trplot

Trajectory Plot
loglaplace

Log-Laplace and Logit-Laplace Distribution Family Functions
posbernoulli.t

Positive Bernoulli Family Function with Time Effects
vsmooth.spline

Vector cubic smoothing spline
logit

Logit Link Function
mix2poisson

Mixture of Two Poisson Distributions
pneumo

Pneumoconiosis in Coalminers Data
loglinb2

Loglinear Model for Two Binary Responses
quasipoissonff

Quasi-Poisson Family Function
lognormal

Lognormal Distribution
ParetoIV

The Pareto(IV/III/II) Distributions
Zigeom

Zero-Inflated Geometric Distribution
Zageom

Zero-Altered Geometric Distribution
qrrvglm.control

Control function for QRR-VGLMs (CQO)
poissonff

Poisson Family Function
smartpred

Smart Prediction
tikuv

Short-tailed Symmetric Distribution Family Function
rrvglm

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

Class ``rrvglm''
plackett

Plackett's Bivariate Distribution Family Function
tobit

Tobit Model
loglapUC

The Log-Laplace Distribution
matched.binomial

The Matched Binomial Distribution Family Function
rdiric

The Dirichlet distribution
loglog

Log-log Link Function
loge

Log link function, and variants
Perks

The Perks Distribution
prplot

Probability Plots for Categorical Data Analysis
logoff

Log link function with an offset
logistic

Logistic Distribution Family Function
zigeometric

Zero-Inflated Geometric Distribution Family Function
lvplot

Latent Variable Plot
meplot

Mean Excess Plot
Rayleigh

The Rayleigh Distribution
seq2binomial

The Two-stage Sequential Binomial Distribution Family Function
trplot.qrrvglm

Trajectory plot for QRR-VGLMs
Paralogistic

The Paralogistic Distribution
lomax

Lomax Distribution Family Function
posbernoulli.b

Positive Bernoulli Family Function with Behavioural Effects
Triangle

The Triangle Distribution
propodds

Proportional Odds Model for Ordinal Regression
rcqo

Constrained Quadratic Ordination
qvar

Quasi-variances Extraction Function
recexp1

Upper Record Values from a 1-parameter Exponential Distribution
zeta

Riemann's Zeta Function
prentice74

Prentice (1974) Log-gamma Distribution
studentt

Student t Distribution
recnormal

Upper Record Values from a Univariate Normal Distribution
vgam.control

Control function for vgam
Posgeom

Positive-geometric Distribution
reciprocal

Reciprocal link function
Polono

The Poisson Lognormal Distribution
Skellam

The Skellam Distribution
Posnorm

The Positive-Normal Distribution
skewnormal

Univariate Skew-Normal Distribution Family Function
poisson.points

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

The zero Argument in VGAM Family Functions
lqnorm

Minimizing the L-q norm Family Function
powerlink

Power Link Function
Truncpareto

The Truncated Pareto Distribution
vglm.control

Control function for vglm
simplex

Simplex Distribution Family Function
posnegbinomial

Positive Negative Binomial Distribution Family Function
posbernoulli.tb

Positive Bernoulli Family Function with Time and Behavioural Effects
zipebcom

Exchangeable bivariate cloglog odds-ratio model from a zero-inflated Poisson distribution
rlplot.egev

Return Level Plot for GEV Fits
Zanegbin

Zero-Altered Negative Binomial Distribution
weightsvglm

Prior and Working Weights of a VGLM fit
predictvglm

Predict Method for a VGLM fit
rrvglm.optim.control

Control function for rrvglm() calling optim()
posnormal

Positive Normal Distribution Family Function
Maxwell

The Maxwell Distribution
yip88

Zero-Inflated Poisson Distribution (Yip (1988) algorithm)
qtplot.gumbel

Quantile Plot for Gumbel Regression
uninormal

Univariate Normal Distribution
yulesimon

Yule-Simon Family Function
toxop

Toxoplasmosis Data
Zibinom

Zero-Inflated Binomial Distribution
zetaff

Zeta Distribution Family Function
polf

Poisson-Ordinal Link Function
zapoisson

Zero-Altered Poisson Distribution
sratio

Ordinal Regression with Stopping Ratios
plotdeplot.lmscreg

Density Plot for LMS Quantile Regression
smart.mode.is

Determine What Mode the Smart Prediction is In
skewnorm

Skew-Normal Distribution
zipf

Zipf Distribution Family Function
smart.expression

S Expression for Smart Functions
ruge

Rutherford-Geiger Polonium Data
Rice

The Rice Distribution
perspqrrvglm

Perspective plot for QRR-VGLMs
zageometric

Zero-Altered Geometric Distribution
posbinomial

Positive Binomial Distribution Family Function
zibinomial

Zero-Inflated Binomial Distribution Family Function
sinmad

Singh-Maddala Distribution Family Function
zipoisson

Zero-Inflated Poisson Distribution Family Function
zanegbinomial

Zero-Altered Negative Binomial Distribution
vonmises

von Mises Distribution Family Function
waldff

Wald Distribution Family Function
truncweibull

Truncated Weibull Distribution Family Function
plotvglm

Plots for VGLMs
zabinomial

Zero-Altered Binomial Distribution
Posbinom

Positive-Binomial Distribution
Zinegbin

Zero-Inflated Negative Binomial Distribution
prats

Pregnant Rats Toxological Experiment Data
vglm

Fitting Vector Generalized Linear Models
Posnegbin

Positive-Negative Binomial Distribution
plotvgam

Default VGAM Plotting
wine

Bitterness in Wine Data
Pospois

Positive-Poisson Distribution
setup.smart

Smart Prediction Setup
Zipois

Zero-Inflated Poisson Distribution
pgamma.deriv

Derivatives of the Incomplete Gamma Integral
plotqrrvglm

Model Diagnostic Plots for QRR-VGLMs
AB.Ab.aB.ab2

The AB-Ab-aB-ab2 Blood Group System
vglmff-class

Class ``vglmff''
s

Defining smooths in VGAM formulae
Zabinom

Zero-Altered Binomial Distribution
qtplot.lmscreg

Quantile Plot for LMS Quantile Regression
vglm-class

Class ``vglm''
yeo.johnson

Yeo-Johnson Transformation
put.smart

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

Cardioid Distribution
posbernUC

Positive Bernoulli Sequence Model
pospoisson

Positive Poisson Distribution Family Function
zinegbinomial

Zero-Inflated Negative Binomial Distribution Family Function
vgam-class

Class ``vgam''
Max

Maxima
calibrate

Model Calibrations
coefvlm

Extract Model Coefficients
binom2.rho

Bivariate Probit Model (Family Function)
ABO

The ABO Blood Group System
plotvgam.control

Control Function for plotvgam()
biplot-methods

Biplot of Constrained Regression Models
ucberk

University California Berkeley Graduate Admissions
inv.gaussianff

Inverse Gaussian Distribution Family Function
Inv.gaussian

The Inverse Gaussian Distribution
undocumented-methods

Undocumented Methods Functions
riceff

Rice Distribution Family Function
vgam

Fitting Vector Generalized Additive Models
probit

Probit Link Function
cdf.lmscreg

Cumulative Distribution Function for LMS Quantile Regression
fff

F Distribution Family Function
cloglog

Complementary Log-log Link Function
cao.control

Control Function for RR-VGAMs (CAO)
SurvS4-class

Class "SurvS4"
cauchy

Cauchy Distribution Family Function
SurvS4

Create a Survival Object
venice

Venice Maximum Sea Levels Data
amlbinomial

Binomial Logistic Regression by Asymmetric Maximum Likelihood Estimation
Bisa

The Birnbaum-Saunders Distribution
brat

Bradley Terry Model
Frechet

The Frechet Distribution
Coef.qrrvglm

Returns Important Matrices etc. of a QO Object
amh

Ali-Mikhail-Haq Distribution Family Function
chinese.nz

Chinese Population in New Zealand 1867--2001 Data
binormalcop

Gaussian Copula (Bivariate) Family Function
amlnormal

Asymmetric Least Squares Quantile Regression
iam

Index from Array to Matrix
gamma2

2-parameter Gamma Distribution
bmi.nz

Body Mass Index of New Zealand Adults Data
gengamma

Generalized Gamma distribution family function
crashes

Crashes on New Zealand Roads in 2009
betaII

Beta Distribution of the Second Kind
Bort

The Borel-Tanner Distribution
Tol

Tolerances
leipnik

Leipnik Distribution Family Function
expexp

Exponentiated Exponential Distribution
garma

GARMA (Generalized Autoregressive Moving-Average) Models
loglinb3

Loglinear Model for Three Binary Responses
amlpoisson

Poisson Regression by Asymmetric Maximum Likelihood Estimation
Betageom

The Beta-Geometric Distribution
AICvlm

Akaike's Information Criterion
gumbel

Gumbel Distribution Family Function
binomialff

Binomial Family Function
hzeta

Haight's Zeta Family Function
gamma1

1-parameter Gamma Distribution
corbet

Corbet's Butterfly Data
lms.yjn

LMS Quantile Regression with a Yeo-Johnson Transformation to Normality
Rcim

Mark the Baseline of Row and Column on a Matrix data
multinomial

Multinomial Logit Model
Foldnorm

The Folded-Normal Distribution
MNSs

The MNSs Blood Group System
fisk

Fisk Distribution family function
coalminers

Breathlessness and Wheeze Amongst Coalminers Data
binormal

Bivariate normal distribution family function
df.residual

Residual Degrees-of-Freedom
laplaceUC

The Laplace Distribution
explog

The Exponential Logarithmic Distribution
Pareto

The Pareto Distribution
huber2

Huber's least favourable distribution family function
calibrate.qrrvglm

Calibration for CQO and CAO models
gew

General Electric and Westinghouse Data
cao

Fitting Constrained Additive Ordination (CAO)
PoissonPoints

Poisson Points Distribution
makeham

Makeham Distribution Family Function
beta.ab

The Two-parameter Beta Distribution Family Function
alaplace

Asymmetric Laplace Distribution Family Functions
Frank

Frank's Bivariate Distribution
bifrankcop

Frank's Bivariate Distribution Family Function
betabinomial.ab

Beta-binomial Distribution Family Function
depvar

Response variable extracted
dirmultinomial

Fitting a Dirichlet-Multinomial Distribution
fill

Creates a Matrix of Appropriate Dimension
borel.tanner

Borel-Tanner Distribution Family Function
freund61

Freund's (1961) Bivariate Extension of the Exponential Distribution
logLik.vlm

Extract Log-likelihood for VGLMs/VGAMs/etc.
calibrate-methods

Calibration for Constrained Regression Models
plotqtplot.lmscreg

Quantile Plot for LMS Quantile Regression
exponential

Exponential Distribution
G1G2G3

The G1G2G3 Blood Group System
Benini

The Benini Distribution
Lindley

The Lindley Distribution
betaff

The Two-parameter Beta Distribution Family Function
logc

Complementary-log Link Function
lerch

Lerch Phi Function
biclaytoncop

Clayton Copula (Bivariate) Family Function
deermice

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

The Kumaraswamy Distribution
hypersecant

Hyperbolic Secant Distribution Family Function
negbinomial.size

Negative Binomial Distribution Family Function With Known Size
auuc

Auckland University Undergraduate Counts Data
Opt

Maxima
Coef.rrvglm-class

Class ``Coef.rrvglm''
Betanorm

The Beta-Normal Distribution
cfibrosis

Cystic Fibrosis Data
invbinomial

Inverse Binomial Distribution Family Function
aux.posbernoulli.t

Auxiliary Function for the Positive Bernoulli Family Function with Time Effects
kendall.tau

Kendall's Tau Statistic
normal.vcm

Univariate Normal Distribution as a Varying-Coefficient Model
lms.bcg

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

Erlang Distribution
genbetaII

Generalized Beta Distribution of the Second Kind
expgeometric

Exponential Geometric Distribution Family Function
genray

The Generalized Rayleigh Distribution
cqo

Fitting Constrained Quadratic Ordination (CQO)
Expectiles-Exponential

Expectiles of the Exponential Distribution
concoef

Extract Model Constrained/Canonical Coefficients
backPain

Data on Back Pain Prognosis, from Anderson (1984)
Coef.qrrvglm-class

Class ``Coef.qrrvglm''
Coef.rrvglm

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

Chi-squared Distribution
grc

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

Yellow-bellied Prinia
Coef.vlm

Extract Model Coefficients for VLM Objects
nakagami

Nakagami Distribution Family Function
rhobit

Rhobit Link Function
mix2exp

Mixture of Two Exponential Distributions
explogff

Exponential Logarithmic Distribution Family Function
lino

Generalized Beta Distribution Family Function
get.smart.prediction

Retrieves ``.smart.prediction''
chest.nz

Chest Pain in NZ Adults Data
Expectiles-Normal

Expectiles of the Normal Distribution
bigumbelI

Gumbel's Type I Bivariate Distribution Family Function
dirichlet

Fitting a Dirichlet Distribution
amlexponential

Exponential Regression by Asymmetric Maximum Likelihood Estimation
quasibinomialff

Quasi-Binomial Family Function
morgenstern

Morgenstern's Bivariate Distribution Family Function
double.expbinomial

Double Exponential Binomial Distribution Family Function
is.zero

Zero Constraint Matrices
golf

Gamma-Ordinal Link Function
gengammaUC

The Generalized Gamma Distribution
rrvglm.control

Control function for rrvglm
waitakere

Waitakere Ranges Data
guplot

Gumbel Plot
grain.us

Grain Prices Data in USA
ordpoisson

Ordinal Poisson Family Function
Yules

Yule-Simon Distribution
acat

Ordinal Regression with Adjacent Categories Probabilities
bistudentt

Bivariate Student-t Family Function
olympics

2008 and 2012 Summer Olympic Final Medal Count Data
expgeom

The Exponential Geometric Distribution
Huggins89.t1

Table 1 of Huggins (1989)
nbolf

Negative Binomial-Ordinal Link Function
cennormal

Censored Normal Distribution
Links

Link functions for VGLM/VGAM/etc. families
lgammaff

Log-gamma Distribution Family Function
bratt

Bradley Terry Model With Ties
bilogistic4

Bivariate Logistic Distribution Family Function
model.framevlm

Construct the Model Frame of a VLM Object
felix

Felix Distribution Family Function
fsqrt

Folded Square Root Link Function
fisherz

Fisher's Z Link Function
Coef

Computes Model Coefficients and Quantities
Zapois

Zero-Altered Poisson Distribution
Binorm

Bivariate normal distribution cumulative distribution function
gumbelUC

The Gumbel Distribution
paretoff

Pareto and Truncated Pareto Distribution Family Functions
genpoisson

Generalized Poisson distribution
oxtemp

Oxford Temperature Data
gompertz

Gompertz Distribution Family Function
laplace

Laplace Distribution
AB.Ab.aB.ab

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

Bivariate Logistic Distribution
cauchit

Cauchit Link Function
geometric

Geometric (Truncated and Untruncated) Distributions
binom2.or

Bivariate Binary Regression with an Odds Ratio (Family Function)
dirmul.old

Fitting a Dirichlet-Multinomial Distribution
beggs

Bacon and Eggs Data
micmen

Michaelis-Menten Model
is.parallel

Parallelism Constraint Matrices
negbinomial

Negative Binomial Distribution Family Function
concoef-methods

Constrained (Canonical) Coefficients
hatvalues

Hat Values and Regression Deletion Diagnostics
SUR

Seemingly Unrelated Regressions
betabinomial

Beta-binomial Distribution Family Function
cgumbel

Censored Gumbel Distribution
cgo

Redirects the user to cqo
AA.Aa.aa

The AA-Aa-aa Blood Group System
model.matrixvlm

Construct the Design Matrix of a VLM Object
erf

Error Function
Dagum

The Dagum Distribution
koenker

Koenker's Distribution Family Function
lrtest

Likelihood Ratio Test of Nested Models
invparalogistic

Inverse Paralogistic Distribution Family Function
expint

The Exponential Integral and Variants
exppois

The Exponential Poisson Distribution
V1

V1 Flying-Bombs Hits in London
VGAM-package

Vector Generalized Linear and Additive Models
identitylink

Identity Link Function
genrayleigh

Generalized Rayleigh Distribution Family Function
invlomax

Inverse Lomax Distribution Family Function
Betabinom

The Beta-Binomial Distribution
gammahyp

Gamma Hyperbola Bivariate Distribution
wrapup.smart

Cleans Up After Smart Prediction
hormone

Hormone Assay Data
double.cennormal

Univariate Normal Distribution with Double Censoring
get.smart

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

Ordinal Regression with Continuation Ratios
mmt

mmt daily maximum temperatures
cenpoisson

Censored Poisson Family Function
gumbelII

Gumbel-II Distribution Family Function
latvar

Latent Variables
alaplaceUC

The Laplace Distribution
deplot.lmscreg

Density Plot for LMS Quantile Regression
fgm

Farlie-Gumbel-Morgenstern's Bivariate Distribution Family Function
expexp1

Exponentiated Exponential Distribution
Log

Logarithmic Distribution
bigamma.mckay

Bivariate Gamma: McKay's Distribution
log1pexp

Logarithms with an Unit Offset and Exponential Term
hunua

Hunua Ranges Data
is.smart

Test For a Smart Object
mix2normal

Mixture of Two Univariate Normal Distributions
betageometric

Beta-geometric Distribution Family Function
Binormcop

Gaussian Copula (Bivariate) Distribution
lgammaUC

The Log-Gamma Distribution
cumulative

Ordinal Regression with Cumulative Probabilities
lambertW

The Lambert W function
enzyme

Enzyme Data
calibrate.qrrvglm.control

Control function for CQO/CAO calibration
gaussianff

Gaussian (normal) Family Function
gpd

Generalized Pareto Distribution Family Function
fittedvlm

Fitted Values of a VLM object
hyperg

Hypergeometric Family Function
betaprime

The Beta-Prime Distribution
Expectiles-Koenker

Expectiles/Quantiles of the Koenker Distribution
levy

Levy Distribution Family Function
lvplot.qrrvglm

Latent Variable Plot for QO models
cardioid

Cardioid Distribution Family Function
explink

Exponential Link Function
margeff

Marginal effects for the multinomial logit and cumulative models
Expectiles-Uniform

Expectiles of the Uniform Distribution
notdocumentedyet

Undocumented and Internally Used Functions and Classes
mccullagh89

McCullagh (1989) Distribution Family Function
marital.nz

New Zealand Marital Data.
leukemia

Acute Myelogenous Leukemia Survival Data
gev

Generalized Extreme Value Distribution Family Function
foldnormal

Folded Normal Distribution Family Function
lirat

Low-iron Rat Teratology Data
logF

Natural Exponential Family Generalized Hyperbolic Secant Distribution Family Function
hspider

Hunting Spider Data
moffset

Matrix Offset
gpdUC

The Generalized Pareto Distribution
constraints

Constraint Matrices
nbcanlink

Negative binomial canonical link function
lms.bcn

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

Toxicity trial for insects
Gumbel-II

The Gumbel-II Distribution
rrar

Nested reduced-rank autoregressive models for multiple time series
dhuber

Huber's least favourable distribution
Select

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

Exponential Poisson Distribution Family Function
dlogF

log F Distribution
logff

Logarithmic Distribution
gevUC

The Generalized Extreme Value Distribution
BICvlm

Bayesian Information Criterion
Benford

Benford's Distribution
gamma2.ab

2-parameter Gamma Distribution
clo

Redirects the user to rrvglm
CommonVGAMffArguments

Common VGAM family function Arguments
lakeO

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

Multi-logit Link Function
simulate.vlm

Simulate Responses for VGLMs and VGAMs