# Linear mixed model with partially crossed effects

I'm new to Linear Mixed Models and I'm not sure if I'm specifying the right model. I'd appreciate any feedback that confirms / disproves my model. Here's some background about my data:

I have a list of subjects. Each subject is partially crossed with an "App" group. This means that some of the "Apps" may share the same subject.

For each app, the subjects in that app answer three values on a Likert scale (AppTrust, AppImportance, AppFrequency), and two on a continuous scale (Security *Comfort*, and Non-security *Comfort*).

The question I'm trying to answer is: What is the difference in Comfort of the subjects down to?

Given this, I'm trying to model Comfort using the following model:

comfort ~  AppImportance + AppTrust + AppFrequency + AgeOfSubject +
GenderOfSubject + ComfortType + (1 | SubjectID) + (1 | App)


Here, ComfortType is either "Security" or "Non-security".

Is my model correctly specified? Am I correct to consider AppImportance, AppTrust and AppFrequency as fixed effects?

• @MarkNewman Right, and for all three, it would be (AppImportance + AppTrust + AppFrequency | SubjectID). Technically these slopes could also vary across Apps. Although if you have only a small number of apps, such a model could be computationally difficult to estimate. – Jake Westfall May 22 '16 at 19:53
• @MarkNewman No, the final equation would be comfort ~ AppImportance + AppTrust + AppFrequency + AgeOfSubject + GenderOfSubject + ComfortType + (AppImportance + AppTrust + AppFrequency | SubjectID) + (1 | App). With the theoretical possibility of going even further by replacing (1 | App) with (AppImportance + AppTrust + AppFrequency | App). – Jake Westfall May 22 '16 at 20:05
• Ah, I see - thanks! Also, my dependent variable is a score between 0-100 - what kind of a model would suit this? I'vm currently using the beta regression mixed model from the glmmADMB package. – Mark Newman May 22 '16 at 20:54