Skip to content

Commit 8a063a7

Browse files
authored
Merge pull request #6 from Bayer-Group/dev
pre-saved images does not get copied into articles-assets
2 parents 98e8f66 + 82219c0 commit 8a063a7

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

inst/RStats/flowchars.qmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ This example demonstrates how variance decomposition in mixed models can affect
267267

268268
## Flowcharts generation
269269

270+
https://stackoverflow.com/questions/1250079/how-to-escape-single-quotes-within-single-quoted-strings
271+
From the page above, I could not find a solution to handle sing quote in single quoted strings.
270272

271273
```{r eval=FALSE}
272274
# Load necessary library
@@ -280,7 +282,7 @@ digraph flowchart {
280282
node [shape = box, style = filled, fillcolor = lightblue]
281283
282284
start [label = 'Are both solvent control and \n non-solvent control present?', shape = diamond]
283-
compare_controls [label = 'Compare controls using \\n Fisher\\'s Exact Test']
285+
compare_controls [label = 'Compare controls using \\n Fisher\"s Exact Test']
284286
controls_differ [label = 'Do the controls differ?', shape = diamond]
285287
drop_non_solvent [label = 'Drop non-solvent control from analysis']
286288
combine_controls [label = 'Combine controls while retaining subgroups']

vignettes/articles/LMM-GLMM-and-GAMM.Rmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ library(tidyverse)
1616
library(drcHelper)
1717
```
1818

19+
20+
21+
1922
## Mixed Models
2023

2124
## Variance Components

vignettes/articles/NOEC_Methods.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ It is relatively straightforward to calulate and intepret NOEC, and it is widely
3838
4. It is heavily impacted by the sample size and test concentration selections. Poor experimental design may yield high NOEC due to decreased statistical sensitivity, which is not desired in a regulatory context.
3939

4040

41-
In this article, we focus on NOEC methods for continuous data, which can also be applied to count data. This can be achieved either by simply treating count data as continuous or by transforming the data to stabilize the variance.
41+
In this article, we focus on NOEC methods for continuous data, which can also be applied to count data. This can be achieved either by simply treating count data as continuous or by transforming the data to stabilize the variance. For quantal data, please go to [Quantal Data](https://bayer-group.github.io/drcHelper/articles/Quantal-Data.html) for more information.
4242

4343
Continuous data are numerical data that can take any value within a range (e.g., weight, height), while count data are discrete and represent the number of occurrences of an event (e.g., number of species observed in a pitfall). It is hard to determine a distribution of count data in real world. Poisson, negative-binomial are common distributions used to model count data. The Poisson distribution is often used when the mean and variance are equal, while the negative-binomial distribution is used when the data exhibit overdispersion (variance greater than the mean). Many count datasets have more zeros than expected under standard count models, leading to zero-inflated models or hurdle models that account for this excess. Small sample sizes can make it difficult to determine the underlying distribution of the data and can affect the robustness of statistical methods. There are also other challenges like non-constant variance that does not follow a mean variance relationship, issues caused by censoring or truncation, etc. Therefore, transformations, such as logarithmic or square root transformations, are often used to stabilize variance and meet the assumptions of standard statistical tests for continuous data when dealing with non-normal data distributions.
4444

vignettes/articles/Quantal-Data.Rmd

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
22
title: "Quantal Data"
3+
resource_files:
4+
- ./../assets/quantal_NOEC.png
5+
- ./../assets/binomial_tank_effects_visualization.png
36
editor_options:
47
chunk_output_type: console
58
---
@@ -22,7 +25,7 @@ Analysis of quantal data typically involves the following steps as shown in the
2225

2326

2427
```{r echo=FALSE,out.width="90%"}
25-
knitr::include_graphics("./assets/quantal_NOEC.png")
28+
knitr::include_graphics("./../assets/quantal_NOEC.png")
2629
```
2730

2831
## An example dataset
@@ -431,7 +434,7 @@ ggsave("binomial_tank_effects_visualization.png", combined_plot, width = 12, hei
431434
```
432435

433436
```{r echo=FALSE}
434-
knitr::include_graphics("./assets/binomial_tank_effects_visualization.png")
437+
knitr::include_graphics("./../assets/binomial_tank_effects_visualization.png")
435438
```
436439

437440
The plot on the upper left shows the survival proportions for each tank (colored points) at each dose level. The black diamonds represent the mean survival proportion at each dose level, and the dashed line shows the theoretical dose-response relationship without tank effects. The variation among tanks at the same dose level illustrates the tank effect.

0 commit comments

Comments
 (0)