How do we conduct linear mixed models with fixed factors, random factors and nested effects in R, SAS or SPSS? A mixed models with three fixed factors and a random factor, however, there is a nested relationship between a fixed factor and random factor. How do we do in R, SAS or SPSS.