Draft
Conversation
TODO: - [ ] is it optimality of efficiency? - [ ] is percentages are OK? - [ ] document - [ ] figure out I-optimality
Collaborator
|
I'm lost... https://www.itl.nist.gov/div898/handbook/pri/section5/pri521.htm The same design in JMP: In R with this code: ⬆️ this is wrong, see below |
Collaborator
m <- structure(c(-1, -1, -1, -1, 0, 0, 0, 0, 1, 1, 1, 1, -1, -1, 1,
1, -1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1,
1, -1, 1), dim = c(12L, 3L), dimnames = list(NULL, c("X1", "X2",
"X3")))
d <- as.data.frame(m)> d_eff(model.matrix(~X1 + X2 + X3, data = d))
[1] 90.3602
> a_eff(model.matrix(~X1 + X2 + X3, data = d))
[1] 88.88889these are the same as JMP > g_eff(model.matrix(~X1 + X2 + X3, data = d))
[1] 94.2809this is not |
Collaborator
|
all these optimality criteria are model dependent, and I was using the wrong model (only linear terms), that's why there was a discrepancy between JMP/R and the NIST page with the correct model (inlcuding X1²) they are the same (at least for D): R > d_eff(model.matrix(~X1 + X2 + X3 + I(X1^2), data = d))
[1] 68.25575
> a_eff(model.matrix(~X1 + X2 + X3 + I(X1^2), data = d))
[1] 45.45455
> g_eff(model.matrix(~X1 + X2 + X3 + I(X1^2), data = d))
[1] 100 |
Collaborator
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


TODO: