Learn R Programming

PRIST (version 0.925)

LMlike-class: Linear Model-like Class

Description

Wrapper around modeling function to make them behave enough alike that Wald tests and Likelihood ratio are easy to do. To implement a new type of zero-inflated model, extend this class.

Usage

# S4 method for LMlike
summary(object)

# S4 method for LMlike,CoefficientHypothesis waldTest(object, hypothesis)

# S4 method for LMlike,matrix waldTest(object, hypothesis)

# S4 method for LMlike,character lrTest(object, hypothesis)

# S4 method for LMlike,CoefficientHypothesis lrTest(object, hypothesis)

# S4 method for LMlike,Hypothesis lrTest(object, hypothesis)

# S4 method for LMlike,matrix lrTest(object, hypothesis)

Arguments

object

LMlike

hypothesis

one of a CoefficientHypothesis, Hypothesis or contrast matrix.

Methods (by generic)

  • summary: Print a summary of the coefficients in each component.

  • waldTest: Wald test dropping single term specified by CoefficientHypothesis hypothesis

  • waldTest: Wald test of contrast specified by contrast matrix hypothesis

  • lrTest: Likelihood ratio test dropping entire term specified by character hypothesis naming a term in the symbolic formula.

  • lrTest: Likelihood ratio test dropping single term specified by CoefficientHypothesis hypothesis

  • lrTest: Likelihood ratio test dropping single term specified by Hypothesis hypothesis

  • lrTest: Likelihood ratio test dropping single term specified by contrast matrix hypothesis

Slots

design

a data.frame from which variables are taken for the right hand side of the regression

fitC

The continuous fit

fitD

The discrete fit

response

The left hand side of the regression

fitted

A logical with components "C" and "D", TRUE if the respective component has converge

formula

A formula for the regression

fitArgsC

fitArgsD

Both lists giving arguments that will be passed to the fitter (such as convergence criteria or case weights)

See Also

coef

lrTest

waldTest

vcov

logLik