Missing sample
0
0
Entering edit mode
@lluis-revilla-sancho
Last seen 4 days ago
European Union

There seems to be some problem with OSAT that doesn't return the same size of data that was used for input:

library("OSAT")
data(survey, package = "MASS")
VoI <- c("Sex", "Smoke", "Age")
n_batch <- 3
iterations <- 10
gs <- setup.sample(survey, optimal = VoI)
gc <- setup.container(IlluminaBeadChip96Plate, n = n_batch, batch = 'plates')
gSetup <- create.optimized.setup(sample = gs, container = gc, nSim = iterations)
#> Warning in create.optimized.setup(sample = gs, container = gc, nSim =
#> iterations): Using default optimization method: optimal.shuffle
OSAT_index <- get.experiment.setup(gSetup)
dim(survey)
#> [1] 237  12
dim(OSAT_index)
#> [1] 236  19

Created on 2021-04-14 by the [reprex package](https://reprex.tidyverse.org) (v2.0.0)

Inspecting the data it seems to be the sample 137 which on the first column has an NA. But couldn't find a confirmation this is the reason.

OSAT • 566 views
ADD COMMENT

Login before adding your answer.

Traffic: 701 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6