Hollister.Jeff | 9 Feb 22:08
Picon

Submissions for Bulletin of ESA Ecology on the Web Section

Good afternoon,

Here is my semi-regular request for submissions of annotated web links
for the Ecology on the Web Section of the Bulletin.

In general I am looking for short annotations of websites which have
broad appeal to ecologists.  Take a look at past issues for examples of
the format and types of submissions we accept (i.e.
http://www.esajournals.org/toc/ebul/88/4 just scroll down to the Ecology
on the Web section)

Cheers,
Jeff
magali proffit | 9 Feb 12:31
Picon
Favicon

simper


Hi,

Does anyone know if the
SIMPER (similarity percentage) analysis exists in R? 

It is implemented in the
statistical package PRIMER and is frequently used in biological studies to
compare community diversity. 

It is a multivariate
analysis that shows the contribution of each variable responsible for the
difference between groups.

thanks a lot in advance,

Magali

 		 	   		  
_________________________________________________________________
[[elided Hotmail spam]]

	[[alternative HTML version deleted]]
Steve Friedman | 9 Feb 00:29
Picon

Multinomial logist regression

Hi,

I've been working up a dataset of soils and vegetation and I'd like to run a
multinomial regression model with this data.  The data includes six possible
outcomes (vegtation types) and anywhere from 1 to 5 independent predictors
(nutrient and hydrological properties).  I've been looking at the mlogit
package, globaltest (bioconductor) package, and glm modeling capabilities.

Using the globaltest package I came up with a solution, but have some
reservations.

Which package and function is more commonly used for ecological
investigations of this kind?

How can I develop a plot illustrating the probabilities of each of the six
response vegetation types for a given concentration of nutrients (the
independent predictors) ?

Eventually, I will add several predictors to this model. Is there a method
that I can use that will allow me to use multiple predictors and multiple
responses ?

If anyone really wants to see the code I'm using, I'll have to get it from
my office tomorrow.

Thanks
Steve

	[[alternative HTML version deleted]]
Allan Edelsparre | 8 Feb 20:33
Picon
Favicon

Repeated measures in multi variate analyses

Hi all,

I am in a situation where I want to ask what is the effect of ecomorph, diet, and family(nested in ecomorph) on
five behaviours that are repeated measures.  Because I have repeated measures I was wondering if the mixed
effects model command (lme) can handle a MANOVA, or can the MANOVA command handle mixed effects?

Allan
Peter Solymos | 8 Feb 17:47
Picon
Picon
Favicon

Re: multiple regression

Dear List,

Thierry's suggestion, to use Binomial(p, N) for modelling species
richness, assumes that the probability of finding a new species (p)
depends e.g. on covaiates (logit(p)=X%*%beta), while different species
share the same probability to be encountered (N independent? trials --
as Alain noted). Because ecological communities rarely have uniform
species-abundance distribution, and species specific probabilities
will probably differ among sites due to different responses to
environmental factors, the Binomial approximation has limited
applicability. And this can be true even for the Poisson. So it turns
out that modeling marginal statistics (total abundance/richness) of
the community matrix requires modeling the communities first...

By the way, Nathan wrote me off list, that he used log transformed
richness, which is the traditional species-area way of handling
richness. He was more interested in variance components, but this
diverged conversation also brought up some interesting views.

Cheers,

Peter

