Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shape Area Calculation #26

Open
joanmoreaux opened this issue Apr 19, 2024 · 1 comment
Open

Shape Area Calculation #26

joanmoreaux opened this issue Apr 19, 2024 · 1 comment

Comments

@joanmoreaux
Copy link

Sorry if this is a dumb question, but I am not sure to understand how to the shape area is calculated... I ran the rodent example with Standard Ellipse Area (SEA) in rKIN and in SIBER and I get very different answers. Am I miss understanding what the ShapeArea actually is?

Thanks for your help!

Using rKIN:

data("rodents")
head(rodents)
test.elp<- estEllipse(data=rodents, x="Ave_C", y="Ave_N", group="Species", levels=c(95))

elp.area<- getArea(test.elp)
elp.area

Generates:

   Method    Group ConfInt ShapeArea
1 Ellipse Species1      95  45.10501
2 Ellipse Species2      95  14.00697

Using SIBER:

SIBER_rodents <- rodents %>% 
  rename("iso1" = "Ave_C", "iso2" = "Ave_N") %>% 
  mutate(group = NA, community = 1)

SIBER_rodents$group <- ifelse(SIBER_rodents$Species == "Species1", 1, 
                              ifelse(SIBER_rodents$Species == "Species2", 2,NA))

SIBER_rodents <- SIBER_rodents %>% 
  select(-c(Species, Habitat))

SIBER_rodents_obj <- createSiberObject(SIBER_rodents)

group.ML <- groupMetricsML(SIBER_rodents_obj) 
group.ML

Generates:

           1.1       1.2
TA   49.805000 22.060000
SEA   7.533267  2.339391
SEAc  7.559981  2.348978
@joanmoreaux
Copy link
Author

Hello, I finally understood why the areas were so different: SIBER ellipses are based on the maximum likelyhood estimates of the bivariate data, which can range from 40-100% credible intervals, whereas the Shape Area of this package uses pre-defined credible intervals set by the user. So please disregard this question :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant