Learn R Programming

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

VGAM (version 0.9-6)

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. 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

42,087

Version

0.9-6

License

GPL-2

Maintainer

Last Published

December 8th, 2014

Functions in VGAM (0.9-6)

constraints

Constraint Matrices
calibrate-methods

Calibration for Constrained Regression Models
bilogis

Bivariate Logistic Distribution
betaII

Beta Distribution of the Second Kind
VGAM-package

Vector Generalized Linear and Additive Models
bifrankcop

Frank's Bivariate Distribution Family Function
Pareto

The Pareto Distribution
A1A2A3

The A1A2A3 Blood Group System
Dagum

The Dagum Distribution
Links

Link functions for VGLM/VGAM/etc. families
hunua

Hunua Ranges Data
clo

Redirects the user to rrvglm
backPain

Data on Back Pain Prognosis, from Anderson (1984)
deplot.lmscreg

Density Plot for LMS Quantile Regression
Coef.qrrvglm

Returns Important Matrices etc. of a QO Object
iam

Index from Array to Matrix
Coef.qrrvglm-class

Class ``Coef.qrrvglm''
amlbinomial

Binomial Logistic Regression by Asymmetric Maximum Likelihood Estimation
Inv.gaussian

The Inverse Gaussian Distribution
cao

Fitting Constrained Additive Ordination (CAO)
dirmultinomial

Fitting a Dirichlet-Multinomial Distribution
V1

V1 Flying-Bombs Hits in London
cloglog

Complementary Log-log Link Function
Binormcop

Gaussian Copula (Bivariate) Distribution
beggs

Bacon and Eggs Data
cdf.lmscreg

Cumulative Distribution Function for LMS Quantile Regression
Binom2.or

Bivariate Binary Regression with an Odds Ratio
Bisa

The Birnbaum-Saunders Distribution
Bort

The Borel-Tanner Distribution
bratt

Bradley Terry Model With Ties
Bistudentt

Bivariate Student-t distribution cumulative distribution function
exppois

The Exponential Poisson Distribution
borel.tanner

Borel-Tanner Distribution Family Function
bilogistic

Bivariate Logistic Distribution Family Function
cens.poisson

Censored Poisson Family Function
dirichlet

Fitting a Dirichlet Distribution
Huggins89.t1

Table 1 of Huggins (1989)
biplackettcop

Plackett's Bivariate Copula Family Function
Coef.rrvglm-class

Class ``Coef.rrvglm''
cratio

Ordinal Regression with Continuation Ratios
calibrate.qrrvglm.control

Control function for CQO/CAO calibration
bifgmexp

Bivariate Farlie-Gumbel-Morgenstern Exponential Distribution Family Function
depvar

Response variable extracted
betageometric

Beta-geometric Distribution Family Function
biplot-methods

Biplot of Constrained Regression Models
lms.bcg

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

Annual catches on Lake Otamangakau from October 1974 to October 1989
double.expbinomial

Double Exponential Binomial Distribution Family Function
amlexponential

Exponential Regression by Asymmetric Maximum Likelihood Estimation
cauchit

Cauchit Link Function
Frank

Frank's Bivariate Distribution
binom2.rho

Bivariate Probit Model (Family Function)
explogff

Exponential Logarithmic Distribution Family Function
Biclaytoncop

Clayton Copula (Bivariate) Distribution
betaff

The Two-parameter Beta Distribution Family Function
Max

Maximums
AB.Ab.aB.ab

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

Erlang Distribution
gpd

Generalized Pareto Distribution Family Function
betabinomialff

Beta-binomial Distribution Family Function
Card

Cardioid Distribution
Coef.rrvglm

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

Gumbel Distribution Family Function
Hzeta

Haight's Zeta Distribution
Biamhcop

Ali-Mikhail-Haq Bivariate Distribution
lambertW

The Lambert W function
betaR

The Two-parameter Beta Distribution Family Function
is.smart

Test For a Smart Object
Bifgmcop

Farlie-Gumbel-Morgenstern's Bivariate Distribution
Brat

Inputting Data to fit a Bradley Terry Model
cumulative

Ordinal Regression with Cumulative Probabilities
betaprime

