[R] Error in example Glm rms package

Ben Bolker bbolker at gmail.com
Tue Feb 8 22:54:59 CET 2011


anna freni sterrantino <annafreni <at> yahoo.it> writes:

> I've got this error while running 
> 
> example(Glm)
> 
> library("rms")
> > example(Glm)
 [snip]
> Glm> f <- Glm(counts ~ outcome + treatment, family=poisson())
> Error in Design(eval(mf, parent.frame())) : 
>   dataset dd not found for options(datadist=)
> sessionInfo()
> R version 2.12.1 Patched (2011-01-08 r53945)
> Platform: x86_64-unknown-linux-gnu (64-bit)
> 
[snip]      
> 
> attached base packages:
>  [1] tcltk     tools     splines   stats     graphics  grDevices utils    
>  [8] datasets  methods   base     
> 
> other attached packages:
> [1] lattice_0.19-17 debug_1.2.4     mvbutils_2.5.4  rms_3.1-0      
> [5] mgcv_1.7-2      Hmisc_3.8-3     survival_2.36-2 foreign_0.8-41 
> 
> loaded via a namespace (and not attached):
> [1] cluster_1.13.2     grid_2.12.1        Matrix_0.999375-46
> nlme_3.1-97       
> 
> While I don't have this issue on  another R-machine
> > sessionInfo()
> R version 2.12.1 (2010-12-16)
> Platform: i686-pc-linux-gnu (32-bit)
> 
[snip]

> attached base packages:
> [1] splines   stats     graphics  grDevices utils     datasets  methods  
> [8] base     
> 
> other attached packages:
> [1] rms_3.1-0       Hmisc_3.8-3     survival_2.36-2
> 
> loaded via a namespace (and not attached):
> [1] cluster_1.13.2  grid_2.12.1     lattice_0.19-13 tools_2.12.1 


  Interesting.  One is 64-bit and the other is 32-bit.
I also see that you have different sets of packages loaded.
I would recommend (1) trying with R --vanilla, to make sure
that you are starting from a clean session; (2) perhaps, if
you're up to it, using traceback() and/or options(error=recover)
to try to track the problem a bit farther; (3) contacting
the package maintainer ...

  Ben Bolker



More information about the R-help mailing list