molgenis / molgenis-emx2

MOLGENIS EMX2, the latest version of the MOLGENIS data platform.
GNU Lesser General Public License v3.0
14 stars 16 forks source link

As Tester investigate difference in behaviour in testing 'ds.mice' between Opal and Armadillo #4081

Open StuartWheater opened 1 month ago

StuartWheater commented 1 month ago

The result of running the dsBaseClient test is: devtools::test(filter = "smk-ds.mice", reporter = ProgressReporter$new(max_failures = 999999))

Failure ('test-smk-ds.mice.R:85:3'): mice, second imputation
as.character(newImp$sim1$method) not equal to c("pmm", "norm", "pmm", "pmm", "pmm", "", "", "", "", "", "polyreg").
1/11 mismatches
x[11]: ""
y[11]: "polyreg"
StuartWheater commented 1 month ago

Problem exists with:

"polyreg" is method related to factor variable

StuartWheater commented 1 month ago

attributes(study1$PM_BMI_CATEGORICAL) $levels [1] "1" "2" "3"

$class [1] "factor"

$label [1] "Body Mass Index (categorical)"

$labels Less than 25 kg/m2 25 to 30 kg/m2 Over 30 kg/m2 1 2 3

$opal.value_type [1] "integer"

$opal.entity_type [1] "Participant"

$opal.repeatable [1] 0

$opal.index [1] 0

$opal.nature [1] "CATEGORICAL"