The Beta-Prime Distribution
crashes

Crashes on New Zealand Roads in 2009
cao.control

Control Function for RR-VGAMs (CAO)
cens.normal

Censored Normal Distribution
concoef-methods

Constrained (Canonical) Coefficients
deermice

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

Benford's Distribution
Biplackett

Plackett's Bivariate Copula
cqo

Fitting Constrained Quadratic Ordination (CQO)
Gompertz

The Gompertz Distribution
amlnormal

Asymmetric Least Squares Quantile Regression
golf

Gamma-Ordinal Link Function
benini1

Benini Distribution Family Function
binormal

Bivariate normal distribution family function
gammaR

2-parameter Gamma Distribution
Coef.vlm

Extract Model Coefficients for VLM Objects
Benini

The Benini Distribution
kumar

Kumaraswamy Distribution Family Function
concoef

Extract Model Constrained/Canonical Coefficients
laplace

Laplace Distribution
chinese.nz

Chinese Population in New Zealand 1867--2001 Data
Rcim

Mark the Baseline of Row and Column on a Matrix data
get.smart

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

Breathlessness and Wheeze Amongst Coalminers Data
leukemia

Acute Myelogenous Leukemia Survival Data
Betageom

The Beta-Geometric Distribution
double.cens.normal

Univariate Normal Distribution with Double Censoring
hatvalues

Hat Values and Regression Deletion Diagnostics
auuc

Auckland University Undergraduate Counts Data
lqnorm

Minimizing the L-q norm Family Function
Felix

The Felix Distribution
Expectiles-Exponential

Expectiles of the Exponential Distribution
Betabinom

The Beta-Binomial Distribution
amlpoisson

Poisson Regression by Asymmetric Maximum Likelihood Estimation
exppoisson

Exponential Poisson Distribution Family Function
model.framevlm

Construct the Model Frame of a VLM Object
latvar

Latent Variables
AICvlm

Akaike's Information Criterion
fff

F Distribution Family Function
binormalcop

Gaussian Copula (Bivariate) Family Function
corbet

Corbet's Butterfly Data
inv.paralogistic

Inverse Paralogistic Distribution Family Function
gammahyperbola

Gamma Hyperbola Bivariate Distribution
explink

Exponential Link Function
qrrvglm.control

Control function for QRR-VGLMs (CQO)
hormone

Hormone Assay Data
acat

Ordinal Regression with Adjacent Categories Probabilities
Lomax

The Lomax Distribution
chisq

Chi-squared Distribution
fisk

Fisk Distribution family function
cgo

Redirects the user to cqo
Select

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

Cystic Fibrosis Data
genpoisson

Generalized Poisson distribution
BICvlm

Bayesian Information Criterion
plotqrrvglm

Model Diagnostic Plots for QRR-VGLMs
hypersecant

Hyperbolic Secant Distribution Family Function
gamma2

2-parameter Gamma Distribution
Expectiles-Uniform

Expectiles of the Uniform Distribution
huber2

Huber's least favourable distribution family function
enzyme

Enzyme Data
cens.gumbel

Censored Gumbel Distribution
flourbeetle

Mortality of Flour Beetles from Carbon Disulphide
exponential

Exponential Distribution
loglinb3

Loglinear Model for Three Binary Responses
plotdeplot.lmscreg

Density Plot for LMS Quantile Regression
Betanorm

The Beta-Normal Distribution
SurvS4

Create a Survival Object
Inv.lomax

The Inverse Lomax Distribution
frechet

Frechet Distribution Family Function
Expectiles-Normal

Expectiles of the Normal Distribution
inv.gaussianff

Inverse Gaussian Distribution Family Function
is.parallel

Parallelism Constraint Matrices
kendall.tau

Kendall's Tau Statistic
genray

The Generalized Rayleigh Distribution
loglog

Log-log Link Function
predictvglm

Predict Method for a VGLM fit
mix2normal

Mixture of Two Univariate Normal Distributions
Perks

The Perks Distribution
Qvar

Quasi-variances Preprocessing Function
posbernoulli.tb

Positive Bernoulli Family Function with Time and Behavioural Effects
expexpff

