Description Usage Arguments Value Author(s) See Also Examples
The pet
function provides the percentage of phase B data points
exceeding the prediction based on the phase A trend. A binomial test against
a 50/50 distribution is computed. Furthermore, the percentage of phase B
data points exceeding the upper (or lower) 95 percent confidence interval of
the predicted progress is computed.
1 2 3 4 5 6 7 8 9 |
data |
A single-case data frame. See |
dvar |
Character string with the name of the dependent variable. Defaults to the attributes in the scdf file. |
pvar |
Character string with the name of the phase variable. Defaults to the attributes in the scdf file. |
mvar |
Character string with the name of the measurement time variable. Defaults to the attributes in the scdf file. |
ci |
Width of the confidence interval. Default is |
decreasing |
If you expect data to be lower in the B phase, set
|
phases |
A vector of two characters or numbers indicating the two
phases that should be compared. E.g., |
PET |
Percent exceeding the trend. |
PET.ci |
Percent exceeding the upper / lower 95%-CI boundary. |
p |
P value of Binomial Test. |
ci.percent |
Width of confidence interval in percent. |
se.factors |
Standard error. |
N |
Number of cases. |
decreasing |
Logical argument from function call (see |
case.names |
Assigned name of single-case. |
phases |
- |
Juergen Wilbert
Other overlap functions:
corrected_tauSC()
,
nap()
,
overlapSC()
,
pand()
,
pem()
,
pnd()
,
tauUSC()
1 2 3 4 5 | ## Calculate the PET and use a 99%-CI for the additional calculation
# create random example data
design <- design_rSC(n = 5, slope = 0.2)
dat <- rSC(design, seed = 23)
pet(dat, ci = .99)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.