Displaying 3 results from an estimated 3 matches for "invmillsratio".
2009 Jul 12
0
ERROR message while using <-invMillsRatio()
...1
(Dispersion parameter for binomial family taken to be 1)
Null deviance: 84763 on 257357 degrees of freedom
Residual deviance: 80515 on 257350 degrees of freedom
(85893 observations deleted due to missingness)
AIC: 80531
Number of Fisher Scoring iterations: 6
*
> adpopdata$IMR<-invMillsRatio(myProbit)$IMR1
Error in `$<-.data.frame`(`*tmp*`, "IMR", value = c(2.50039945424535, :
replacement has 257358 rows, data has 343251*
--
Dr.Saurav Pathak
PhD, Univ.of.Florida
Mechanical Engineering
Doctoral Student
Innovation and Entrepreneurship
Imperial College Business Sch...
2009 Jul 12
2
Heckman Selection MOdel Help in R
...+ gender + gemedu + gemhinc + es_gdppc +
>
> ??? imf_pop + estbbo_m, ln_oy5_1 ~ age+ gender+fearfail+gemedu,
> adpopdata,method="2step")
>
>
>
> I get
>
> Error: could not find function "heckit"
>
>
>
> Error: could not find function "invMillsRatio"
>
>
>
> Am I missing out something, do i have to install something apart from R
> also, so far I have used
>
>
>
> install.packages( "sampleSelection", repos="http://R-Forge.R-project.org" )
>
> install.packages("Rcmdr", dependenc...
2009 Jul 11
2
Heckman Selection Model/Inverse Mills Ratio
I have so far used the following command
glm(formula = s ~ age + gender + gemedu + gemhinc + es_gdppc +
imf_pop + estbbo_m, family = binomial(link = "probit"))
My question is
1. How do i discard the non significant selection variables (one out of the
seven variables above is non-significant) and calculate the Inverse Mills
Ratio of the significant variables
2. I need the inverse