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

Description Methods Examples

Description

Return the response vector in models with and without restrictions

Methods

signature(object = "linearGmm")

For linear models without restrictions on the coefficients.

signature(object = "slinearGmm")

For system of linear models without restrictions on the coefficients.

signature(object = "rslinearGmm")

For system of linear models with restrictions on the coefficients.

signature(object = "rlinearGmm")

For linear models with restrictions on the coefficients.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(simData)

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

## Restrictions change the response
R <- c("x2=2","x3=3")
rmodel1 <- restModel(model1, R)
rmodel1
restY <- modelResponse(rmodel1)

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