r software

  1. S

    Column of values of unique subgroup counts...

    Hi, So I have a data frame, and I would like to add an additional column which shows the total sum of rows within the subgroups... heres a simple example grp=c("A","A","A","A","A","B","B","B","B","C","C") hour=c(1,1,1,2,2,1,1,1,2,1,1) test=data.frame(grp,hour,score) grp hour 1 A 1...
  2. M

    how to reshape the matrix with or without do loop?

    Dear All, I need to reshape below matrix with or without do loop: Below is my question: fd=read.table(header=TRUE, text=" X1 X2 X3 X4 X5 X6 18.25766 123.9019 151.4487 34.1252 196.6713 231.2289 16.89285 121.7344 146.5685 60.4828 299.1966 346.6185...
  3. R

    Implementing non-parametric version of 2x2 Repeated Measures ANOVA in R

    Hi, I have a 2x2 repeated measures design (i.e. 1 group of participants provide data for all 4 conditions in a fully factorial counterbalanced design [so there is no time factor to worry about]). The data is non-normal so I need to use a non-parametric equivalent of the 2x2 factorial ANOVA...
  4. V

    General Linear Models

    Hi, I have an experiment where participants look at a picture and then have to choose a voice out of three for that picture. I want to find out how many participants get the right voice and whether participants' selection of the correct voice is significantly above chance. From what I've...