printRestrict-methods: ~~ Methods for Function 'printRestrict' in Package 'gmm4' ~~

Description Methods Examples

Description

It prints the detailed restrictions imposed on gmmModels.

Methods

signature(object = "rgelModels")
signature(object = "rlinearGmm")
signature(object = "rnonlinearGmm")
signature(object = "rfunctionGmm")
signature(object = "rformulaGmm")
signature(object = "rslinearGmm")

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(simData)
theta <- c(beta0=1,beta1=2)

## Unrestricted model
model1 <- gmmModel(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)

gmm4 documentation built on Dec. 6, 2019, 3:01 a.m.