name.pieces: Name the elements that go into your regression function.

Description Usage Arguments Value

View source: R/name_pieces.R

Description

There is likely a cleaner way to do this, but it allows for more flexibility as to how many of each parameter you're going to have.

Usage

1
2
name.pieces(t, a1 = len_cov, a2 = num_betas, a3 = num_endog,
  a4 = numpis)

Arguments

t

a vector which should start with the covariates, then the betas, then the gammas, then the pis

a1

the number of elements in the covariance matrix

a2

the number beta coefficients (2nd stage linear regression)

a3

the number endogenous regressors

a4

a list of the number of pi coefficients (1st stage regression) for each endogenous regressor

Value

The vector renamed according to what it needs to be to work in the likelihood functions


jackiemauro/hurdleIV documentation built on April 2, 2018, 8:28 p.m.