Skip to content

Variable type of the treatment variable #3

@SusuXiong

Description

@SusuXiong

Hello! I am using Remiod for my dissertation project. The data I have got has continuous outcomes with missing values, the aim is to model the data as MAR and MNAR (Delta, J2R and CR). When I include the treatment variable as numeric (coded as 0 for placebo and 1 for treatment), the algorithm works. However, when I include the treatment variable as factor (reference level 0 and treatment level 1), the algorithm said 'Error in MCMC_CR[, mc_imp_col_nam] <- predc : replacement has length zero' when J2R and CR were chosen and the trace plots of the parameters of the treatment variable did not work.

I can see that in the simple example of the 'schizow' data, 'tx' is coded as an integer. Is this an in-built requirement of the package such that categorical treatment variables are not allowed?

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