Skip to content

Commit

Permalink
patchwork for combined GLMM interactions plot
Browse files Browse the repository at this point in the history
  • Loading branch information
phelps-sg committed Dec 27, 2023
1 parent 5ab1bb4 commit 79b42bb
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions jupyter-book/R-MixedModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,22 +208,9 @@
# %%
m[m[, 4] <= 0.05, ]

# %%

# %%
xtable(coef(summary(model.pd))$cond, digits=3)

# %%
x <- c(0, 1, 2)
x[-1]

# %%
r <- map(list(x), function(i) x+1)
reduce(list(x), '+')

# %%
aes(x=x, y=predicted)

# %%
predictions.for <- function(model, participant.group) {
ggpredict(model.pd.1, c("Partner_condition",
Expand Down Expand Up @@ -324,13 +311,13 @@
#summary(model.pd.factorial)

# %%
simulationOutput.factorial<- simulateResiduals(fittedModel = model.factorial, plot = TRUE, integerResponse=TRUE)
#simulationOutput.factorial<- simulateResiduals(fittedModel = model.factorial, plot = TRUE, integerResponse=TRUE)

# %%
hist(residuals(simulationOutput.factorial))
#hist(residuals(simulationOutput.factorial))

# %%
plotResiduals(simulationOutput.factorial, results.clean$Participant_group)
#plotResiduals(simulationOutput.factorial, results.clean$Participant_group)

# %% [markdown]
# ## Bayesian MCMC GLMM
Expand Down

0 comments on commit 79b42bb

Please sign in to comment.