Learn R Programming

glmm (version 1.4.5)

binomial.glmm: Functions for the Binomial family.

Description

Given a scalar eta and the number of trials, this calculates the cumulant and two derivatives for the Bernoulli family. Also checks that the data are entered correctly.

Usage

binomial.glmm()

Arguments

Value

family.glmm

The family name, as a string.

link

The link function (canonical link is required), as a string.

cum

The cumulant function.

cp

The first derivative of the cumulant function.

cpp

The second derivative of the cumulant function.

checkData

A function to check that all data are nonnegative.

Author

Christina Knudson

See Also

glmm

Examples

Run this code
eta<--3:3
ntrials <- 1
binomial.glmm()$family.glmm
binomial.glmm()$cum(eta, ntrials)
binomial.glmm()$cp(1, ntrials)
binomial.glmm()$cpp(2, ntrials)

Run the code above in your browser using DataLab