Skip to content

Error in data.matrix(fake_data) %*% t(data.matrix(m.sims@coef)) : non-conformable arguments #31

@chrispretz

Description

@chrispretz

Really like this package! However, despite my attempts I cannot get the "var2_vals" to function as expected and continue to get the error:

Error in data.matrix(fake_data) %*% t(data.matrix(m.sims@coef)) :
non-conformable arguments

the code I am using is

p1 <- interplot(m = glm.int.red, var1 = "rts", var2 = "age", predPro = TRUE,
var2_vals = seq(10, 60, by=10) , sims=5000, ci=0.95)

p1

the glm with the interaction executes as desired...

glm.int.red <- glm(formula = cbind(surv, 1 - surv) ~ as + ds + es + fs + hs +
iss + rts + age + bp + as:es + as:hs + as:rts + as:bp + ds:fs +
ds:age + ds:bp + es:hs + es:rts + fs:iss + fs:age + hs:age +
iss:bp + age:rts, family = binomial(link = "logit"), data = trauma)

Please help as I would really like to plot these interactions...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions