Skip to content

Assign ISA=NA for non-allocated participants #161

@PeterJacko

Description

@PeterJacko

In lAllocIntr.R, if all(alloc_ratio == 0), nothing is done to newdat_df, but in the else statement, column ISA is created. We should also create the ISA column using lPltfTrial$lSnap$newdat_df$ISA and perhaps assign NA to all of them.

This is because the subsequent code in lFnDef.R, assumes the existence of column ISA, in:
for (i in unique(lPltfTrial$lSnap$newdat_df$ISA)) {
lPltfTrial$isa[[i]]$tempPats <-
subset(lPltfTrial$lSnap$newdat_df, ISA == i)
}

It would be useful if the datasets always had the same structure regardless of what happens.

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