[R] Bootstrap (bootSem) causes R to crash
epgreen at gmail.com
Thu Oct 10 21:01:42 CEST 2013
I'd like to report a similar experience. When I attempt to run the first
CFA example in bootSem(), specifically the line:
system.time(boot.cnes <- bootSem(sem.cnes, R=100, Cov=hcor, data=CNES))
R crashes and I get a notice about X11. I copied my sessionInfo() below.
Any ideas for a workaround?
R version 3.0.1 (2013-05-16)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
attached base packages:
 grid stats graphics grDevices utils datasets methods
other attached packages:
 polycor_0.7-8 sfsmisc_1.0-23 mvtnorm_0.9-9996 corrgram_1.5
 seriation_1.0-11 colorspace_1.2-3 gclus_1.3.1 TSP_1.0-8
 cluster_1.14.4 GGally_0.4.4 reshape_0.8.4 plyr_1.8
 ggplot2_0.9.3.1 xtable_1.7-1 xlsx_0.5.1 xlsxjars_0.5.0
 rJava_0.9-4 nFactors_2.3.3 lattice_0.20-23 boot_1.3-9
 sem_3.1-3 matrixcalc_1.0-3 MASS_7.3-29 psych_1.3.10
 foreign_0.8-55 knitr_1.5 formatR_0.9
loaded via a namespace (and not attached):
 dichromat_2.0-0 digest_0.6.3 evaluate_0.5 gtable_0.1.2
 labeling_0.2 munsell_0.4.2 proto_0.3-10
 reshape2_1.2.2 scales_0.2.3 stringr_0.6.2 tools_3.0.1
On Wednesday, March 20, 2013 1:43:26 PM UTC-4, John Fox wrote:
> Dear pedtroabq,
> I think that it's impossible to know from the information given why R
> crashes when bootSem() is called a second time after it worked the first
> time (which is how I interpret the message that you reference). I don't
> think that bootSem() is doing anything unusual -- it simply refits the
> to bootstrap samples and uses try() to intercept model-fitting failures on
> the bootstrap replications.
> Also, although it's not relevant to the problem, it's odd not to store the
> object returned by bootSem() in a variable, which is perhaps what the
> of the message means by (2).
> bootSem() does use a Tk progress bar, and I suppose that it's possible
> Tcl/Tk for X-Windows or X-Windows itself isn't installed, and that's the
> source of the error, but I read (1) as implying that the first call to
> bootSem() worked. bootSem() only uses a Tk progress var if tcltk is
> but I don't believe on the Mac that this insures that the tcltk package
> actually works. If this is indeed the source of the problem, I should
> probably avoid the Tk progress bar under Mac OS X because of the
> support out of the box for the tcltk package on that platform.
> John Fox
> Senator McMaster Professor of Social Statistics
> Department of Sociology
> McMaster University
> Hamilton, Ontario, Canada
> > -----Original Message-----
> > project.org] On Behalf Of pedroabg
> > Sent: Wednesday, March 20, 2013 1:18 PM
> > Subject: Re: [R] Bootstrap (bootSem) causes R to crash
> > I think we didn't receive this on the list.
> > --
> > View this message in context: http://r.789695.n4.nabble.com/Bootstrap-
> > bootSem-causes-R-to-crash-tp4661900p4661944.html
> > Sent from the R help mailing list archive at Nabble.com.
> > ______________________________________________
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/posting-
> > guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help