pet | R Documentation |
The pet
function returns the percentage of Phase B data points that exceed
the prediction based on the Phase A trend. A binomial test against a 50/50
distribution is calculated. It also calculates the percentage of Phase B data
points that exceed the upper (or lower) 95 percent confidence interval of the
predicted progression.
pet(data, dvar, pvar, mvar, ci = 0.95, decreasing = FALSE, phases = c(1, 2))
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\ 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:
cdc()
,
nap()
,
overlap()
,
pand()
,
pem()
,
pnd()
,
tau_u()
## Calculate the PET and use a 99%-CI for the additional calculation
# create random example data
design <- design(n = 5, slope = 0.2)
dat <- random_scdf(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.