I have a linear mixed-effect model which I hope will answer the question of whether an increase in the frequency of use of one word leads to an increase of the frequency of use of that word by another person in a conversation, factoring out random effects of subject and topic of conversation. The basic model I've come up with looks like this:
Linear mixed model fit by REML
Formula: relative.sents.A ~ relative.sents.B + (1 | id.A) + (1 | abstract)
Data: nonzero
AIC BIC logLik deviance REMLdev
-698.8 -683.9 354.4 -722.6 -708.8
Random effects:
Groups Name Variance Std.Dev.
id.A (Intercept) 1.0790e-04 0.0103877
abstract (Intercept) 3.0966e-05 0.0055647
Residual 2.9675e-04 0.0172263
Number of obs: 146, groups: id.A, 97; abstract, 52
Fixed effects:
Estimate Std. Error t value
(Intercept) 0.017260 0.003046 5.667
relative.sents.B 0.428808 0.080050 5.357
Correlation of Fixed Effects:
(Intr)
rltv.snts.B -0.742
The "dependent" variable is relative frequency of use by one person, and the fixed variable is relative frequency of use by another. I decided to see what the R^2 would be:
> cor(nonzero$relative.sents.A, fitted(nonzero.lmer))^2
[1] 0.6705905
To see what proportion of this is due to the fixed effect, I made a new model with only the random effects:
> summary(r.only.lmer)
Linear mixed model fit by REML
Formula: relative.sents.A ~ 1 + (1 | id.A) + (1 | abstract)
Data: nonzero
AIC BIC logLik deviance REMLdev
-678.2 -666.3 343.1 -696.7 -686.2
Random effects:
Groups Name Variance Std.Dev.
id.A (Intercept) 1.2868e-04 0.0113435
abstract (Intercept) 7.8525e-06 0.0028022
Residual 3.7643e-04 0.0194017
Number of obs: 146, groups: id.A, 97; abstract, 52
Fixed effects:
Estimate Std. Error t value
(Intercept) 0.029149 0.002088 13.96
...and tried the same thing:
> cor(nonzero$relative.sents.A, fitted(r.only.lmer))^2
[1] 0.6882534
To my surprise, without that fixed effect, R^2 seems to increase!
Does this mean my model is useless? If so, any suggestions on what might be wrong? Or am I somehow misinterpreting these results?
summary(r.only.lmer)– mpiktas Dec 10 '10 at 08:11