Skip to content
Prev 18024 / 20628 Next

[FORGED] Re: Export several lme outputs to a single excel file

Hi again,
after adding a column with the name using the command $Md to Anova models,
I tried to do the same, but for any reason is not working.
I create a series of model and make them compete:
random = ~ 1|factor(ExpID),method="ML")
DataBM_GP_StdzDiffGAlow, random = ~ 1|factor(ExpID),method="ML")
Model selection table
                   (Intrc) Trtm2 df  logLik  AICc delta weight
lmeGPBYPGAlowNULL    3.367        3 -73.434 154.4  0.00   0.83
lmeGPBYPGAlowOnlyT   3.367     +  4 -73.433 157.5  3.17   0.17
Models ranked by AICc(x)
Random terms (all models):
?1 | factor(ExpID)?

Then I get the results of the Model selection, and a column with the name.
model.sel(lmeGPBYPGAlowNULL,lmeGPBYPGAlowOnlyT))
It seems that there is no problem. And t confirm I run it
Model selection table
                   (Intrc) Trtm2 df  logLik  AICc delta weight
              Md
lmeGPBYPGAlowNULL    3.367        3 -73.434 154.4  0.00   0.83 BM GP MuMIn
By periods GAlow
lmeGPBYPGAlowOnlyT   3.367     +  4 -73.433 157.5  3.17   0.17 BM GP MuMIn
By periods GAlow
Models ranked by AICc(x)
Random terms (all models):
?1 | factor(ExpID)?

*BUT*, when I do the same with other objects with the same amount of
columns, etc and bind them, the column Md doesnt appear
rbind(BM_MuMIn_GP_AllP_peakAll,BM_MuMIn_GP_AllP_earlypeak,BM_MuMIn_GP_AllP_latepeak)
Model selection table
                     (Int) Tr2 Prd Prd:Tr2 df   logLik  AICc delta weight
lmeGPAllPearlypNULL  1.547                  3 -261.853 530.0  0.00  0.521
lmeGPAllPpAllNULL    1.441                  3 -262.736 531.8  1.77  0.215
lmeGPAllPearlypOnlyT 1.547   +              4 -261.824 532.1  2.14  0.178
lmeGPAllPpAllOnlyT   1.441   +              4 -262.714 533.9  3.92  0.073
lmeGPAllPlatepNULL   1.229                  3 -266.356 539.0  9.01  0.006
lmeGPAllPlatepOnlyT  1.229   +              4 -266.346 541.2 11.19  0.002
lmeGPAllPearlyp2wTP  1.587   +   +       + 10 -259.508 541.9 11.95  0.001
lmeGPAllPearlyp2wTP1 1.587   +   +       + 10 -259.508 541.9 11.95  0.001
lmeGPAllPpAll2wTP    1.484   +   +       + 10 -260.089 543.1 13.11  0.001
lmeGPAllPpAll2wTP1   1.484   +   +       + 10 -260.089 543.1 13.11  0.001
lmeGPAllPlatep2wTP   1.277   +   +       + 10 -262.725 548.4 18.39  0.000
lmeGPAllPlatep2wTP1  1.277   +   +       + 10 -262.725 548.4 18.39  0.000


But still each object have the Md column
Model selection table
                   (Int) Tr2 Prd Prd:Tr2 df   logLik  AICc delta weight
                                  Md
lmeGPAllPpAllNULL  1.441                  3 -262.736 531.8  0.00  0.742 BM
GP MuMIn All periods Interact peakAll
lmeGPAllPpAllOnlyT 1.441   +              4 -262.714 533.9  2.16  0.252 BM
GP MuMIn All periods Interact peakAll
lmeGPAllPpAll2wTP  1.484   +   +       + 10 -260.089 543.1 11.35  0.003 BM
GP MuMIn All periods Interact peakAll
lmeGPAllPpAll2wTP1 1.484   +   +       + 10 -260.089 543.1 11.35  0.003 BM
GP MuMIn All periods Interact peakAll
Models ranked by AICc(x)
Random terms (all models):
?1 | factor(ExpID)?
Model selection table
                     (Int) Tr2 Prd Prd:Tr2 df   logLik  AICc delta weight
                                      Md
lmeGPAllPearlypNULL  1.547                  3 -261.853 530.0  0.00  0.742
BM GP MuMIn All periods Interact earlypeak
lmeGPAllPearlypOnlyT 1.547   +              4 -261.824 532.1  2.14  0.254
BM GP MuMIn All periods Interact earlypeak
lmeGPAllPearlyp2wTP  1.587   +   +       + 10 -259.508 541.9 11.95  0.002
BM GP MuMIn All periods Interact earlypeak
lmeGPAllPearlyp2wTP1 1.587   +   +       + 10 -259.508 541.9 11.95  0.002
BM GP MuMIn All periods Interact earlypeak
Models ranked by AICc(x)
Random terms (all models):
?1 | factor(ExpID)?
Model selection table
                    (Int) Tr2 Prd Prd:Tr2 df   logLik  AICc delta weight
                                     Md
lmeGPAllPlatepNULL  1.229                  3 -266.356 539.0  0.00  0.738 BM
GP MuMIn All periods Interact latepeak
lmeGPAllPlatepOnlyT 1.229   +              4 -266.346 541.2  2.18  0.248 BM
GP MuMIn All periods Interact latepeak
lmeGPAllPlatep2wTP  1.277   +   +       + 10 -262.725 548.4  9.38  0.007 BM
GP MuMIn All periods Interact latepeak
lmeGPAllPlatep2wTP1 1.277   +   +       + 10 -262.725 548.4  9.38  0.007 BM
GP MuMIn All periods Interact latepeak
Models ranked by AICc(x)
Random terms (all models):
?1 | factor(ExpID)?



El mar., 8 oct. 2019 a las 11:08, Rolf Turner (<r.turner at auckland.ac.nz>)
escribi?: