'Why is my model average summary repeating independent variables in coefficient table?
I am running a linear regression analysis in package MuMIn and when I ask for the model average summary some of the independent variables repeat themselves in the model-averaged coefficients table. I am running this analysis for multiple species of bats and will be exporting it for a manuscript so I am hoping there is a way to remove duplicates within R. I've attached my code- I apologize for the length.
l1<-lmer(LogMeanPlusM~1+(1|SiteName), data=means_plus)
l2<-lmer(LogMeanPlusM~WNSyears+(1|SiteName),data=means_plus)
l3<-lmer(LogMeanPlusM~Pup+(1|SiteName), data=means_plus)
l4<-lmer(LogMeanPlusM~HabitatType+(1|SiteName),data=means_plus)
l5<-lmer(LogMeanPlusM~ParkCode+(1|SiteName),data=means_plus)
l6<-lmer(LogMeanPlusM~HabitatType*WNSyears+(1|SiteName),data=means_plus)
l7<-lmer(LogMeanPlusM~HabitatType+WNSyears+(1|SiteName),data=means_plus)
l8<-lmer(LogMeanPlusM~ParkCode*WNSyears+(1|SiteName),data=means_plus)
l9<-lmer(LogMeanPlusM~ParkCode+WNSyears+(1|SiteName),data=means_plus)
l10<-lmer(LogMeanPlusM~Pup*WNSyears+(1|SiteName), data=means_plus)
l11<-lmer(LogMeanPlusM~Pup+WNSyears+(1|SiteName), data=means_plus)
l12<-lmer(LogMeanPlusM~HabitatType+ParkCode*WNSyears+(1|SiteName), data=means_plus)
l13<-lmer(LogMeanPlusM~Pup+WNSyears*ParkCode+(1|SiteName), data=means_plus)
l14<-lmer(LogMeanPlusM~HabitatType+WNSyears*Pup+(1|SiteName), data=means_plus)
l15<-lmer(LogMeanPlusM~ParkCode+WNSyears*Pup+(1|SiteName), data=means_plus)
l16<-lmer(LogMeanPlusM~HabitatType+WNSyears+ParkCode+(1|SiteName), data=means_plus)
l17<-lmer(LogMeanPlusM~Pup+WNSyears+ParkCode+(1|SiteName), data=means_plus)
l18<-lmer(LogMeanPlusM~HabitatType+Pup+ParkCode+(1|SiteName), data=means_plus)
l19<-lmer(LogMeanPlusM~HabitatType+Pup+WNSyears+(1|SiteName), data=means_plus)
l20<-lmer(LogMeanPlusM~HabitatType+Pup+WNSyears+ParkCode+(1|SiteName), data=means_plus)
l21<-lmer(LogMeanPlusM~HabitatType+Pup+ParkCode*WNSyears+(1|SiteName), data=means_plus)
l22<-lmer(LogMeanPlusM~HabitatType*WNSyears+Pup+ParkCode+(1|SiteName), data=means_plus)
l23<-lmer(LogMeanPlusM~HabitatType+Pup*WNSyears+ParkCode+(1|SiteName), data=means_plus)
l24<-lmer(LogMeanPlusM~HabitatType*Pup+WNSyears+ParkCode+(1|SiteName), data=means_plus)
l25<-lmer(LogMeanPlusM~HabitatType+WNSyears+ParkCode*Pup+(1|SiteName), data=means_plus)
l26<-lmer(LogMeanPlusM~WNSyears+ParkCode*Pup+(1|SiteName), data=means_plus)
l27<-lmer(LogMeanPlusM~Pup*ParkCode+(1|SiteName),data=means_plus)
l28<-lmer(LogMeanPlusM~Pup*HabitatType+(1|SiteName),data=means_plus)
l29<-lmer(LogMeanPlusM~Pup*WNSyears+ParkCode*WNSyears+HabitatType*WNSyears+Pup*ParkCode+Pup*HabitatType+(1|SiteName),data=means_plus)
M1<model.avg(l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l11,l12,l13,l14,l15,l16,l17,l18,l19,l20,l21,l22,l23,l24,l25,l26,l27,l28,l29, beta=TRUE, rank=NULL, revised.var=TRUE, dispersion=NULL, ct.args=NULL)
summary(M1)
table<-coefTable(M1, full=TRUE)
table
Estimate Std. Error
(Intercept) 0.0000000000 0.0000
PupPre -0.0703693184 0.0458
WNSyears -0.2935396916 0.0957
ParkCodeGRPO -0.1222373724 0.0725
ParkCodeINDU -0.1926139403 0.1376
ParkCodeISRO 0.0338018818 0.1459
ParkCodeMISS 0.0614513671 0.0709
ParkCodePIRO -0.3894257398 0.0995
ParkCodeSACN -0.0414894796 0.0644
ParkCodeSLBE -0.0587584189 0.0923
ParkCodeVOYA -0.0612223608 0.0653
ParkCodeGRPO:WNSyears -0.0990148798 0.0683
ParkCodeINDU:WNSyears 0.1395486782 0.1391
ParkCodeISRO:WNSyears -0.2049322146 0.1483
ParkCodeMISS:WNSyears -0.0434732032 0.0430
ParkCodePIRO:WNSyears -0.0978247875 0.0888
ParkCodeSACN:WNSyears 0.0175567364 0.0421
ParkCodeSLBE:WNSyears 0.0298123201 0.0734
ParkCodeVOYA:WNSyears -0.0242696458 0.0422
ParkCodeGRPO:PupPre -0.0139027279 0.0363
ParkCodeINDU:PupPre 0.0000178213 0.0267
ParkCodeISRO:PupPre 0.0208333282 0.0474
ParkCodeMISS:PupPre 0.0026401140 0.0232
ParkCodePIRO:PupPre 0.0049220223 0.0257
ParkCodeSACN:PupPre 0.0063073559 0.0253
ParkCodeSLBE:PupPre -0.0163903799 0.0413
ParkCodeVOYA:PupPre -0.0176810133 0.0386
HabitatTypeForest 0.0358622389 0.0861
HabitatTypeForestOpen 0.0325113776 0.0734
HabitatTypeOpen 0.0389991149 0.0856
HabitatTypeWoodyWetland 0.0292161183 0.0672
ParkCodeGRPO:WNSyears -0.0990148798 0.0683
ParkCodeINDU:WNSyears 0.1395486782 0.1391
ParkCodeISRO:WNSyears -0.2049322146 0.1483
ParkCodeMISS:WNSyears -0.0434732032 0.0430
ParkCodePIRO:WNSyears -0.0978247875 0.0888
ParkCodeSACN:WNSyears 0.0175567364 0.0421
ParkCodeSLBE:WNSyears 0.0298123201 0.0734
ParkCodeVOYA:WNSyears -0.0242696458 0.0422
PupPre:WNSyears -0.0000297303 0.0021
PupPre:WNSyears -0.0000297303 0.0021
HabitatTypeForest:PupPre 0.0000092906 0.0020
HabitatTypeForestOpen:PupPre 0.0000084675 0.0013
HabitatTypeOpen:PupPre 0.0000131434 0.0016
HabitatTypeWoodyWetland:PupPre 0.0000122035 0.0014
HabitatTypeForest:WNSyears 0.0000058793 0.0014
HabitatTypeForestOpen:WNSyears -0.0000028477 0.0008
HabitatTypeOpen:WNSyears 0.0000030182 0.0009
HabitatTypeWoodyWetland:WNSyears 0.0000013016 0.0011
ParkCodeGRPO:PupPre -0.0139027279 0.0363
ParkCodeINDU:PupPre 0.0000178213 0.0267
ParkCodeISRO:PupPre 0.0208333282 0.0474
ParkCodeMISS:PupPre 0.0026401140 0.0232
ParkCodePIRO:PupPre 0.0049220223 0.0257
ParkCodeSACN:PupPre 0.0063073559 0.0253
ParkCodeSLBE:PupPre -0.0163903799 0.0413
ParkCodeVOYA:PupPre -0.0176810133 0.0386
HabitatTypeForest:PupPre 0.0000092906 0.0020
HabitatTypeForestOpen:PupPre 0.0000084675 0.0013
HabitatTypeOpen:PupPre 0.0000131434 0.0016
HabitatTypeWoodyWetland:PupPre 0.0000122035 0.0014
HabitatTypeForest:WNSyears 0.0000058793 0.0014
HabitatTypeForestOpen:WNSyears -0.0000028477 0.0008
HabitatTypeOpen:WNSyears 0.0000030182 0.0009
HabitatTypeWoodyWetland:WNSyears 0.0000013016 0.0011
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