On Mon, Feb 8, 2010 at 6:12 AM, ONKELINX, Thierry
<Thierry.ONKELINX <at> inbo.be> wrote:
> Dear Gavin,
>
> For many taxonomical groups to total number of species is rather low. Ecologist can either use a fixed
total number of species or use some expert knowledge to get the total number of species, taking only large
scale effect into account. E.g. freshwater fish not entering seawater, plant species not occuring above
a given altitude, ...
>
> The number of absent species is then the total number minus the number of present species.
>
> As long as the number of present species is much smaller than the total number of species, a Poisson
distribution seems a reasonable simplification. But what if you are studying a small taxonomical group?
Let's assume a group with 10 species and frequently 8 or 9 of them are present. Can assume that the species
richness follows a Poisson distribution in that case?
>
> Best regards,
>
> Thierry
>
>
> ----------------------------------------------------------------------------
> ir. Thierry Onkelinx
> Instituut voor natuur- en bosonderzoek
> team Biometrie & Kwaliteitszorg
> Gaverstraat 4
> 9500 Geraardsbergen
> Belgium
>
> Research Institute for Nature and Forest
> team Biometrics & Quality Assurance
> Gaverstraat 4
> 9500 Geraardsbergen
> Belgium
>
> tel. + 32 54/436 185
> Thierry.Onkelinx <at> inbo.be
> www.inbo.be
>
> To call in the statistician after the experiment is done may be no more than asking him to perform a
post-mortem examination: he may be able to say what the experiment died of.
> ~ Sir Ronald Aylmer Fisher
>
> The plural of anecdote is not data.
> ~ Roger Brinner
>
> The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can
be extracted from a given body of data.
> ~ John Tukey
>
> -----Oorspronkelijk bericht-----
> Van: Gavin Simpson [mailto:gavin.simpson <at> ucl.ac.uk]
> Verzonden: maandag 8 februari 2010 11:14
> Aan: ONKELINX, Thierry
> CC: Peter Solymos; Nathan Lemoine
> Onderwerp: Re: [R-sig-eco] multiple regression
>
> On Mon, 2010-02-08 at 11:02 +0100, ONKELINX, Thierry wrote:
>> Peter,
>>
>> I would think that the species richness is binomial distributed. Since
>> there is a maximum number of species that can be present. Therefore I
>> would model it like
>>
>> glm(cbind(number.present, number.absent) ~ covariates, family =
>> binomial)
>
> Hi Thierry,
>
> How would one estimate number.absent? To my mind, that sounds some what Rumsfeldian...
>
> G
>
>>
>> HTH,
>>
>> Thierry
>>
>> ----------------------------------------------------------------------
>> ------
>> ir. Thierry Onkelinx
>> Instituut voor natuur- en bosonderzoek team Biometrie & Kwaliteitszorg
>> Gaverstraat 4 9500 Geraardsbergen Belgium
>>
>> Research Institute for Nature and Forest team Biometrics & Quality
>> Assurance Gaverstraat 4 9500 Geraardsbergen Belgium
>>
>> tel. + 32 54/436 185
>> Thierry.Onkelinx <at> inbo.be
>> www.inbo.be
>>
>> To call in the statistician after the experiment is done may be no more than asking him to perform a
post-mortem examination: he may be able to say what the experiment died of.
>> ~ Sir Ronald Aylmer Fisher
>>
>> The plural of anecdote is not data.
>> ~ Roger Brinner
>>
>> The combination of some data and an aching desire for an answer does not ensure that a reasonable answer
can be extracted from a given body of data.
>> ~ John Tukey
>>
>> -----Oorspronkelijk bericht-----
>> Van: r-sig-ecology-bounces <at> r-project.org
>> [mailto:r-sig-ecology-bounces <at> r-project.org] Namens Peter Solymos
>> Verzonden: zaterdag 6 februari 2010 20:53
>> Aan: Nathan Lemoine
>> CC: r-sig-ecology <at> r-project.org
>> Onderwerp: Re: [R-sig-eco] multiple regression
>>
>> Nathan,
>>
>> Species richness is categorical, so if your richness values are usually low (say < 20), you should
consider the use of Poisson GLM, or log-transform your response (and log is the canonical link function
for Poisson GLM). This usually improves the model fit. And this might apply to abundance as well.
>>
>> If you use lm(), you can inspect the residual variance of the models
>> after excluding one of the covariates. The increase in residual
>> variance compared to the full model will tell which variance component
>> is higher (explains more of your data). Or you may as well inspect the
>> anova() table of the fitted model (both for lm or glm).
>>
>> Best,
>>
>> Peter
>>
>> Péter Sólymos
>> Alberta Biodiversity Monitoring Institute Department of Biological
>> Sciences CW 405, Biological Sciences Bldg University of Alberta
>> Edmonton, Alberta, T6G 2E9, Canada
>> Phone: 780.492.8534
>> Fax: 780.492.7635
>>
>>
>>
>> On Sat, Feb 6, 2010 at 9:17 AM, Nathan Lemoine <lemoine.nathan <at> gmail.com> wrote:
>> > Hi everyone,
>> >
>> > I'm trying to fit a multiple regression model and have run into some
>> > questions regarding the appropriate procedure to use. I am trying to
>> > compare fish assemblages (species richness, total abundance, etc.)
>> > to metrics of habitat quality. I swam transects are recorded all
>> > fish observed, then I measured the structural complexity and live coral cover over each transect.
>> > I am interested in weighting which of these two metrics has the
>> > largest influence on structuring fish assemblages.
>> >
>> > My strategy was to use a multiple linear regression. Since the data
>> > were in two different measurement units, I scaled the variables to a
>> > mean of 0 and std. dev. of 1. This should allow me to compare the
>> > sizes of the beta coefficients to determine the relative (but not
>> > absolute) importance of each habitat variable on the fish assemblage, correct?
>> >
>> > My model was lm(Species Richness~Complexity+Coral Cover). I had run
>> > a full model and found no evidence of interactions, so I ran it
>> > without the interaction present.
>> >
>> > It turns out coral cover was not significant in any regression. I
>> > have been told that the test I used was incorrect and that the
>> > appropriate procedure is a stepwise regression, which would,
>> > undoubtedly, provide me with Complexity as a significant variable and remove Coral Cover.
>> > This seems to me to be the exact same interpretation as the above
>> > model. So, since I'm very new to all of this, I am wondering how to
>> > tell whether one model is 'incorrect' or 'inappropriate' given that
>> > they yield almost identical results? What are the advantages of a
>> > stepwise regression over a standard multiple regression like I have run?
>> >
>> > _______________________________________________
>> > R-sig-ecology mailing list
>> > R-sig-ecology <at> r-project.org
>> > https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
>> >
>> >
>>
>> _______________________________________________
>> R-sig-ecology mailing list
>> R-sig-ecology <at> r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
>>
>> Druk dit bericht a.u.b. niet onnodig af.
>> Please do not print this message unnecessarily.
>>
>> Dit bericht en eventuele bijlagen geven enkel de visie van de
>> schrijver weer en binden het INBO onder geen enkel beding, zolang dit
>> bericht niet bevestigd is door een geldig ondertekend document. The
>> views expressed in  this message and any annex are purely those of the
>> writer and may not be regarded as stating an official position of
>> INBO, as long as the message is not confirmed by a duly signed document.
>>
>> _______________________________________________
>> R-sig-ecology mailing list
>> R-sig-ecology <at> r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
> --
> %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
>  Dr. Gavin Simpson             [t] +44 (0)20 7679 0522
>  ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
>  Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
>  Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
>  UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
> %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
>
>
>
> Druk dit bericht a.u.b. niet onnodig af.
> Please do not print this message unnecessarily.
>
> Dit bericht en eventuele bijlagen geven enkel de visie van de schrijver weer
> en binden het INBO onder geen enkel beding, zolang dit bericht niet bevestigd is
> door een geldig ondertekend document. The views expressed in  this message
> and any annex are purely those of the writer and may not be regarded as stating
> an official position of INBO, as long as the message is not confirmed by a duly
> signed document.
>
>

_______________________________________________
R-sig-ecology mailing list
R-sig-ecology <at> r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology

Re: multiple regression (ONKELINX, Thierry)


> Message: 1
> Date: Mon, 8 Feb 2010 11:02:37 +0100
> From: "ONKELINX, Thierry"<Thierry.ONKELINX@...>
> To: "Peter Solymos"<solymos@...>,	"Nathan Lemoine"
> 	<lemoine.nathan@...>
> Cc: r-sig-ecology@...
> Subject: Re: [R-sig-eco] multiple regression
> Message-ID:
> 	<2E9C414912813E4EB981326983E0A10406FDECE6@...>
> Content-Type: text/plain;	charset="iso-8859-1"
>
> Peter,
>
> I would think that the species richness is binomial distributed. Since there is a maximum number of
species that can be present. Therefore I would model it like
>
> glm(cbind(number.present, number.absent) ~ covariates, family = binomial)
>
>    

Interesting thought. Maybe correct. But there are a few things to think 
about:
1. You have to assume that sampling was such that all species out there 
have ended up in the data. Formulated differently...you need to know the 
N_i (maximum number of possible species) in the B(p_i,N_i).
2. Not sure how the variance structure would work out; Poisson or NB 
versus Binomial. I guess it may work out ok.
3.  B(p_i,N_i) means N_i independent (!) trials, each (!) with 
probability p_i of success. But what happens if these trials (=species) 
are not independent?

