Beginner R: Script for a Friedman Test -


i looking friedman test on data, attached below. sure solution simple (i know there friedman.test command), complete beginner r , stats overall , can't figure out how make work. in section gives example , says command friedman.test(yourdata), when try turns error:

error in friedman.test.default(q) :    argument "groups" missing, no default 

i think difference between data , example example matrix , data apparently isn't. can make data matrix? if not, need include after freidman.test() make calculation data?

any appreciated!

> dput(q) structure(list(rt1 = c(4l, 5l, 4l, 4l, 5l, 4l, 4l, 5l, 2l, 4l,  3l, 3l, 3l, 4l, 4l, 3l, na, na, na, na, na, na, na, na, na, na,  na, na, na, na, na, 4l, 4l, 4l, na, 3l, na, 5l, na, na, 4l, 1l,  4l, na), rt2 = c(4l, 4l, 3l, 4l, 5l, 3l, 4l, 5l, 4l, 4l, na,  4l, 3l, 4l, 4l, 1l, 3l, 5l, 4l, 4l, 5l, 4l, 3l, 5l, 3l, 4l, 4l,  4l, 4l, 5l, 3l, 5l, 5l, 5l, 4l, 4l, 4l, 5l, 5l, 4l, na, na, na,  4l), rt3 = c(4l, 4l, 3l, 4l, 5l, 3l, 4l, 5l, 4l, 5l, 4l, 4l,  3l, 3l, na, 3l, 3l, 4l, 4l, 4l, 4l, 4l, 1l, 4l, 4l, 4l, 4l, 5l,  na, 4l, na, 5l, 5l, na, 5l, 3l, 5l, 5l, na, 5l, na, 5l, 5l, 3l ), rt4 = c(5l, 4l, 4l, 4l, 5l, 4l, 4l, 5l, na, 5l, 4l, 4l, na,  4l, 4l, 3l, 3l, na, 5l, 5l, 4l, 4l, 1l, 4l, 4l, 4l, 5l, na, na,  na, na, na, 5l, na, 4l, 4l, 5l, na, 5l, na, 4l, 5l, na, na),      rt5 = c(3l, 4l, 4l, 2l, 5l, 4l, 2l, 5l, 4l, 5l, 4l, 4l, 4l,      4l, 4l, na, 3l, 3l, 5l, 4l, 4l, 3l, 5l, 4l, 4l, 4l, 5l, na,      na, 4l, na, 4l, 4l, 4l, 5l, 3l, na, 5l, na, 5l, 5l, 4l, 4l,      na), rt6 = c(4l, 4l, 4l, na, 5l, 4l, na, 5l, na, 5l, 3l,      4l, 4l, 4l, 4l, 3l, 5l, 4l, 5l, na, 4l, 3l, 2l, 4l, na, 4l,      5l, na, na, na, 3l, 5l, 4l, 3l, 4l, 3l, na, na, na, 5l, 4l,      4l, 4l, na), rt7 = c(5l, 4l, na, na, 5l, na, na, 5l, 4l,      5l, 3l, 4l, 4l, 5l, 5l, 3l, 4l, na, 5l, 4l, 4l, 3l, 3l, 5l,      4l, 4l, 5l, na, na, 3l, 5l, 4l, 4l, na, na, 1l, 5l, 5l, 4l,      5l, 4l, 3l, 5l, 3l), rt8 = c(4l, 4l, 5l, na, 5l, 5l, na,      5l, 3l, 5l, 4l, 4l, 4l, 5l, 4l, 3l, 1l, na, na, 5l, na, 3l,      4l, 4l, 4l, 5l, na, na, na, 3l, 4l, 5l, 4l, 4l, 4l, 3l, 5l,      5l, 4l, 5l, 5l, 3l, 5l, na), rt9 = c(4l, na, na, na, 4l,      na, na, 4l, 4l, 4l, na, 3l, 4l, 5l, 5l, 3l, 3l, na, 5l, 5l,      na, 3l, 3l, 5l, na, na, na, na, na, 4l, na, 5l, 4l, na, 1l,      2l, na, na, na, na, na, 4l, na, na), rt10 = c(5l, na, 5l,      na, na, 5l, na, na, na, 5l, 4l, 4l, 4l, 5l, 5l, 3l, 3l, na,      na, 5l, 4l, 3l, 1l, 4l, 4l, 4l, 4l, na, na, na, 5l, 4l, 4l,      4l, 4l, 1l, 5l, na, 4l, 5l, 4l, 5l, na, 3l), rt11 = c(5l,      4l, 4l, na, 4l, 4l, na, 4l, 3l, 5l, 3l, 4l, na, na, 5l, 4l,      5l, na, 5l, 5l, 4l, 4l, 4l, 5l, 4l, 4l, 5l, na, na, na, na,      5l, 5l, na, na, 1l, 5l, 5l, na, 5l, 4l, na, na, na)), class = c("tbl_df",  "tbl", "data.frame"), row.names = c(na, -44l), .names = c("rt1",  "rt2", "rt3", "rt4", "rt5", "rt6", "rt7", "rt8", "rt9", "rt10",  "rt11")) 


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -