Hello,
I am using proc mixed to analyze the percent decreased in teeth length based on the following factors: teeth positions, gender and stages. There are four teeth positions (left and right central incisors, left and right lateral incisors) measured for 160 subjects (so, I have 160*4=640 total sample size). The percent decreased in teeth length for each teeth position was calculated during the fixed orthodontic treatments. It is a repeated measures because a same subject is used to measure the teeth length for four positions. I am trying to find whether the positions of teeth, gender and stages significantly affect the percent decrease in teeth length during fixed orthodontic treatment. I am using this code:
proc mixed data=
class subject_id position gender stages;
model percent=position gender stages;
repeated position/subject=subject_id;
lsmeans position gender stages
run;
lsmeans position sex stages;
run;
is this code right?