<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Hi, you’re on the wrong mailing list. This is the mailing list for R’s data.table package.</div> <br> <div id="bloop_sign_1448474441684508160" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">-- <br>Arun</div></div> <br><p class="airmail_on">On 25 November 2015 at 18:23:32, mahadev (<a href="mailto:orlovoleh@gmail.com">orlovoleh@gmail.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>Hello friends,
<br>
<br>I'm trying to do a factor analysis of a questionnaire of 243 items with
<br>YES/NO (1/0) type answers. That's why I need a polychoric correlation
<br>matrix. I'm trying to use hetcor() function from "polychor" package:
<br>
<br>e <- read.xlsx2(file="ukon_1.xlsx", sheetIndex = 1, as.data.frame="true")
<br>#this is to load my binary data
<br>e1 <- hetcor(e) #this is to generate correlation matrix
<br>
<br>And I get an error:
<br>
<br>Error in optim(0, f, control = control, hessian = TRUE, method = "BFGS") :  
<br>  non-finite finite-difference value [1]
<br>
<br>When I cut my data to up to 30 variables, everything is fine - I get a
<br>correlation matrix. Any ideas how to fix that?
<br>
<br>PS Sorry for my English - it's not my native language =(
<br>
<br>
<br>
<br>--
<br>View this message in context: http://r.789695.n4.nabble.com/hetcor-error-when-variables-are-more-than-30-tp4715010.html
<br>Sent from the datatable-help mailing list archive at Nabble.com.
<br>_______________________________________________
<br>datatable-help mailing list
<br>datatable-help@lists.r-forge.r-project.org
<br>https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
<br></div></div></span></blockquote></body></html>