Learn R Programming

greybox (version 0.6.4)

nparam: Number of parameters in the model

Description

This function returns the number of estimated parameters in the model

Usage

nparam(object, ...)

Arguments

object

Time series model.

...

Some other parameters passed to the method.

Value

This function returns a numeric value.

Details

This is a very basic and a simple function which does what it says: extracts number of parameters in the estimated model.

See Also

nobs, logLik

Examples

Run this code
# NOT RUN {
### Simple example
xreg <- cbind(rnorm(100,10,3),rnorm(100,50,5))
xreg <- cbind(100+0.5*xreg[,1]-0.75*xreg[,2]+rnorm(100,0,3),xreg,rnorm(100,300,10))
colnames(xreg) <- c("y","x1","x2","Noise")
ourModel <- lm(y~.,data=as.data.frame(xreg))

nparam(ourModel)

# }

Run the code above in your browser using DataLab