Exponentiated Exponential Distribution
lvplot.qrrvglm

Latent Variable Plot for QO models
gengammaUC

The Generalized Gamma Distribution
bmi.nz

Body Mass Index of New Zealand Adults Data
logLik.vlm

Extract Log-likelihood for VGLMs/VGAMs/etc.
plotvglm

Plots for VGLMs
cardioid

Cardioid Distribution Family Function
Lindley

The Lindley Distribution
rayleigh

Rayleigh Distribution Family Function
prentice74

Prentice (1974) Log-gamma Distribution
Gumbel-II

The Gumbel-II Distribution
get.smart.prediction

Retrieves ``.smart.prediction''
Binorm

Bivariate normal distribution cumulative distribution function
aux.posbernoulli.t

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

Fitted Values of a VLM object
chest.nz

Chest Pain in NZ Adults Data
levy

Levy Distribution Family Function
MNSs

The MNSs Blood Group System
smartpred

Smart Prediction
Foldnorm

The Folded-Normal Distribution
SURff

Seemingly Unrelated Regressions
gevUC

The Generalized Extreme Value Distribution
multilogit

Multi-logit Link Function
plotvgam

Default VGAM Plotting
loglapUC

The Log-Laplace Distribution
calibrate

Model Calibrations
fisherz

Fisher's Z Link Function
dhuber

Huber's least favourable distribution
alaplace

Asymmetric Laplace Distribution Family Functions
predictqrrvglm

Predict Method for a CQO fit
Posnegbin

Positive-Negative Binomial Distribution
gumbelII

Gumbel-II Distribution Family Function
propodds

Proportional Odds Model for Ordinal Regression
lino

Generalized Beta Distribution Family Function
expexpff1

Exponentiated Exponential Distribution
df.residual

Residual Degrees-of-Freedom
logit

Logit Link Function
Posbinom

Positive-Binomial Distribution
trplot.qrrvglm

Trajectory plot for QRR-VGLMs
cauchy

Cauchy Distribution Family Function
leipnik

Leipnik Distribution Family Function
logistic

Logistic Distribution Family Function
foldnormal

Folded Normal Distribution Family Function
vglm.control

Control function for vglm
reciprocal

Reciprocal link function
calibrate.qrrvglm

Calibration for CQO and CAO models
Pospois

Positive-Poisson Distribution
lms.bcn

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

Weibull Distribution Family Function
setup.smart

Smart Prediction Setup
posbernUC

Positive Bernoulli Sequence Model
genrayleigh

Generalized Rayleigh Distribution Family Function
rhobit

Rhobit Link Function
expgeometric

Exponential Geometric Distribution Family Function
Rice

The Rice Distribution
prinia

Yellow-bellied Prinia
perspqrrvglm

Perspective plot for QRR-VGLMs
Slash

Slash Distribution
vsmooth.spline

Vector cubic smoothing spline
prats

Pregnant Rats Toxological Experiment Data
fsqrt

Folded Square Root Link Function
prplot

Probability Plots for Categorical Data Analysis
nbcanlink

Negative binomial canonical link function
Zeta

The Zeta Distribution
dlogF

log F Distribution
posbernoulli.b

Positive Bernoulli Family Function with Behavioural Effects
guplot

Gumbel Plot
qtplot.gumbel

Quantile Plot for Gumbel Regression
mccullagh89

McCullagh (1989) Distribution Family Function
garma

GARMA (Generalized Autoregressive Moving-Average) Models
lrtest

Likelihood Ratio Test of Nested Models
triangle

Triangle Distribution Family Function
is.zero

Zero Constraint Matrices
lms.yjn

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

Complementary-log Link Function
dirmul.old

Fitting a Dirichlet-Multinomial Distribution
weightsvglm

Prior and Working Weights of a VGLM fit
Nakagami

Nakagami Distribution
smart.mode.is

Determine What Mode the Smart Prediction is In
pospoisson

Positive Poisson Distribution Family Function
venice

Venice Maximum Sea Levels Data
Tol

Tolerances
Posnorm

The Positive-Normal Distribution
loglaplace

