In my dataset, I have a variable called Condition
. I modeled this as a factor with two levels: Control
and Treatment
. In the same data frame, I also have variables: Fish1
, Fish2
, Frechfires1
, Frenchfries2
. I want to model these 'Ordinalvariables'
as levels of the treatment group with Fish
higher than the fries
! At the same time, I want to keep the level of Fish1
and Fish2
equal and the same for fries1&2- all for Treatment
(which is a level of the variable Condition
).
For fitting a mixed model: Health~Condition() Taking in to account the effect of Fish & Fries
Condition SubNum Trial Num_Fish1 Num_Fish2 Num_Fries1 Num_Fries2 Health
Treatment 1 1 1 1 2 1 3
Treatment 1 2 0 3 4 1 5
Control 2 1 0 0 0 0 4
Control 2 2 0 0 0 0 5