1 |
J |
|
K |
|
L |
|
data |
|
tr |
|
grp |
|
alpha |
|
p |
|
nboot |
|
pr |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (J, K, L, data, tr = 0.2, grp = c(1:p), alpha = 0.05,
p = J * K * L, nboot = 600, pr = FALSE)
{
if (is.list(data))
data = listm(elimna(matl(data)))
if (is.matrix(data))
data = listm(elimna(data))
if (!is.list(data))
stop("Data are not stored in list mode or a matrix")
if (p != length(data)) {
print("The total number of groups, based on the specified levels, is")
print(p)
print("The number of groups in data is")
print(length(data))
print("Warning: These two values are not equal")
}
x = data
temp = con3way(J, K, L)
conA <- temp$conA
conB <- temp$conB
conC <- temp$conC
conAB <- temp$conAB
conAC <- temp$conAC
conBC <- temp$conBC
conABC = temp$conABC
Factor.A <- linconb(x, con = conA, tr = tr, alpha = alpha,
nboot = nboot, pr = pr)
Factor.B <- linconb(x, con = conB, tr = tr, alpha = alpha,
nboot = nboot, pr = pr)
Factor.C <- linconb(x, con = conC, tr = tr, alpha = alpha,
nboot = nboot, pr = pr)
Factor.AB <- linconb(x, con = conAB, tr = tr, alpha = alpha,
nboot = nboot, pr = pr)
Factor.AC <- linconb(x, con = conAC, tr = tr, alpha = alpha,
nboot = nboot, pr = pr)
Factor.BC <- linconb(x, con = conBC, tr = tr, alpha = alpha,
nboot = nboot, pr = pr)
Factor.ABC <- linconb(x, con = conABC, tr = tr, alpha = alpha,
nboot = nboot, pr = pr)
list(Factor.A = Factor.A, Factor.B = Factor.B, Factor.C = Factor.C,
Factor.AB = Factor.AB, Factor.AC = Factor.AC, Factor.BC = Factor.BC,
Factor.ABC = Factor.ABC, pr = pr)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.