<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello all,<div class=""><br class=""></div><div class="">I’m attempting to analyze the data for a RC study using two base images. When I run the generateCI2IFC command, I get the following error:</div><div class=""><br class=""></div><div class="">Error in colMeans(weighted):</div><div class=""><span class="Apple-tab-span" style="white-space:pre">     </span>‘x’ must be an array of at least two dimensions</div><div class=""><br class=""></div><div class="">In my response data file I have four columns: 1) Subject_nbr (numerical), 2) Face (stim number presented), 3) Sex (gender of the stimulus presented), and 4) correct (1 or -1 based off of participant response).</div><div class=""><br class=""></div><div class="">Full script reproduced below. Thanks in advance for your help!</div><div class=""><br class=""></div><div class="">Best,</div><div class="">Dan</div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div style="font-family: TimesNewRomanPSMT;" class="">library(rcicr)</div></div><div class=""><div style="font-family: TimesNewRomanPSMT;" class="">base_face_files<- list('OldM'='And_OldM.jpg', 'OldF'='And_OldF.jpg')</div></div><div class=""><div style="font-family: TimesNewRomanPSMT;" class=""><br class=""></div></div><div class=""><div style="font-family: TimesNewRomanPSMT;" class="">library(rcicr)</div></div><div class=""><div style="font-family: TimesNewRomanPSMT;" class=""><br class=""></div></div><div class=""><div style="font-family: TimesNewRomanPSMT;" class="">baseimage1 <- 'And_OldM'</div></div><div class=""><div style="font-family: TimesNewRomanPSMT;" class="">baseimage2 <- 'And_OldF'</div></div><div class=""><div style="font-family: TimesNewRomanPSMT;" class=""><br class=""></div></div><div class=""><div style="font-family: TimesNewRomanPSMT;" class="">rdata <- 'rcicrdata.Rdata'</div></div><div class=""><div style="font-family: TimesNewRomanPSMT;" class=""><br class=""></div></div><div class=""><div style="font-family: TimesNewRomanPSMT;" class="">responsedata <- read.csv('rcicrdata.csv')</div></div><div class=""><div style="font-family: TimesNewRomanPSMT;" class=""><br class=""></div></div><div class=""><div style="font-family: TimesNewRomanPSMT;" class="">ci <- batchGenerateCI2IFC(responsedata, 'Sex', 'Face', 'correct', baseimage, rdata)</div></div></blockquote><div class=""><div class="">
<br class="Apple-interchange-newline">Daniel Albohn<span class="Apple-tab-span" style="white-space: pre;">    </span><br class=""><a href="mailto:d.albohn@gmail.com" class="">Email</a>  | (484)332-7688<br class="">

</div>
<br class=""></div></body></html>