Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

meangait

Mean of the GAIT Combo Density


Description

Returns the mean of a 1- or 2-parameter GAIT combo probability mass function.

Usage

meangait(theta.p, fam = c("pois", "log", "zeta"),
    alt.mix = NULL, inf.mix = NULL,
    alt.mlm = NULL, inf.mlm = NULL, truncate = NULL,
    max.support = Inf, pobs.mix = 0, pobs.mlm = 0,
    pstr.mix = 0, pstr.mlm = 0, byrow.ai = FALSE,
    theta.a = theta.p, theta.i = theta.p, deflation = FALSE, ...)

Arguments

theta.p

Same as dgaitplot; usually of length 1 but may be of length 2.

fam

Same as dgaitplot. The default is the first one. All other choices are listed in that vector.

alt.mix, inf.mix, alt.mlm, inf.mlm

Same as dgaitplot.

truncate, max.support

Same as dgaitplot.

pobs.mix, pobs.mlm, pstr.mix, pstr.mlm, byrow.ai

Same as dgaitplot.

theta.a, theta.i, deflation

Same as dgaitplot.

...

Currently unused.

Details

This function returns the mean of the PMF of the GAIT combo model. Many of its arguments are the same as dgaitplot. More functionality may be added in the future, such as returning the variance.

Value

The mean.

Note

This utility function may change a lot in the future.

Author(s)

T. W. Yee.

See Also

Examples

i.mix <- seq(0, 15, by = 5)
lambda.p <- 10
meangait(lambda.p, alt.mix = i.mix + 1, inf.mix = i.mix,
         max.support = 17, pobs.mix = 0.1, pstr.mix = 0.1)

VGAM

Vector Generalized Linear and Additive Models

v1.1-5
GPL-3
Authors
Thomas Yee [aut, cre], Cleve Moler [ctb] (author of several LINPACK routines)
Initial release
2021-01-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.