Skip to content

Add explicit warning when number of dropouts is greater than number of enrolled #73

@Emmanuelludo

Description

@Emmanuelludo

rxsim/R/Population.R

Lines 165 to 167 in c4658a5

# Don't drop more subjects than eligible (enrolled and not yet dropped)
idx <- which(is.na(self$dropped) & !is.na(self$enrolled))
n_use <- min(n, length(idx))

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions