Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Estimation plot for generalized linear mixed model with binomial outcome #131

Open
TommasoCurro opened this issue Feb 3, 2022 · 0 comments

Comments

@TommasoCurro
Copy link

TommasoCurro commented Feb 3, 2022

Hello,

I am using dabestr package in R to create an estimation plot on correctResponses (1 correct, 0 incorrect). When I run the the model,

  dabest(condition, correctResponse
         ,idx = c("h", "s", "l")
         ,paired = TRUE
         ,id.col = participant
  )

model_ACC_exp1_meanDiff = mean_diff(model_ACC_exp1, reps = 5000)

I get this error:

"Error in if (const(t, min(1e-08, mean(t, na.rm = TRUE)/1e+06))) { :
missing value where TRUE/FALSE is requested"

I tried adding more reps but the error is the same.

How do I get past this? Can dabestr create estimation plots for categorical outcomes?

Thank you!

the dataset for the model is as follow:
Dataset:
The first five rows are:
Num_part condition correctResponse sequenceTrials
1 1 hands 1 GNG
2 1 hands 1 NGNG
3 1 hands 1 GNG
4 1 hands 1 GNG
5 1 hands 1 GNG

X Variable : condition
Y Variable : correctResponse

Paired effect size(s) will be computed for:

  1. s minus h
  2. l minus h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant