effort {ICC} | R Documentation |
Optimum k
Measures Based Upon a Fixed Total Researcher Effort
Description
Given a fixed researcher effort (e.g., total number of assays able to be run),
this function plots the optimum k
measurements per individual to use
in order to obtain the smallest confidence interval at an expected intraclass
correlation coefficient (ICC) estimate. The results are depicted graphically,
showing the tradeoff in confidence interval width with changing k
.
Usage
effort(
est.type = c("hypothetical", "pilot"),
e = NULL,
ICC = NULL,
x = NULL,
y = NULL,
data = NULL,
alpha = 0.05
)
Arguments
est.type |
A character string of either |
e |
A numeric value indicating the total effort ( |
ICC |
A numeric value of the expected intraclass correlation coefficient. |
x |
Column name of |
y |
Column name of |
data |
A |
alpha |
A numeric indicating the alpha level to use when estimating the confidence interval. |
Details
More than one e
may be given. In this case, the graphical result
portrays multiple lines - each representing a different e
.
When est.type="pilot"
, the function automatically generates an effort
10 percent larger and smaller than the calculated effort from the pilot data.
Author(s)
See Also
Examples
#Example 1
effort(est.type = "h", e = c(30, 60, 120), ICC = 0.2)
#Example 2
data(ChickWeight)
effort(est.type = "p", x = Chick, y = weight, data = ChickWeight)