Return number of observations for statistical models
nObs.RdReturns number of observations for statistical models. The default
method assumes presence of a component param$nObs in x.
Arguments
- x
a statistical model, such as created by
lm- ...
further arguments for methods
Details
This is a generic function. The default method returns the component
x$param$nObs. The lm-method is based on
qr-decomposition, in the same way as the does summary.lm.
Author
Ott Toomet, otoomet@econ.au.dk