Finds the number of parameters that were estimated in each model.
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)
A statistical model object.
A scalar giving the number of parameters estimated in the model.
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.