Anyway....it is not my problem....but you would need to think about 
these things.

Alain

> HTH,
>
> Thierry
>
> ----------------------------------------------------------------------------
> ir. Thierry Onkelinx
> Instituut voor natuur- en bosonderzoek
> team Biometrie&  Kwaliteitszorg
> Gaverstraat 4
> 9500 Geraardsbergen
> Belgium
>
> Research Institute for Nature and Forest
> team Biometrics&  Quality Assurance
> Gaverstraat 4
> 9500 Geraardsbergen
> Belgium
>
> tel. + 32 54/436 185
> Thierry.Onkelinx@...
> www.inbo.be
>
> To call in the statistician after the experiment is done may be no more than asking him to perform a
post-mortem examination: he may be able to say what the experiment died of.
> ~ Sir Ronald Aylmer Fisher
>
> The plural of anecdote is not data.
> ~ Roger Brinner
>
> The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can
be extracted from a given body of data.
> ~ John Tukey
>
>    

-- 

Dr. Alain F. Zuur
First author of:

1. Analysing Ecological Data (2007).
Zuur, AF, Ieno, EN and Smith, GM. Springer. 680 p.
URL: www.springer.com/0-387-45967-7

2. Mixed effects models and extensions in ecology with R. (2009).
Zuur, AF, Ieno, EN, Walker, N, Saveliev, AA, and Smith, GM. Springer.
http://www.springer.com/life+sci/ecology/book/978-0-387-87457-9

3. A Beginner's Guide to R (2009).
Zuur, AF, Ieno, EN, Meesters, EHWG. Springer
http://www.springer.com/statistics/computational/book/978-0-387-93836-3

Other books: http://www.highstat.com/books.htm

Statistical consultancy, courses, data analysis and software
Highland Statistics Ltd.
6 Laverock road
UK - AB41 6FN Newburgh
Tel: 0044 1358 788177
Email: highstat@...
URL: www.highstat.com
URL: www.brodgar.com
Nathan Lemoine | 6 Feb 17:17
Picon

multiple regression

Hi everyone,

I'm trying to fit a multiple regression model and have run into some  
questions regarding the appropriate procedure to use. I am trying to  
compare fish assemblages (species richness, total abundance, etc.) to  
metrics of habitat quality. I swam transects are recorded all fish  
observed, then I measured the structural complexity and live coral  
cover over each transect. I am interested in weighting which of these  
two metrics has the largest influence on structuring fish assemblages.

My strategy was to use a multiple linear regression. Since the data  
were in two different measurement units, I scaled the variables to a  
mean of 0 and std. dev. of 1. This should allow me to compare the  
sizes of the beta coefficients to determine the relative (but not  
absolute) importance of each habitat variable on the fish assemblage,  
correct?

My model was lm(Species Richness~Complexity+Coral Cover). I had run a  
full model and found no evidence of interactions, so I ran it without  
the interaction present.

It turns out coral cover was not significant in any regression. I have  
been told that the test I used was incorrect and that the appropriate  
procedure is a stepwise regression, which would, undoubtedly, provide  
me with Complexity as a significant variable and remove Coral Cover.  
This seems to me to be the exact same interpretation as the above  
model. So, since I'm very new to all of this, I am wondering how to  
tell whether one model is 'incorrect' or 'inappropriate' given that  
they yield almost identical results? What are the advantages of a  
stepwise regression over a standard multiple regression like I have run?
Nicholas Lewin-Koh | 4 Feb 17:39
Favicon

clumping vs. random

Hi Kristen,
Are you are just interested in "clumpiness" in time, or "clumpiness"
in space and time? Are your sites far enough apart that the
environmental process
you are looking at can be assumed independent? If you have the spatial
coordinates, even approximate, you could calculate Moran's I for the
whole data
set which would give you a rough estimate of the tendency for 1's and
0's 
to cluster together, on average. But that won't tell you a lot about the
behavior
of the process. A little more information about the study would help to
give you a more specific answer.

Nicholas 


