binomial.glmm | R Documentation |
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.
binomial.glmm()
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. |
This function is to be used by the glmm
command.
Christina Knudson
glmm
eta<--3:3
ntrials <- 1
binomial.glmm()$family.glmm
binomial.glmm()$cum(eta, ntrials)
binomial.glmm()$cp(1, ntrials)
binomial.glmm()$cpp(2, ntrials)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.