Re: [R] R help contingency table

2016-06-20 Thread Jim Lemon
Hi Lucie, You can visualize this using the sizetree function (plotrix). You supply a data frame of the individual choice sequences. # form a data frame of "random" choices coltrans<-data.frame(choice1=sample(c("High","Medium","Low"),100,TRUE), choice2=sample(c("High","Medium","Low"),100,TRUE))

Re: [R] R help contingency table

2016-06-20 Thread Lucie Dupond
Thank you for your answer ! I'm sorry, i've made a mistake in the second matrix, they should have the same row/column labels, I just used another label vector by mistake. My supervisor doesn't have a solution for this, and neither have every one I asked around me. Thanks for your solution,

Re: [R] R help contingency table

2016-06-20 Thread David L Carlson
You should consult with your adviser or someone at your institution who has more experience in statistical analysis than you do. You want to compare the matrices, but the row/column labels are different so you may be comparing completely different categories. Technically, you need to convert

Re: [R] R help contingency table

2016-06-20 Thread S Ellison
> The first colomn is showing the first color, and the second is showing the > second color of the transition Are you sure? transitions1 is a 3x3 matrix; it has three columns, not two. Could it be that the columns are colour 2 following initial condition given by row, or vice versa? [not that