> Message: 6 > Date: Wed, 3 Feb 2010 15:49:34 -0500 (EST) > From: "Kristen M. Kostelnik" <kristen_kostelnik@...> > To: r-sig-ecology@... > Subject: [R-sig-eco] clumping vs. random > Message-ID: <54612.98.122.165.51.1265230174.squirrel@...> > Content-Type: text/plain;charset=iso-8859-1 > > Hello list, > > It seems this should be quite a basic question, but I have no idea how to > approach it. For 100s of sites, I have an environmental variable that > has > occurences over a 20 year period. I am looking for a way to create an > index between 0 and 1 that represents the degree of clumpiness vs. > randomness over time. Where 0 is totally clumped and 1 is totally spaced > out evenly. > > So for example: > > Site Year1 Year2 Year3 Year4......Year19 Year20 Total > Index > 1 Yes Yes Yes Yes No No 10 0 > 2 Yes No Yes No Yes No 10 1 > > Yes and No can be converted to 1 and 0. I am not sure what you call this > sort of index, technically, so I am not sure how to search for an > appropriate method. I am, obviously, looking for a way to do this in R. > > Thanks for any suggestions! > Kind Regards, > Kristen > > > > ------------------------------ > > _______________________________________________ > R-sig-ecology mailing list > R-sig-ecology@... > https://stat.ethz.ch/mailman/listinfo/r-sig-ecology > > > End of R-sig-ecology Digest, Vol 23, Issue 4 > ********************************************
Picon
Favicon

clumping vs. random

Hello list,

It seems this should be quite a basic question, but I have no idea how to
approach it.  For 100s of sites, I have an environmental variable that has
occurences over a 20 year period.  I am looking for a way to create an
index between 0 and 1 that represents the degree of clumpiness vs.
randomness over time.  Where 0 is totally clumped and 1 is totally spaced
out evenly.

So for example:

Site     Year1   Year2  Year3   Year4......Year19   Year20    Total   Index
1         Yes     Yes    Yes     Yes        No        No      10       0
2         Yes     No     Yes     No        Yes        No      10       1

Yes and No can be converted to 1 and 0.  I am not sure what you call this
sort of index, technically, so I am not sure how to search for an
appropriate method.  I am, obviously, looking for a way to do this in R.

Thanks for any suggestions!
Kind Regards,
Kristen
Chris Nagy | 3 Feb 21:01
Picon

Re: Low counts

I analyze a lot of count data and have had good results with negative
binomial models too.  The other day I made some very* *crude code to help me
figure out which count-type distribution is most suitable.  It plots a cum
freq dist for the data, then cfd's for random poisson(green) and neg.
binomial (red) datasets with the same means and dispersions.

You could add code for zero-inflated poisson and others in there if you want
to compare those.  I couldn't figure out how to put continuous curves on the
graph, hence the discrete curves on the "idealized" cdf's instead of nice
smooth curves.  The data used below are some worms we counted and some
meaningless veg plot data I happened to have on the same locations...you
could obviously just replace my file/object/factor names with yours.

Take this with the disclaimer that I might not know what I am talking about.
----------------------------------------------------------------------------------------------------------------
#negative binomial or poisson?

#import data: asian counts and plot level veg data
    Amyn<-read.table('K:/prelim_cn_amyn_1-10.csv', header=TRUE, sep = ",")

#nb or poisson regression?  if mean = var then P; if mean < var then nb. Or,
if Poisson, then v/m = ~1

amyn.x <-mean(Amyn$NoAmythas_spp)
amyn.v <-var(Amyn$NoAmythas_spp)
amyn.v/amyn.x

#histogram of amythas counts; use prob=T for density hist
windows()
hist(Amyn[,2])
hist(Amyn[,2], prob=T)

#nb and poisson regression of the models you want to compare (global models
probably)
library(MASS)

amyn.pm1<-glm(Amyn$NoAmythas_spp~OVER_TPH+PERC_HEM+TCperHA,Amyn,
family=poisson)
amyn.pm1sum<-summary(amyn.pm1)

amyn.nbm1<-glm.nb(Amyn$NoAmythas_spp~OVER_TPH+PERC_HEM+TCperHA,Amyn)
amyn.nbm1sum<-summary(amyn.nbm1)

#cdf of data and randomized poisson and nb dist's, see which looks closer to
the data
library(Hmisc)

