SCM

Forum: help

Monitor Forum | Start New Thread Start New Thread
Recent download on R-2.9.1 [ Reply ]
By: Kyle LaMalfa on 2009-08-18 00:45
[forum:1833]
I believe I have assembled all of the latest package dependencies for econMisc. However I still experience this problem from the example data when attempting to use 'intreg':

> ## Example of observation-specific boundaries
> ## Estimate the willingness to pay for the Kakadu National Park
> ## Data given in intervals -- 'lower' for lower bound and 'upper' for upper bound.
> ## Note that dichotomous-coice answers are already coded to 'lower' and 'upper'
> library(Ecdat)
> data(Kakadu)
> ## Estimate in log form, change 999 to Inf
> lb <- log(Kakadu$lower)
> ub <- Kakadu$upper
> ub[ub > 998] <- Inf
> ub <- log(ub)
> y <- cbind(lb, ub)
> m <- intreg(y ~ sex + log(income) + age + schooling +
+ recparks + jobs + lowrisk + wildlife + future + aboriginal + finben +
+ mineparks + moreparks + gov +
+ envcon + vparks + tvenv + major, data=Kakadu)
Error in fn(start, ...) :
unused argument(s) (activePar = c(TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE))
>

Thanks to:
Vienna University of Economics and Business Powered By FusionForge