Mr. Richard Careaga, thank you for your response! I noticed that you left a comment on one of my previous posts, so I want to ask you something.
I would like, instead of ANCOVA to make a mixed ANOVA, therefor I need to switch to long data format (currently I am on ‚wide‘). My design is a 2x2x2x2 mixed ANOVA, as 3 factors are between- subjects and the last one is within-subjects.
I have many variables in my data frame (each item from my questionnaire is coded as variable).
When I try to do the data frame from wide to long data format using the command:
melt(data, id=c(„Faktor1“, „Faktor2“, „Faktor3“), measured=c(„Time1“, „Time2“))
it goes wrong – I get 5 columns (that is okay) but in the column “variable”, where the within variables are supposed to be, are all of the variables that I used to have in my initial data frame (incl. every item etc.). That's why and the scores in the last column („value“) are wrong.
I need to have the 5 variables (isolated) in long format to test my hypothesis with mixed ANOVA.
How do I manage to solve this, is there any way because I'm not sure where my mistake is.
Please, let me know if you have any question.