ZELLMECHANIK-DRESDEN / ShapeOut

Shape-Out has been superseded by Shape-Out 2.
https://shapeout.readthedocs.io
GNU General Public License v2.0
5 stars 5 forks source link

Linear Mixed Models #15

Closed maikherbig closed 9 years ago

maikherbig commented 9 years ago

This functionality will require a working R distribution and the R package "lme4". The user needs to be able to enter 2 numbers (or even letters!) for each checked experiment to define the states "Treatment" and "TimeUnit". The purpose is to get a number for the effect of the treatment and if this effect is significant.

I wrote the python function "LinMixMod" which takes a Model function, a list of response vectors (could be Area, Deformation...), a list of Treatments and a list of TimeUnits. The output is: -Estimate: the average value of cells that had Treatment 1 -Fixed Effect: Change of the estimate value due to the Treatment 2 -Std Error for the Estimate and the Fixed Effect -p-Value