modelDims-methods {momentfit} | R Documentation |
Methods for Function modelDims
Description
It extracts important information from the model. It is mostly used by
other methods when a modelModel
has been modifed. An example is
when restrictions have been imposed on coefficients.
Methods
signature(object = "rlinearModel")
signature(object = "rnonlinearModel")
signature(object = "rfunctionModel")
signature(object = "linearModel")
signature(object = "nonlinearModel")
signature(object = "functionModel")
signature(object = "formulaModel")
signature(object = "rformulaModel")
signature(object = "slinearModel")
signature(object = "rslinearModel")
signature(object = "rsnonlinearModel")
signature(object = "snonlinearModel")
signature(object = "sfunctionModel")
Examples
data(simData)
model1 <- momentModel(y~x1+x2, ~x2+z1+z2, data=simData)
modelDims(model1)
## Unrestricted model
rmodel1 <- restModel(model1, R=c("x1+x2=4"))
modelDims(rmodel1)
[Package momentfit version 0.5 Index]