nparam: Number of parameters in the model

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/methods.R

Description

This function returns the number of estimated parameters in the model

Usage

1
nparam(object, ...)

Arguments

object

Time series model.

...

Some other parameters passed to the method.

Details

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

Value

This function returns a numeric value.

Author(s)

Ivan Svetunkov, [email protected]

See Also

nobs, logLik

Examples

1
2
3
4
5
6
7
### 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)

greybox documentation built on March 31, 2020, 5:09 p.m.