search for: subjno

Displaying 2 results from an estimated 2 matches for "subjno".

2005 Feb 21
4
49 histograms on one page
Hi, I want to do something like this: par(mfrow=c(7,7)) for (i in 1:49) hist(RATDACOM[SUBJNO==i],breaks=0.5+(0:6), main="",xlab="",ylab="",xaxt="n",yaxt="n") (Don't think about what RATDACOM and SUBJNO are.) I get an error Error in plot.new() : Figure margins too large. 36 histograms with mfrow=c(6,6) work. But the 36 histogr...
2006 May 04
1
Finding ties in data (be)for(e) BradleyTerry
...ith the same frequency. How can I accomplish that using the R-way (not looping through the entire thing; in reality, I have approx 40 stimuli with around 180 observations of an odd 40 subjects)? # $lp was left picture; $rp, right one; $wr was the winner/chosen one by subject. dat <- data.frame(subjno=gl(4,3), lp=factor(c(1,3,2,2,3,1,3,1,2,1,2,3), labels=c('a','b','c')), rp=factor(c(2,1,3,3,1,2,1,2,3,3,1,2), labels=c('a', 'b', 'c')), wr=factor(c(1,1,2,1,2,2,1,1,2,2,1,2), labels=c('lp', 'rp'))) dat.lp <- subset(dat, wr=='...