jvbraun / AlgDesign

Algorithmic Experimental Design by Robert E. Wheeler
12 stars 5 forks source link

Nullification failed to find a starting design #20

Open jvbraun opened 2 years ago

jvbraun commented 2 years ago

From Shuvo Bakar (July 13, 2020):

I was trying to use the package and noticed the following error, however bit unclear on why it is giving me the message.

"Nullifcation failed to find a starting design."

A bit dig down to the code, I noticed that it is coming through "value$error==13"

Please find attached a test data and I am using the following code:

y <- read.csv(file="test_data.csv") out <- optFederov(data = y, approximate=TRUE, nTrials = 25, criterion="I") Error in optFederov(data = y, approximate = TRUE, nTrials = 25, criterion = "I") : Nullifcation failed to find a starting design.

It is, however, working if I don't fix the 'nTrials', i.e.,

out <- optFederov(data = y, approximate=FALSE, criterion="I") out$rows [1] 1 6 7 12 13 15 20 22 23 24 31 38 39 40 45 48 51 52 54 56 59 61 64 72 74 [26] 78 84 85 89 93 96 97 98 99 100

Which has more than 25 samples selected by the design.

Would much appreciate your thoughts and suggestions on this. test_data.csv