printRestrict-methods {momentfit}R Documentation

~~ Methods for Function printRestrict in Package momentfit ~~

Description

It prints the detailed restrictions imposed on "momentModel" classes.

Methods

signature(object = "rgelModels")
signature(object = "rlinearModel")
signature(object = "rnonlinearModel")
signature(object = "rfunctionModel")
signature(object = "rformulaModel")
signature(object = "rslinearModel")
signature(object = "rsnonlinearModel")

Examples

data(simData)
theta <- c(beta0=1,beta1=2)

## Unrestricted model
model1 <- momentModel(y~x1+x2+x3+z1, ~x1+x2+z1+z2+z3+z4, data=simData)

## restricted model
R <- matrix(c(1,1,0,0,0,0,0,2,0,0,0,0,0,1,-1),3,5, byrow=TRUE)
q <- c(0,1,3)
rmodel1 <- restModel(model1, R, q)
printRestrict(rmodel1)

[Package momentfit version 0.5 Index]