Skip to content
Prev 361687 / 398506 Next

Using weights with truncreg

On Mon, 13 Jun 2016, Ganz, Carl wrote:

            
I think you are right and the 'weights' argument in truncreg() is 
currently not used.

As an alternative you can use the "crch" package for censored (and 
truncated) regression with conditional heteroskedasticity. The models 
above can be fitted via:

library("crch")
fm_trunc2 <- trch(yt ~ x, data = d, left = 1)
fm_trunc_weighted2 <- trch(yt ~ x, data = d, weights = wgt, left = 1)

Note that by default a log-link is used for the sigma/scale parameter to 
assure positivity. But you can also set link.scale="identity" to obtain 
the same results as in truncreg().