Here, we chose to model Dens_Tot, which is a strictly positive continuous measure, with a Gamma family. We use a random intercept per Mouse to account for pseudo-replication.
Dens_Tot_P4_mod<-glmmTMB(Dens_Tot~Condition*Z+(1|Mouse), family =Gamma("log"), data =filter(casp_data$clean, Stage=="P4"), REML =TRUE)
2.1.1 Residual diagnostics
Checking the model’s quality of fit through the behavior of its residuals:
Checking the model’s quality of fit by emulate Bayesian Posterior Predictive Checks (PPC): we simulate predictions from the model and plot how accurately they match the observed data, or statistics of the observed data:
Dens_Tot_P4_mod_dharma<-simulateResiduals(Dens_Tot_P4_mod, plot =FALSE, n =300, seed =getOption("seed"))Dens_Tot_P4_mod_dharma_t<-t(Dens_Tot_P4_mod_dharma$simulatedResponse)
ppc_plots(Dens_Tot_P4_mod, simulations =Dens_Tot_P4_mod_dharma_t, term ="Condition", is_count =FALSE)
ppc_stat_plots(Dens_Tot_P4_mod, simulations =Dens_Tot_P4_mod_dharma_t, term ="Condition")
2.1.3 Potential outliers
According to the fitted model, the following observations are potential outliers:
- Results are averaged over the levels of: Z
- Confidence level used: 0.95
- Intervals are back-transformed from the log scale
2.2.3 Contrasts
emmeans(Dens_Tot_P4_mod, specs ="Condition", type ="response")|>contrast(method ="pairwise", adjust ="none", infer =TRUE)|>as.data.frame()|>gt()
contrast
ratio
SE
df
lower.CL
upper.CL
null
t.ratio
p.value
N / IH
0.454
0.1389
32
0.2434
0.8468
1
-2.58
0.01467
- Results are averaged over the levels of: Z
- Confidence level used: 0.95
- Intervals are back-transformed from the log scale
- Tests are performed on the log scale
make_signif_boxplot(Dens_Tot_P4_mod, "Condition")
2.3 Model fitting & diagnostics
Here, we chose to model Dens_Tot, which is a strictly positive continuous measure, with a Gamma family. We use a random intercept per Mouse to account for pseudo-replication.
Dens_Tot_P8_mod<-glmmTMB(Dens_Tot~Condition*Z+(1|Mouse), family =Gamma("log"), data =filter(casp_data$clean, Stage=="P8"), REML =TRUE)
2.3.1 Residual diagnostics
Checking the model’s quality of fit through the behavior of its residuals:
Checking the model’s quality of fit by emulate Bayesian Posterior Predictive Checks (PPC): we simulate predictions from the model and plot how accurately they match the observed data, or statistics of the observed data:
Dens_Tot_P8_mod_dharma<-simulateResiduals(Dens_Tot_P8_mod, plot =FALSE, n =300, seed =getOption("seed"))Dens_Tot_P8_mod_dharma_t<-t(Dens_Tot_P8_mod_dharma$simulatedResponse)
ppc_plots(Dens_Tot_P8_mod, simulations =Dens_Tot_P8_mod_dharma_t, term ="Condition", is_count =FALSE)
ppc_stat_plots(Dens_Tot_P8_mod, simulations =Dens_Tot_P8_mod_dharma_t, term ="Condition")
2.3.3 Potential outliers
According to the fitted model, the following observations are potential outliers:
- Results are averaged over the levels of: Z
- Confidence level used: 0.95
- Intervals are back-transformed from the log scale
2.4.3 Contrasts
emmeans(Dens_Tot_P8_mod, specs ="Condition", type ="response")|>contrast(method ="pairwise", adjust ="none", infer =TRUE)|>as.data.frame()|>gt()
contrast
ratio
SE
df
lower.CL
upper.CL
null
t.ratio
p.value
N / IH
0.591
0.2029
30
0.2931
1.192
1
-1.532
0.136
- Results are averaged over the levels of: Z
- Confidence level used: 0.95
- Intervals are back-transformed from the log scale
- Tests are performed on the log scale
Here, we chose to model A_EGL, which is a strictly positive continuous measure, with a Gamma family. We use a random intercept per Mouse to account for pseudo-replication.
A_EGL_P4_mod<-glmmTMB(A_EGL~Condition*Z+offset(log(A_Tot))+(1|Mouse), family =Gamma("log"), data =filter(casp_data$clean, Stage=="P4"), REML =TRUE)
3.1.1 Residual diagnostics
Checking the model’s quality of fit through the behavior of its residuals:
Checking the model’s quality of fit by emulate Bayesian Posterior Predictive Checks (PPC): we simulate predictions from the model and plot how accurately they match the observed data, or statistics of the observed data:
A_EGL_P4_mod_dharma<-simulateResiduals(A_EGL_P4_mod, plot =FALSE, n =300, seed =getOption("seed"))A_EGL_P4_mod_dharma_t<-t(A_EGL_P4_mod_dharma$simulatedResponse)
ppc_plots(A_EGL_P4_mod, simulations =A_EGL_P4_mod_dharma_t, term ="Condition", is_count =FALSE)
ppc_stat_plots(A_EGL_P4_mod, simulations =A_EGL_P4_mod_dharma_t, term ="Condition")
3.1.3 Potential outliers
According to the fitted model, the following observations are potential outliers:
- Results are averaged over the levels of: Z
- Confidence level used: 0.95
- Intervals are back-transformed from the log scale
3.2.3 Contrasts
emmeans(A_EGL_P4_mod, specs ="Condition", type ="response")|>contrast(method ="pairwise", adjust ="none", infer =TRUE)|>as.data.frame()|>gt()
contrast
ratio
SE
df
lower.CL
upper.CL
null
t.ratio
p.value
N / IH
1.47
0.1952
32
1.122
1.927
1
2.903
0.006646
- Results are averaged over the levels of: Z
- Confidence level used: 0.95
- Intervals are back-transformed from the log scale
- Tests are performed on the log scale
make_signif_boxplot(A_EGL_P4_mod, "Condition")
3.3 Model fitting & diagnostics
Here, we chose to model A_EGL, which is a strictly positive continuous measure, with a Gamma family. We use a random intercept per Mouse to account for pseudo-replication.
A_EGL_P8_mod<-glmmTMB(A_EGL~Condition*Z+offset(log(A_Tot))+(1|Mouse), family =Gamma("log"), data =filter(casp_data$clean, Stage=="P8"), REML =TRUE)
3.3.1 Residual diagnostics
Checking the model’s quality of fit through the behavior of its residuals:
Checking the model’s quality of fit by emulate Bayesian Posterior Predictive Checks (PPC): we simulate predictions from the model and plot how accurately they match the observed data, or statistics of the observed data:
A_EGL_P8_mod_dharma<-simulateResiduals(A_EGL_P8_mod, plot =FALSE, n =300, seed =getOption("seed"))A_EGL_P8_mod_dharma_t<-t(A_EGL_P8_mod_dharma$simulatedResponse)
ppc_plots(A_EGL_P8_mod, simulations =A_EGL_P8_mod_dharma_t, term ="Condition", is_count =FALSE)
ppc_stat_plots(A_EGL_P8_mod, simulations =A_EGL_P8_mod_dharma_t, term ="Condition")
3.3.3 Potential outliers
According to the fitted model, the following observations are potential outliers:
- Results are averaged over the levels of: Z
- Confidence level used: 0.95
- Intervals are back-transformed from the log scale
3.4.3 Contrasts
emmeans(A_EGL_P8_mod, specs ="Condition", type ="response")|>contrast(method ="pairwise", adjust ="none", infer =TRUE)|>as.data.frame()|>gt()
contrast
ratio
SE
df
lower.CL
upper.CL
null
t.ratio
p.value
N / IH
1.083
0.1285
30
0.8499
1.38
1
0.6709
0.5074
- Results are averaged over the levels of: Z
- Confidence level used: 0.95
- Intervals are back-transformed from the log scale
- Tests are performed on the log scale
Here, we chose to model A_ML_PCL, which is a strictly positive continuous measure, with a Gamma family. We use a random intercept per Mouse to account for pseudo-replication.
A_ML_PCL_P4_mod<-glmmTMB(A_ML_PCL~Condition*Z+offset(log(A_Tot))+(1|Mouse), family =Gamma("log"), data =filter(casp_data$clean, Stage=="P4"), REML =TRUE)
4.1.1 Residual diagnostics
Checking the model’s quality of fit through the behavior of its residuals:
Checking the model’s quality of fit by emulate Bayesian Posterior Predictive Checks (PPC): we simulate predictions from the model and plot how accurately they match the observed data, or statistics of the observed data:
A_ML_PCL_P4_mod_dharma<-simulateResiduals(A_ML_PCL_P4_mod, plot =FALSE, n =300, seed =getOption("seed"))A_ML_PCL_P4_mod_dharma_t<-t(A_ML_PCL_P4_mod_dharma$simulatedResponse)
ppc_plots(A_ML_PCL_P4_mod, simulations =A_ML_PCL_P4_mod_dharma_t, term ="Condition", is_count =FALSE)
ppc_stat_plots(A_ML_PCL_P4_mod, simulations =A_ML_PCL_P4_mod_dharma_t, term ="Condition")
4.1.3 Potential outliers
According to the fitted model, the following observations are potential outliers:
However, we have already removed the data points we had a biological/theoretical reason to believe to be outliers before fitting our model.
- Results are averaged over the levels of: Z
- Confidence level used: 0.95
- Intervals are back-transformed from the log scale
4.2.3 Contrasts
emmeans(A_ML_PCL_P4_mod, specs ="Condition", type ="response")|>contrast(method ="pairwise", adjust ="none", infer =TRUE)|>as.data.frame()|>gt()
contrast
ratio
SE
df
lower.CL
upper.CL
null
t.ratio
p.value
N / IH
1.012
0.1075
32
0.8151
1.257
1
0.113
0.9108
- Results are averaged over the levels of: Z
- Confidence level used: 0.95
- Intervals are back-transformed from the log scale
- Tests are performed on the log scale
make_signif_boxplot(A_ML_PCL_P4_mod, "Condition")
4.3 Model fitting & diagnostics
Here, we chose to model A_ML_PCL, which is a strictly positive continuous measure, with a Gamma family. We use a random intercept per Mouse to account for pseudo-replication.
A_ML_PCL_P8_mod<-glmmTMB(A_ML_PCL~Condition*Z+offset(log(A_Tot))+(1|Mouse), family =Gamma("log"), data =filter(casp_data$clean, Stage=="P8"), REML =TRUE)
4.3.1 Residual diagnostics
Checking the model’s quality of fit through the behavior of its residuals:
Checking the model’s quality of fit by emulate Bayesian Posterior Predictive Checks (PPC): we simulate predictions from the model and plot how accurately they match the observed data, or statistics of the observed data:
A_ML_PCL_P8_mod_dharma<-simulateResiduals(A_ML_PCL_P8_mod, plot =FALSE, n =300, seed =getOption("seed"))A_ML_PCL_P8_mod_dharma_t<-t(A_ML_PCL_P8_mod_dharma$simulatedResponse)
ppc_plots(A_ML_PCL_P8_mod, simulations =A_ML_PCL_P8_mod_dharma_t, term ="Condition", is_count =FALSE)
ppc_stat_plots(A_ML_PCL_P8_mod, simulations =A_ML_PCL_P8_mod_dharma_t, term ="Condition")
4.3.3 Potential outliers
According to the fitted model, the following observations are potential outliers:
- Results are averaged over the levels of: Z
- Confidence level used: 0.95
- Intervals are back-transformed from the log scale
4.4.3 Contrasts
emmeans(A_ML_PCL_P8_mod, specs ="Condition", type ="response")|>contrast(method ="pairwise", adjust ="none", infer =TRUE)|>as.data.frame()|>gt()
contrast
ratio
SE
df
lower.CL
upper.CL
null
t.ratio
p.value
N / IH
1.051
0.08874
30
0.8845
1.249
1
0.5885
0.5606
- Results are averaged over the levels of: Z
- Confidence level used: 0.95
- Intervals are back-transformed from the log scale
- Tests are performed on the log scale
Here, we chose to model A_IGL, which is a strictly positive continuous measure, with a Gamma family. We use a random intercept per Mouse to account for pseudo-replication.
A_IGL_P4_mod<-glmmTMB(A_IGL~Condition*Z+offset(log(A_Tot))+(1|Mouse), family =Gamma("log"), data =filter(casp_data$clean, Stage=="P4"), REML =TRUE)
5.1.1 Residual diagnostics
Checking the model’s quality of fit through the behavior of its residuals:
Checking the model’s quality of fit by emulate Bayesian Posterior Predictive Checks (PPC): we simulate predictions from the model and plot how accurately they match the observed data, or statistics of the observed data:
A_IGL_P4_mod_dharma<-simulateResiduals(A_IGL_P4_mod, plot =FALSE, n =300, seed =getOption("seed"))A_IGL_P4_mod_dharma_t<-t(A_IGL_P4_mod_dharma$simulatedResponse)
ppc_plots(A_IGL_P4_mod, simulations =A_IGL_P4_mod_dharma_t, term ="Condition", is_count =FALSE)
ppc_stat_plots(A_IGL_P4_mod, simulations =A_IGL_P4_mod_dharma_t, term ="Condition")
5.1.3 Potential outliers
According to the fitted model, the following observations are potential outliers:
- Results are averaged over the levels of: Z
- Confidence level used: 0.95
- Intervals are back-transformed from the log scale
5.2.3 Contrasts
emmeans(A_IGL_P4_mod, specs ="Condition", type ="response")|>contrast(method ="pairwise", adjust ="none", infer =TRUE)|>as.data.frame()|>gt()
contrast
ratio
SE
df
lower.CL
upper.CL
null
t.ratio
p.value
N / IH
1.176
0.07734
32
1.029
1.345
1
2.464
0.01928
- Results are averaged over the levels of: Z
- Confidence level used: 0.95
- Intervals are back-transformed from the log scale
- Tests are performed on the log scale
make_signif_boxplot(A_IGL_P4_mod, "Condition")
5.3 Model fitting & diagnostics
Here, we chose to model A_IGL, which is a strictly positive continuous measure, with a Gamma family. We use a random intercept per Mouse to account for pseudo-replication.
A_IGL_P8_mod<-glmmTMB(A_IGL~Condition*Z+offset(log(A_Tot))+(1|Mouse), family =Gamma("log"), data =filter(casp_data$clean, Stage=="P8"), REML =TRUE)
5.3.1 Residual diagnostics
Checking the model’s quality of fit through the behavior of its residuals:
Checking the model’s quality of fit by emulate Bayesian Posterior Predictive Checks (PPC): we simulate predictions from the model and plot how accurately they match the observed data, or statistics of the observed data:
A_IGL_P8_mod_dharma<-simulateResiduals(A_IGL_P8_mod, plot =FALSE, n =300, seed =getOption("seed"))A_IGL_P8_mod_dharma_t<-t(A_IGL_P8_mod_dharma$simulatedResponse)
ppc_plots(A_IGL_P8_mod, simulations =A_IGL_P8_mod_dharma_t, term ="Condition", is_count =FALSE)
ppc_stat_plots(A_IGL_P8_mod, simulations =A_IGL_P8_mod_dharma_t, term ="Condition")
5.3.3 Potential outliers
According to the fitted model, the following observations are potential outliers:
- Results are averaged over the levels of: Z
- Confidence level used: 0.95
- Intervals are back-transformed from the log scale
5.4.3 Contrasts
emmeans(A_IGL_P8_mod, specs ="Condition", type ="response")|>contrast(method ="pairwise", adjust ="none", infer =TRUE)|>as.data.frame()|>gt()
contrast
ratio
SE
df
lower.CL
upper.CL
null
t.ratio
p.value
N / IH
0.9152
0.04993
30
0.8187
1.023
1
-1.625
0.1146
- Results are averaged over the levels of: Z
- Confidence level used: 0.95
- Intervals are back-transformed from the log scale
- Tests are performed on the log scale
Here, we chose to model A_WM, which is a strictly positive continuous measure, with a Gamma family. We use a random intercept per Mouse to account for pseudo-replication.
A_WM_P4_mod<-glmmTMB(A_WM~Condition*Z+offset(log(A_Tot))+(1|Mouse), family =Gamma("log"), data =filter(casp_data$clean, Stage=="P4"), REML =TRUE)
6.1.1 Residual diagnostics
Checking the model’s quality of fit through the behavior of its residuals:
Checking the model’s quality of fit by emulate Bayesian Posterior Predictive Checks (PPC): we simulate predictions from the model and plot how accurately they match the observed data, or statistics of the observed data:
A_WM_P4_mod_dharma<-simulateResiduals(A_WM_P4_mod, plot =FALSE, n =300, seed =getOption("seed"))A_WM_P4_mod_dharma_t<-t(A_WM_P4_mod_dharma$simulatedResponse)
ppc_plots(A_WM_P4_mod, simulations =A_WM_P4_mod_dharma_t, term ="Condition", is_count =FALSE)
ppc_stat_plots(A_WM_P4_mod, simulations =A_WM_P4_mod_dharma_t, term ="Condition")
6.1.3 Potential outliers
According to the fitted model, the following observations are potential outliers:
- Results are averaged over the levels of: Z
- Confidence level used: 0.95
- Intervals are back-transformed from the log scale
6.2.3 Contrasts
emmeans(A_WM_P4_mod, specs ="Condition", type ="response")|>contrast(method ="pairwise", adjust ="none", infer =TRUE)|>as.data.frame()|>gt()
contrast
ratio
SE
df
lower.CL
upper.CL
null
t.ratio
p.value
N / IH
0.6095
0.151
32
0.3679
1.01
1
-1.998
0.05423
- Results are averaged over the levels of: Z
- Confidence level used: 0.95
- Intervals are back-transformed from the log scale
- Tests are performed on the log scale
make_signif_boxplot(A_WM_P4_mod, "Condition")
6.3 Model fitting & diagnostics
Here, we chose to model A_WM, which is a strictly positive continuous measure, with a Gamma family. We use a random intercept per Mouse to account for pseudo-replication.
A_WM_P8_mod<-glmmTMB(A_WM~Condition*Z+offset(log(A_Tot))+(1|Mouse), family =Gamma("log"), data =filter(casp_data$clean, Stage=="P8"), REML =TRUE)
6.3.1 Residual diagnostics
Checking the model’s quality of fit through the behavior of its residuals:
Checking the model’s quality of fit by emulate Bayesian Posterior Predictive Checks (PPC): we simulate predictions from the model and plot how accurately they match the observed data, or statistics of the observed data:
A_WM_P8_mod_dharma<-simulateResiduals(A_WM_P8_mod, plot =FALSE, n =300, seed =getOption("seed"))A_WM_P8_mod_dharma_t<-t(A_WM_P8_mod_dharma$simulatedResponse)
ppc_plots(A_WM_P8_mod, simulations =A_WM_P8_mod_dharma_t, term ="Condition", is_count =FALSE)
ppc_stat_plots(A_WM_P8_mod, simulations =A_WM_P8_mod_dharma_t, term ="Condition")
6.3.3 Potential outliers
According to the fitted model, the following observations are potential outliers:
- Results are averaged over the levels of: Z
- Confidence level used: 0.95
- Intervals are back-transformed from the log scale
6.4.3 Contrasts
emmeans(A_WM_P8_mod, specs ="Condition", type ="response")|>contrast(method ="pairwise", adjust ="none", infer =TRUE)|>as.data.frame()|>gt()
contrast
ratio
SE
df
lower.CL
upper.CL
null
t.ratio
p.value
N / IH
0.8621
0.1499
30
0.6045
1.23
1
-0.8531
0.4004
- Results are averaged over the levels of: Z
- Confidence level used: 0.95
- Intervals are back-transformed from the log scale
- Tests are performed on the log scale