Displaying 1 result from an estimated 1 matches for "farat".
Did you mean:
arat
2006 Oct 23
2
getting the by() function to work properly
...f3=function(x) {
+
+ twodied=x[died==2,];
+ twosaved=x[saved==2,];
+ hit2=x[saved==2 & choice=="+",];
+ fa2=x [died==2 & choice=="+",]; d2=(qnorm(((nrow(hit2))/(nrow(twosaved))))-qnorm((nrow(fa2))/(nrow(twodied))));
+ hitrate=((nrow(hit2))/(nrow(twosaved))); FArate=((nrow(fa2))/(nrow(twodied)));
+ zhit2=qnorm(((nrow(hit2))/(nrow(twosaved))));zfa2=qnorm((nrow(fa2))/(nrow(twodied)));B2= -.5*(zhit2+zfa2);
+ tp2=mean(twosaved$resp);
+ ta2=mean(twodied$resp);
+ tpsd2=sd(twosaved$resp);
+ tasd2=sd(twodied$resp);
+ dmj2=((tp2-ta2)/((tasd2+tpsd2)/2));
+...