Log-Laplace and Logit-Laplace Distribution Family Functions
ParetoIV

The Pareto(IV/III/II) Distributions
machinists

Machinists Accidents
loge

Log link function, and variants
erf

Error Function, and variants
bigumbelIexp

Gumbel's Type I Bivariate Distribution Family Function
nbolf

Negative Binomial-Ordinal Link Function
negbinomial.size

Negative Binomial Distribution Family Function With Known Size
probit

Probit Link Function
vonmises

von Mises Distribution Family Function
negbinomial

Negative Binomial Distribution Family Function
Polono

The Poisson Lognormal Distribution
marital.nz

New Zealand Marital Data.
grain.us

Grain Prices Data in USA
pgamma.deriv.unscaled

Derivatives of the Incomplete Gamma Integral (Unscaled Version)
gaussianff

Gaussian (normal) Family Function
waldff

Wald Distribution Family Function
gew

General Electric and Westinghouse Data
rec.normal

Upper Record Values from a Univariate Normal Distribution
mix2poisson

Mixture of Two Poisson Distributions
expgeom

The Exponential Geometric Distribution
genbetaII

Generalized Beta Distribution of the Second Kind
inv.binomial

Inverse Binomial Distribution Family Function
loglinb2

Loglinear Model for Two Binary Responses
Truncpareto

The Truncated Pareto Distribution
Makeham

The Makeham Distribution
logF

Natural Exponential Family Generalized Hyperbolic Secant Distribution Family Function
pgamma.deriv

Derivatives of the Incomplete Gamma Integral
moffset

Matrix Offset
margeff

Marginal effects for the multinomial logit and cumulative models
notdocumentedyet

Undocumented and Internally Used Functions and Classes
uninormal

Univariate Normal Distribution
seq2binomial

The Two-stage Sequential Binomial Distribution Family Function
gev

Generalized Extreme Value Distribution Family Function
meplot

Mean Excess Plot
trplot

Trajectory Plot
sratio

Ordinal Regression with Stopping Ratios
PoissonPoints

Poisson Points Distribution
vgam.control

Control function for vgam
Paralogistic

The Paralogistic Distribution
identitylink

Identity Link Function
rdiric

The Dirichlet distribution
model.matrixvlm

Construct the Design Matrix of a VLM Object
logoff

Log link function with an offset
Simplex

Simplex Distribution
lognormal

Lognormal Distribution
posnormal

Positive Normal Distribution Family Function
qtplot.lmscreg

Quantile Plot for LMS Quantile Regression
skellam

Skellam Distribution Family Function
logff

Logarithmic Distribution
rrvglm-class

Class ``rrvglm''
waitakere

Waitakere Ranges Data
log1pexp

Logarithms with an Unit Offset and Exponential Term
undocumented-methods

Undocumented Methods Functions
lirat

Low-iron Rat Teratology Data
rcqo

Constrained Quadratic Ordination
Log

Logarithmic Distribution
zipoisson

Zero-Inflated Poisson Distribution Family Function
Expectiles-sc.t2

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

The Exponential Logarithmic Distribution
Zigeom

Zero-Inflated Geometric Distribution
polf

Poisson-Ordinal Link Function
AA.Aa.aa

The AA-Aa-aa Blood Group System
olympics

2008 and 2012 Summer Olympic Final Medal Count Data
yeo.johnson

Yeo-Johnson Transformation
melbmaxtemp

melbmaxtemp daily maximum temperatures
pneumo

Pneumoconiosis in Coalminers Data
normal.vcm

Univariate Normal Distribution as a Varying-Coefficient Model
smart.expression

S Expression for Smart Functions
zibinomial

Zero-Inflated Binomial Distribution Family Function
lgamma1

Log-gamma Distribution Family Function
Tikuv

A Short-tailed Symmetric Distribution
mix2exp

Mixture of Two Exponential Distributions
rlplot.egev

Return Level Plot for GEV Fits
plotrcim0

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

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

The Laplace Distribution
yulesimon

Yule-Simon Family Function
gamma1

1-parameter Gamma Distribution
rrvglm.optim.control

Control function for rrvglm() calling optim()
lvplot

