Git Product home page Git Product logo

centroids-in-r's Introduction

centroids-in-R

Description: Unlike with repeated measures or split-plot analyses of Euclidean distance matrices, one cannot do the between-subjects/whole-plot tests by simply averaging the responses across the repeated measures or split plots. This is because the average of the responses across time points or split plots is NOT equivalent to the between-subjects or whole-plot centroids in non-Euclidean space (Anderson et al. 2008). The centroidmatrix function uses vegdist to generate a Bray-Curtis dissimilarity matrix and then betadisper to produce a matrix of between-subjects or whole-plot subjects centroids, given a species file and a factor file containing a grouping variable. The resulting matrix of centroids can be used as a response file for between-subjects or whole-plot tests in adonis assuming Euclidean distances among centroids. The centroids are averages of Principal Coordinates Analysis axis scores for each level of the grouping variable (i.e., for each “subject” or “whole plot”) using all the Principal Coordinates axes and thus are equivalent to distances among the Bray-Curtis centroids.

centroids-in-r's People

Contributors

j-stephen-brewer avatar

Forkers

chomic-kbe

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.