Lelu123 2023-04-09 16:35 采纳率: 50%
浏览 31
已结题

如何将glmer的结果转为word

数据集:

img

random factor:verb_lemma
自变量:number,animacy,order,tense,resultativity,boundedness
因变量:object_case (partitive 0,nominative 1)
代码如下:

m2 = glmer(object_case ~ number + animacy + order + tense + resultativity + boundedness + (1|verb_lemma), 
           data = lra, family=binomial(link = "logit"), 
           control=glmerControl(optimizer = "bobyqa"))
summary(m2)

summary 结果如下

Generalized linear mixed model fit by maximum likelihood (Laplace Approximation) [glmerMod
]
 Family: binomial  ( logit )
Formula: object_case ~ number + animacy + order + tense + resultativity +  
    boundedness + (1 | verb_lemma)
   Data: lra
Control: glmerControl(optimizer = "bobyqa")

     AIC      BIC   logLik deviance df.resid 
   139.1    173.7    -60.5    121.1      336 

Scaled residuals: 
    Min      1Q  Median      3Q     Max 
-0.5317  0.0000  0.0000  0.0007  0.5398 

Random effects:
 Groups     Name        Variance Std.Dev.
 verb_lemma (Intercept) 1912     43.73   
Number of obs: 345, groups:  verb_lemma, 171

Fixed effects:
                 Estimate Std. Error z value Pr(>|z|)    
(Intercept)      -45.5773    10.3034  -4.424 9.71e-06 ***
numbersingular     2.4965     2.2802   1.095    0.274    
animacyeluta      -2.7037     4.8314  -0.560    0.576    
animacyinimene    -6.2863     5.8948  -1.066    0.286    
orderVO           -0.8728     2.2550  -0.387    0.699    
tensepresent      -0.0722     2.5892  -0.028    0.978    
resultativityyes  37.1170     7.2732   5.103 3.34e-07 ***
boundednessyes    24.1356     4.3747   5.517 3.45e-08 ***
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Correlation of Fixed Effects:
            (Intr) nmbrsn anmcyl anmcyn ordrVO tnsprs rslttv
numbersnglr -0.260                                          
animacyelut -0.443 -0.384                                   
animacyinmn -0.254 -0.292  0.846                            
orderVO     -0.139 -0.106  0.187  0.178                     
tensepresnt -0.477  0.075  0.442  0.423  0.146              
reslttvtyys -0.885  0.329  0.082 -0.106 -0.126  0.271       
bounddnssys -0.537  0.370 -0.295 -0.544 -0.023 -0.062  0.680

请问如何将这个output转化为word,以及如何分别将fixed effects,correltaion of fixed effects的output转化为word,请提供代码,谢谢!

  • 写回答

4条回答 默认 最新

  • 「已注销」 2023-04-09 16:46
    关注

    没明白你的意思啊,是保存吗

    评论

报告相同问题?

问题事件

  • 系统已结题 4月17日
  • 创建了问题 4月9日