[R] control for repeated observations in a simple correlation design

2014-06-03 Thread Caroline Lustenberger
Dear all I want to correlate 2 variables (EEG and Motorperformance) for 18 observations. However, these variables consist of only 6 subjects that were measured 3 times (leading to 18 observations). How can I calculate the correlation coefficient and p-value and control for this repeated

[R] control for repeated observations in a simple correlation design

2014-06-03 Thread Caroline Lustenberger
Dear all I want to correlate 2 variables (EEG and Motorperformance) for 18 observations. However, these variables consist of only 6 subjects that were measured 3 times (leading to 18 observations). How can I calculate the correlation coefficient and p-value and control for this repeated

[R] linear mixed model for non-normal negative and continous data

2014-04-28 Thread Caroline Lustenberger
Dear all I try to fit a linear mixed model to my data. In short, my dependent variable reflects changes of the bone level (Knmn, in mm), thus this variable is continous and provides negative values. I have two different groups (factor Group) that were measured 3 times each (thus repeated

[R] Problems with clmm2 (ordinal data fit)

2014-03-16 Thread Caroline Lustenberger
Dear all I have ordinal data (from a questionnaire with 4 levels) for 2 groups (30 subjects each) and 2 timepoints. So I used a cumulative link mixed model to fit the data (nr = subject number).