R/MethComp-package.R
PEFR.RdMeasurement of PEFR with Wright peak flow and mini Wright peak flow meter on 17 individuals.
A data frame with 68 observations on the following 3 variables.
metha factor with levels Wright and
Mini, representing measurements by a Wright peak flow meter and a
mini Wright meter respectively, in random order.
itemNumeric vector, the person ID.
yNumeric vector, the measurements, i.e. PEFR for the two measurements with a Wright peak flow meter and a mini Wright meter respectively. The measurement unit is l/min.
replNumeric vector, replicate number. Replicates are exchangeable within item.
J. M. Bland and D. G. Altman (1986) Statistical Methods for Assessing Agreement Between Two Methods of Clinical Measurement, Lancet. 1986 Feb 8;1(8476):307-10.
data(PEFR)
PEFR <- Meth(PEFR)
#> The following variables from the dataframe
#> "PEFR" are used as the Meth variables:
#> meth: meth
#> item: item
#> repl: repl
#> y: y
#> #Replicates
#> Method 2 #Items #Obs: 68 Values: min med max
#> Mini 17 17 34 227 444.5 658
#> Wright 17 17 34 165 432.0 656
summary(PEFR)
#> #Replicates
#> Method 2 #Items #Obs: 68 Values: min med max
#> Mini 17 17 34 227 444.5 658
#> Wright 17 17 34 165 432.0 656
plot(PEFR)
plot(perm.repl(PEFR))