windows()
nb <-rnbinom(1000000,size=amyn.nbm1sum$theta, mu=amyn.x)
p <-rpois(1000000,lambda=amyn.x)
Ecdf(Amyn$NoAmythas_spp); Ecdf(nb, add=T, col=2); Ecdf(p, add=T, col=3)

#neg bin is red, poisson is green, data is black

-chris

On Tue, Feb 2, 2010 at 6:14 AM, Tore Chr Michaelsen <
tore.michaelsen@...> wrote:


> Thank you for your advice!!! > > Zuur et al (2009) is now on its way to my mail box. > > Best wishes; > Tore > > > -----Opprinnelig melding----- > Fra: Maarten de Groot [mailto:Maarten.deGroot@...] > Sendt: 2. februar 2010 08:07 > Til: Miltinho Astronauta > Kopi: Tore Chr Michaelsen; r-sig-ecology@... > Emne: Re: [R-sig-eco] Low counts > > Hi Tore, > > How does your count distribution look like? Doe you have more zero's > than expected (use zero inflated models), no zero's (use zero truncated > models) or is there no problem with zero's? If it is the latter, it > might be useful to try the negative binomial models (glm.nb()). Zuur et > al (2009) gives a nice example that they still find a pattern in the > residuals with a quasi poison model but no pattern with a negative > binomial model. > > Kind regards, > > Maarten > > Miltinho Astronauta wrote: > > Hi Tore, > > > > I put my 2cents on Zuur et al 2009's book - Mixed effect models... > > See Zero-Inflated examples in there. > > > > cheers > > > > milton > > > > 2010/2/1 Tore Chr Michaelsen <tore.michaelsen@...> > > > > > >> Dear members; > >> > >> 1) I have fitted a glm to count data (using quasipoisson to correct for > >> disp.). In the final model, the relationship between Res and Fitted > (i.e. > >> the line going through the plot) and QQ looks fine, but I am worried > that > >> low count (one to five) could violate some assumption of the > glm/poisson: > >> Although the line in the Res vs Fitted plot looks nice, the values show > a > >> clear pattern (five diagonal lines = the counts). Crawley/R book says it > >> should look like the sky at night with no patterns. I assume patterns > are > >> not visible with large counts (e.g. 0-100), but highly visible with low > >> counts as in this case. I still assume this is reason for some concern > >> about > >> the model, or is the concern not justified? > >> > >> 2) Any recommendations on literature regarding model inspection in R. > >> > >> Thank you for reading this mail! > >> > >> Best wishes; > >> Tore > >> > >> _______________________________________________ > >> R-sig-ecology mailing list > >> R-sig-ecology@... > >> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology > >> > >> > > > > [[alternative HTML version deleted]] > > > > _______________________________________________ > > R-sig-ecology mailing list > > R-sig-ecology@... > > https://stat.ethz.ch/mailman/listinfo/r-sig-ecology > > > > > > _______________________________________________ > R-sig-ecology mailing list > R-sig-ecology@... > https://stat.ethz.ch/mailman/listinfo/r-sig-ecology >
-- -- "I have always suspected that if our economic and political problems are ever really solved, life will become simpler instead of more complex, and that the sort of pleasure one gets from finding the first primrose will loom larger than the sort of pleasure one gets from eating an ice to the tune of a Wurlitzer." - George Orwell [[alternative HTML version deleted]]
Mauricio Cifuentes | 3 Feb 11:52
Picon

nested mixed model?

Hi everybody,

I am trying to fit a model in R using the lme() function. I would like
to have your opinion about what I did and if there are better ways to
resolve this analysis. First Let me explain you how look the data that
we are analyzing. We want to compare the tooth microtexture of four
species of ungulates. 

For that we have taken pictures in eight different points within each
tooth of one individual. We used as many teeth as were available for
each individual taken in account their position and at the same time
separating them by the place they were located (mandible: down tooth;
maxilla: upper tooth). 

I am not an expert, but until here the model looks as nested design,
please let me know if I am wrong. In summary we have the following
hierarchy arrangement:

Species (4 species) > bone(mandible or maxilla) > tooth > points within
each tooth (8 points).

I have fitted this model using: lme(response ~ species, data=tooth,
random=~1|bone/tooth/points,na.action=na.omit)

I will be really grateful if you can give me your opinion about that.

Best wishes

Mauro

Gmane