search for: no_trial

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

2010 Jun 23
1
Generation of binomial numbers using a loop
Dea'R' helpers I have following data - prob = c(0.1, 0.2, 0.3, 0.4, 0.5) frequency = c(100, 75, 45, 30, 25) no_trials = c(10, 8, 6, 4, 2) freq1 = rbinom(frequency[1], no_trials[1], prob[1]) freq2 = rbinom(frequency[2], no_trials[2], prob[2]) freq3 = rbinom(frequency[3], no_trials[3], prob[3]) freq4 = rbinom(frequency[4], no_trials[4], prob[4]) freq5 = rbinom(frequency[5], no_trials[5], prob[5]) total_frequency...
2006 Mar 16
3
lattice tick marks
...mixed... positions <- rep ( c("1","2","3","4","5","6","9","10","11","12","13","14", "error", "no trial"), 45 ) compound <- matrix( c(loc2, loc1, error, no_trial), nrow=4, byrow=FALSE) barchart(compound ~ positions|gl (45,14, label=template ), col=c("deepskyblue1", "deepskyblue4", "tomato", "brown"), ... If I change the vector 'positions' to something like this: positions <- rep ( c(1,2,3,4,5,6,9,10...