Learn R Programming

clarkeTest (version 0.1.0)

nparams: Find number of parameters in model

Description

Finds the number of parameters that were estimated in each model.

Usage

nparams(model)

# S3 method for glm nparams(model)

# S3 method for lm nparams(model)

# S3 method for polr nparams(model)

# S3 method for clm nparams(model)

# S3 method for multinom nparams(model)

# S3 method for negbin nparams(model)

Arguments

model

A statistical model object.

Value

A scalar giving the number of parameters estimated in the model.

Details

The function funds the number of parameters generally by counting the number of estimated parameters in the model's output.

For the purposes of the clarke_test function, the nparams functions are not intended to be called directly by the user.