Re: [R-sig-eco] Appropriate model parameterization in lme4 for spatio-temporal structured data

2021-01-19 Thread George Glen
Hi Manuel, 

> If I want to compare the metric among the 3 zones, is it the following an
> appropriate model parameterization in lme4?:


It depends on your data and the most sensible grouping structure for your data. 
You could explore different random effect structures and compare them using an 
information criterion approach; however, I think it is more reasonable, before 
allowing the program to make decisions for you, to determine if a temporal 
grouping structure exists in your data and then determine at what scale that is 
present. Plotting the data is always helpful to see this.

Hope this helps.

Best,

> On Jan 19, 2021, at 10:54, Manuel Spínola  wrote:
> 
> Dear list members,
> 
> I have an ecological data set, and I want to account for the
> spatio-temporal structure of my data:
> 
> metric = response variable (continuous)
> zone = 3 zones (A, B and C)
> location = 12 sampling locations per zone
> min = minute
> hour = hour
> day = day
> 
> metric zone location minute hour day
> 2.4 A  1A 11 1
> 2.7.A. 1A 211
> 
> 1.7.C  1C.   45   35
> 
> 
> If I want to compare the metric among the 3 zones, is it the following an
> appropriate model parameterization in lme4?:
> 
> mod_01 <- lmer(metric ~ zone + (1 | location) + (1 | day/hour/min), data =
> my_data)
> 
> Thank you very much in advance.
> 
> Manuel
> 
> -- 
> *Manuel Spínola, Ph.D.*
> Instituto Internacional en Conservación y Manejo de Vida Silvestre
> Universidad Nacional
> Apartado 1350-3000
> Heredia
> COSTA RICA
> mspin...@una.cr 
> mspinol...@gmail.com
> Teléfono: (506) 8706 - 4662
> Personal website: Lobito de río 
> Institutional website: ICOMVIS 
> 
>   [[alternative HTML version deleted]]
> 
> ___
> R-sig-ecology mailing list
> R-sig-ecology@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology

“What is best in mathematics deserves not merely to be learnt as a task, but to 
be assimilated as a part of daily thought, and brought again and again before 
the mind with ever-renewed encouragement.” Bertrand Russell
—
CGG
 
Graduate Assistant (PhD)
Archie Carr Center for Sea Turtle Research
Department of Biology
University of Florida
 
Tel: (+1) 352-284-5650 Website: http://accstr.ufl.edu/
Skype: geoglen12  Email: george.g...@ufl.edu




___
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology


[R-sig-eco] Appropriate model parameterization in lme4 for spatio-temporal structured data

2021-01-19 Thread Manuel Spínola
Dear list members,

I have an ecological data set, and I want to account for the
spatio-temporal structure of my data:

metric = response variable (continuous)
zone = 3 zones (A, B and C)
location = 12 sampling locations per zone
min = minute
hour = hour
day = day

metric zone location minute hour day
2.4 A  1A 11 1
2.7.A. 1A 211

1.7.C  1C.   45   35


If I want to compare the metric among the 3 zones, is it the following an
appropriate model parameterization in lme4?:

mod_01 <- lmer(metric ~ zone + (1 | location) + (1 | day/hour/min), data =
my_data)

Thank you very much in advance.

Manuel

-- 
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspin...@una.cr 
mspinol...@gmail.com
Teléfono: (506) 8706 - 4662
Personal website: Lobito de río 
Institutional website: ICOMVIS 

[[alternative HTML version deleted]]

___
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology