Description Usage Arguments Value
Fit GLM according to a specified distribution. This needs to be done separately from glm
in order to include negative binomial and truncated distributions as options.
1 2 3 4 5 6 7 8 9 10 11 |
formula |
Formula specifying model of interest |
data |
Data frame containing variables specified in formula |
distribution |
Name of distribution of the counts. Options are 'negative-binomial', 'poisson', 'truncated-poisson', and 'truncated-negative-binomial' |
start |
Starting values for model coefficients |
init.theta |
Initial value of theta if fitting the negative binomial distribution |
maxit |
Maximum number of IWLS iterations for fitting the model (passed to |
epsilon |
Positive convergence tolerance for Poisson and negative binomial models. Passed to |
trace |
Logical indicating if output should be produced for each of model fitting procedure. Passed to |
List with elements
model |
model object |
expected.values |
vector of expected values for each element in original data |
p.values |
vector of p-values for test of significantly higher response than expected |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.