Skip to content

Commit 9e956e8

Browse files
committed
resolve submodule problem
1 parent 28589b5 commit 9e956e8

File tree

9 files changed

+632
-1
lines changed

9 files changed

+632
-1
lines changed

power_ecotox

Lines changed: 0 additions & 1 deletion
This file was deleted.

power_ecotox/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Eduard Szöcs
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

power_ecotox/README.Rmd

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: "README"
3+
author: "Eduard Szöcs"
4+
date: "April 3, 2015"
5+
output: html_document
6+
---
7+
8+
Power estimation for one factorial designs with count data
9+
===========
10+
11+
Demo at http://52.28.43.83/shinypower/
12+
13+
14+
15+
TODO:
16+
Add histogramm of LOECs assigned.
17+
Williams test switch?
18+
one-sided / two-sided
19+
20+
Navbar -> choose between apps (power, population, prc, etc...)
21+
sidebar -> readme, 2 tabs for settings
22+
mainpanel -> 3 tabs for output

power_ecotox/md/About.Rmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Written by [Eduard Szöcs](http://edild.github.io/).
2+
3+
Source Code is [here](https://github.com/EDiLD/shinypower).

power_ecotox/md/README_intro.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### Power Calculations and Analysis for mesocosm data
2+
3+
Currently only power calculations (Tab `Power`) for varying experimental designs are implemented.
4+
5+
Functions for data analysis are not implemented yet (Tabs `Community - PRC`,`Community - GLM` and `Population-GLM`).

power_ecotox/md/README_power.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
Power simulations for count data in one factorial designs
2+
===================
3+
4+
This app runs power calculations for one factorial designs.
5+
One the left you can specify the expected `Effects` to simulate,
6+
settings for the `Simulation` design and the `Inference` procedure.
7+
8+
To run the app with default options, simply hit the `Run simulation` Button and explore the results for a global test and a test for LOEC.
9+
After making changes on the left, you have to hit the `Run simulation` Button again.
10+
11+
12+
13+
14+
### Data
15+
Count data are simulated from a negative binomial distribution ($NB(\mu, \kappa)$) with mean = $\mu$ and variance = $\mu + \mu^2 / \kappa$.
16+
17+
$\kappa$ is a dispersion parameter:
18+
19+
* if $\kappa \rightarrow 0$ overdispersion increases
20+
* if $\kappa \rightarrow \infty$ data become Poisson distributed (no overdispersion)
21+
22+
The summary in the `Simulation-Design` tab gives mean and variances per treatment as well as graphical representation of the simulated data (assuming a sample size of 1000).
23+
24+
### Design
25+
Data are simulated for a one factorial design with 4 treatments and a step effect between treatments 2 and 3:
26+
27+
Abundance in in treatments 1 + 2 are draw from $NB(\mu_c, \kappa)$, whereas the mean abundance in treatments 3 + 4 are reduced by factor $r$: $NB(r \times \mu_c, \kappa)$.
28+
Therefore, the LOEC is at treatment 3 and NOEC at treatment 2.
29+
30+
Note, that $\kappa$ is equal between all treatments.
31+
32+
$\mu_c$, $\kappa$ and $r$ can be controlled by the sliders (on the left, `Effects`).
33+
The `Simulation-Design` tab on the right gives a graphical representation of the design.
34+
For demonstration purposes, 1000 data points per replicate are drawn from the specified design.
35+
36+
37+
### Models
38+
39+
Two type of models are currently implemented:
40+
41+
1. Linear model on transformed data
42+
2. Quasi-Poisson model
43+
44+
Both are computationally feasible and give correct Type I errors.
45+
46+
47+
### Inference
48+
The global treatment effect is assessed using an F-test.
49+
LOEC is determined via Dunnett contrasts.
50+
The type of hypothesis (one-sided / two-sided) can be specified (on the left, `Inference`).
51+
52+
53+
### Simulations
54+
Power is calculated using simulations.
55+
The number of simulated datasets can be specified (currently max. 250 to take care of the server).
56+
Moreover, up to 5 sample sizes (displayed on the x-axis) can be entered. (on the left, `Simulations`)
57+
58+
Press the `Run simulation` button to start the simulations.
59+
60+
61+
## Output
62+
Results for the global test and LOEC determination are given graphical and in tabular form on the right.
63+
Both can be downloaded using the respective buttons.

0 commit comments

Comments
 (0)