<div dir="ltr">Thanks, Ron. I saw the error after I sent the email. However, after accounting for it, I still get the same colMeans error. That is, I seperated the data by base image and tried call the batchGenerateCI2IFC function again with no success. Do you have any idea what variable this the colMeans(weighted) is referring to?<div><br></div><div>To answer your other question, all participants saw both base image faces.</div><div><br></div><div>Thanks,</div><div>Dan</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><br></div>Daniel Albohn<br><div>484-332-7688</div></div></div></div>
<br><div class="gmail_quote">On Fri, Dec 12, 2014 at 3:06 AM, Dotsch, R. (Ron) <span dir="ltr"><<a href="mailto:R.Dotsch@uu.nl" target="_blank">R.Dotsch@uu.nl</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
Hi Daniel,
<div><br>
</div>
<div>This is a bit complicated, because it depends on how you structured your data file and whether the different base images were presented to the same participants or to different ones. Anyway, you have made a mistake in your code. Your reference
baseimage as argument to the call to batchGenerateCI2IFC but you define the two baseimages as separate variables earlier (baseimage1, baseimage2). For now, the easiest option is to only refer to one as baseimage, and make sure you then only supply the subset
of responsedata that applies to that specific base image.</div>
<div><br>
</div>
<div>Best,</div>
<div><br>
</div>
<div>Ron</div>
<div><br>
</div>
<div>
<div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
________________________________</div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
Dr. Ron Dotsch</div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<br>
</div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div>Utrecht University</div>
<div>Social and Organizational Psychology (Room E2.22)</div>
<div><br>
Website: <a href="http://ron.dotsch.org" target="_blank">http://ron.dotsch.org</a><br>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div>
<blockquote type="cite"><div><div class="h5">
<div>On Dec 12, 2014, at 00:48, Daniel Albohn <<a href="mailto:d.albohn@gmail.com" target="_blank">d.albohn@gmail.com</a>> wrote:</div>
<br>
</div></div><div><div><div class="h5">
<div style="word-wrap:break-word">
Hello all,
<div><br>
</div>
<div>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><br>
</div>
<div>Error in colMeans(weighted):</div>
<div><span style="white-space:pre-wrap"></span>‘x’ must be an array of at least two dimensions</div>
<div><br>
</div>
<div>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><br>
</div>
<div>Full script reproduced below. Thanks in advance for your help!</div>
<div><br>
</div>
<div>Best,</div>
<div>Dan</div>
<div><br>
</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div>
<div style="font-family:TimesNewRomanPSMT">library(rcicr)</div>
</div>
<div>
<div style="font-family:TimesNewRomanPSMT">base_face_files<- list('OldM'='And_OldM.jpg', 'OldF'='And_OldF.jpg')</div>
</div>
<div>
<div style="font-family:TimesNewRomanPSMT"><br>
</div>
</div>
<div>
<div style="font-family:TimesNewRomanPSMT">library(rcicr)</div>
</div>
<div>
<div style="font-family:TimesNewRomanPSMT"><br>
</div>
</div>
<div>
<div style="font-family:TimesNewRomanPSMT">baseimage1 <- 'And_OldM'</div>
</div>
<div>
<div style="font-family:TimesNewRomanPSMT">baseimage2 <- 'And_OldF'</div>
</div>
<div>
<div style="font-family:TimesNewRomanPSMT"><br>
</div>
</div>
<div>
<div style="font-family:TimesNewRomanPSMT">rdata <- 'rcicrdata.Rdata'</div>
</div>
<div>
<div style="font-family:TimesNewRomanPSMT"><br>
</div>
</div>
<div>
<div style="font-family:TimesNewRomanPSMT">responsedata <- read.csv('rcicrdata.csv')</div>
</div>
<div>
<div style="font-family:TimesNewRomanPSMT"><br>
</div>
</div>
<div>
<div style="font-family:TimesNewRomanPSMT">ci <- batchGenerateCI2IFC(responsedata, 'Sex', 'Face', 'correct', baseimage, rdata)</div>
</div>
</blockquote>
<div>
<div><br>
Daniel Albohn<span style="white-space:pre-wrap"> </span><br>
<a href="mailto:d.albohn@gmail.com" target="_blank">Email</a> | <a href="tel:%28484%29332-7688" value="+14843327688" target="_blank">(484)332-7688</a><br>
</div>
<br>
</div>
</div></div></div>
_______________________________________________<br>
Rcicr-users mailing list<br>
<a href="mailto:Rcicr-users@lists.r-forge.r-project.org" target="_blank">Rcicr-users@lists.r-forge.r-project.org</a><br>
<a href="http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcicr-users" target="_blank">http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcicr-users</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote></div></div>