Latent Variable Plot
oxtemp

Oxford Temperature Data
rrvglm

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

Zero-Altered Negative Binomial Distribution
plotvgam.control

Control Function for plotvgam()
betabinomial

Beta-binomial Distribution Family Function
Yules

Yule-Simon Distribution
Zabinom

Zero-Altered Binomial Distribution
grc

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

Quasi-Poisson Family Function
Posgeom

Positive-geometric Distribution
vglm-class

Class ``vglm''
paretoff

Pareto and Truncated Pareto Distribution Family Functions
ordpoisson

Ordinal Poisson Family Function
sc.studentt2

Scaled Student t Distribution with 2 df Family Function
gumbelUC

The Gumbel Distribution
lgammaUC

The Log-Gamma Distribution
alaplaceUC

The Laplace Distribution
s

Defining smooths in VGAM formulae
hspider

Hunting Spider Data
tobit

Tobit Model
wrapup.smart

Cleans Up After Smart Prediction
rrar

Nested reduced-rank autoregressive models for multiple time series
vglm

Fitting Vector Generalized Linear Models
lerch

Lerch Phi Function
bigamma.mckay

Bivariate Gamma: McKay's Distribution
vgam

Fitting Vector Generalized Additive Models
zageometric

Zero-Altered Geometric Distribution
poisson.points

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

University California Berkeley Graduate Admissions
hyperg

Hypergeometric Family Function
zapoisson

Zero-Altered Poisson Distribution
rec.exp1

Upper Record Values from a 1-parameter Exponential Distribution
coefvlm

Extract Model Coefficients
riceff

Rice Distribution Family Function
SurvS4-class

Class "SurvS4"
gpdUC

The Generalized Pareto Distribution
Zageom

Zero-Altered Geometric Distribution
vglmff-class

Class ``vglmff''
posnegbinomial

Positive Negative Binomial Distribution Family Function
powerlink

Power Link Function
maxwell

Maxwell Distribution Family Function
Sinmad

The Singh-Maddala Distribution
multinomial

Multinomial Logit Model
zabinomial

Zero-Altered Binomial Distribution
zipf

Zipf Distribution Family Function
vgam-class

Class ``vgam''
rrvglm.control

Control function for rrvglm
zigeometric

Zero-Inflated Geometric Distribution Family Function
rigff

Reciprocal Inverse Gaussian distribution
truncweibull

Truncated Weibull Distribution Family Function
posbernoulli.t

Positive Bernoulli Family Function with Time Effects
studentt

Student t Distribution
micmen

Michaelis-Menten Model
gengamma.stacy

Generalized Gamma distribution family function
Zapois

Zero-Altered Poisson Distribution
Zipois

Zero-Inflated Poisson Distribution
Coef

Computes Model Coefficients and Quantities
zinegbinomial

Zero-Inflated Negative Binomial Distribution Family Function
Zinegbin

Zero-Inflated Negative Binomial Distribution
zetaff

Zeta Distribution Family Function
ABO

The ABO Blood Group System
plotqtplot.lmscreg

Quantile Plot for LMS Quantile Regression
put.smart

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

Univariate Skew-Normal Distribution Family Function
skewnorm

Skew-Normal Distribution
Zanegbin

Zero-Altered Negative Binomial Distribution
freund61

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

The zero Argument in VGAM Family Functions
posbinomial

Positive Binomial Distribution Family Function
geometric

Geometric (Truncated and Untruncated) Distributions
Zibinom

Zero-Inflated Binomial Distribution
binomialff

Binomial Family Function
Opt

Optimums
lvplot.rrvglm

Latent Variable Plot for RR-VGLMs
finney44

Toxicity trial for insects
quasibinomialff

Quasi-Binomial Family Function
poissonff

Poisson Family Function
yip88

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

Rutherford-Geiger Polonium Data
expint

The Exponential Integral and Variants
toxop

Toxoplasmosis Data
wine

Bitterness in Wine Data
CommonVGAMffArguments

Common VGAM family function Arguments
fill

Creates a Matrix of Appropriate Dimension
simulate.vlm

Simulate Responses for VGLMs and VGAMs