r regression weights not working -


i using mhurdle package in order estimate truncated normal hurdle model. function mhurdle includes "weight" argument supposed work in same way in lm (according mhurdle). when use argument, though, obtain same results in case without weights.

i wonder why , also, alternative, if possible modify variables in order include weights before estimating model (the package uses maximum likelihood estimation).

(i read on forum once of function resulted in same problem because weights never used in estimation. same here don't know how check , have not been able find question again)

this how wrote call function:

depvar <- mhurdle (y ~ indvar1 + indvar2 + indvar3  |                        indvar1 + indvar2 + indvar3  |                         0,                        data = mydata,                        na.action = na.omit,                         dist = "tn",                        weights = mydata$weights) 

any ideas/suggestions?

thanks

this cran package. reach out authors if package isn't working advertised. https://cran.r-project.org/web/packages/mhurdle/index.html


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -