Description Usage Arguments Value References Examples
This approach is to specify the major comparisons of interest. Determine the expected widths of the confidence intervals for various sample sizes, given standard deviation (sigma).
1 | ssea.oneway(number.group,mc,sigma,n.weight,ci.width,type=c("s", "b"), alpha = 0.05)
|
number.group |
number of treatments. |
mc |
matrix of contrast. each row determine one contrast. |
sigma |
Standard deviation. |
n.weight |
weight of sample size Corresponding to each treatment. |
ci.width |
width of confidence interval Corresponding to each contrast. |
type |
type of calculate confidence interval. |
alpha |
Confidence interval calculate with 1-alpha percent |
sample size obtain based on confidence interval.
Michael H. Kutner; Christopher J. Nachtsheim; John Neter; William Li. Applied Linear Statistical Models Fifth Edition. page 759.
1 2 3 4 5 6 7 8 9 10 11 12 | mc=matrix(c(1,-1,0,0,.5,.5,-.5,-.5,1/3,1/3,1/3,-1),byrow=TRUE,nrow = 3)
ssea.oneway(4,mc,sigma=2,n.weight=c(1,1,1,1),ci.width=c(2.61,1.85,2.14)*2,type='s')
#### page 761
mc=matrix( c(1,0,0,-1,0,1,0,-1,0,0,1,-1),byrow=TRUE,nrow = 3)
ssea.oneway(4,mc,2,n.weight=c(1,1,1,2),ci.width=c(1,1,1)*2,type='b',alpha=.1)
#### problem 17.25 page 772
mc=matrix(c(1,-1,0,0,0,0,
.5,.5,-.5,-.5,0,0,
0,0,1,-1,0,0,
.25,.25,.25,.25,-.5,-.5),byrow=TRUE,nrow=4)
ssea.oneway(6,mc,.15,n.weight=rep(1,6),ci.width=rep(2*0.08,4),type='b',alpha=.05)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.