Skip to content

glmmadmb beta - error

5 messages · Ludovico Frate, Highland Statistics Ltd

#
Do I read correctly in the error message the phrase '50 obs. of 5 
variables"? Does that mean that you only have 50 observations? If that 
is the case then it is no wonder that a beta model with random effects 
(48 levels?) and 6 or 7 regressions parameters is crashing.

Kind regards,

Alain

  
    
#
I'm sorry,the structure of the data is
data.frame':	50 obs. of  5 variables: $ plot_id  : Factor w/ 25 levels "FEME11","FEME13",..: 5 6 7 8 1 2 3 4 9 10 ... $ summit   : Factor w/ 2 levels "FEM","MAC": 1 1 1 1 1 1 1 1 1 1 ... $ direction: Factor w/ 4 levels "E","N","S","W": 2 2 2 2 1 1 1 1 3 3 ... $ time     : int  2001 2001 2001 2001 2001 2001 2001 2001 2001 2001 ... $ cover    : num  0.023 0.071 0.063 0.014 0.003 0.035 0.055 0.01 0.065 0.04 ...
Ludovico
                                                                                                                                
Dott. For. Ludovico
Frate, Ph.D.
University of Molise - Italy
Environmetrics Lab
http://www.distat.unimol.it/STAT/environmetrica/organico/collaboratori/ludovico-frate-1
Department of Biosciences and Territory - DiBT
Universit? del Molise.
Contrada Fonte
Lappone, 
86090 -  Pesche (IS)
ITALIA.
Cel: ++39
3333767557
Fax: ++39 (0874) 404123
E-mail ludovico.frate at unimol.it
ludovicofrate at hotmail.it
https://www.researchgate.net/profile/Ludovico_Frate

  
  
#
glmmadmb was just telling you in a nice way to get more data. Normally, 
I would say 'try to simplify your model'....but even then you may have 
problems with such a small data set.

You are having around 6 regression parameters, a beta distribution and a 
random effect that has around 2 observations per level.

Alain
On 23/02/2016 12:01, Ludovico Frate wrote:

  
    
#
Thanks for your reply!I successfully fitted another model with the same number of observation (and structure) and the only difference is that cover values were more centered on the mean values.
I just tried to fit the same model by adding a constant cover value to all observations (+0.20) and the model works
I think that the issue derives from very small cover values...
summary(cover_lf$cover) (divided by 100)
Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 0.0000  0.0050  0.0130  0.0252  0.0385  0.1300 
Call:glmmadmb(formula = cover ~ time + summit + direction + (1 | plot_id),     data = cover_lf, family = "beta")
AIC: -228.7 
Coefficients:            Estimate Std. Error z value Pr(>|z|)    (Intercept)  -1.2241     0.0476  -25.72   <2e-16 ***time2015     -0.0688     0.0337   -2.04   0.0410 *  summitMAC    -0.1407     0.0437   -3.22   0.0013 ** directionN    0.1028     0.0574    1.79   0.0733 .  directionS    0.0760     0.0624    1.22   0.2238    directionW    0.0986     0.0574    1.72   0.0860 .  ---Signif. codes:  0 ?***? 0.001 ?**? 0.01 ?*? 0.05 ?.? 0.1 ? ? 1
Number of observations: total=50, plot_id=25 Random effect variance(s):Group=plot_id            Variance  StdDev(Intercept) 0.003394 0.05826
Beta dispersion parameter: 403.43 (std. err.: 0.00012419)
Log-likelihood: 122.34
#
The fact that the software runs properly, or not, is irrelevant. You 
need to have at least 10 - 15 - 20 observations per regression parameter 
for an ordinary regression model. Using only 50 observations for the 
beta mixed model is not the best thing to do. Maybe this is not what you 
wanted to hear.

Alain
On 23/02/2016 12:43, Ludovico Frate wrote: