Skip to content

ERROR MESSAGE #13

@osahonjeffery

Description

@osahonjeffery

I am trying to run an interactive model using the intercationR code but I am getting the the error below

Error in Surv(rep(1, 5678L), case) : object 'case' not found
In addition: Warning message:
In interactionR(fit4, exposure_names = c("X1", "X18"), ci.type = "delta", :
Recoding exposures; new reference category for X18 is 0 and for X18:X1 is 1

This is my code
fit4 <- clogit(case~X18*X1+strata(pair), dat2)
value4<-interactionR(fit4,
exposure_names = c("X1", "X18"),
ci.type = "delta", ci.level = 0.95,
em = F, recode = T)
interactionR_table(value4)

Meanwhile, my X18 is a risk factor >1 coded as "1" predictive why my X1 is preventive coded as "1". my data is a case-control data.

Please I need help to debug this error

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