Learn R Programming

momentfit (version 0.5)

modelDims-methods: 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.

Arguments

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

Run this code
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)


Run the code above in your browser using DataLab