Repository navigation
Expand file tree
/
Copy pathinhaler.Rd
More file actions
54 lines (52 loc) · 1.62 KB
/
Copy pathinhaler.Rd
File metadata and controls
54 lines (52 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\docType{data}
\name{inhaler}
\alias{inhaler}
\title{Clarity of inhaler instructions}
\format{
A data frame of 572 observations containing
information on the following 5 variables.
\describe{
\item{subject}{The subject number}
\item{rating}{The rating of the inhaler instructions
on a scale ranging from 1 to 4}
\item{treat}{A contrast to indicate which of
the two inhaler devices was used}
\item{period}{A contrast to indicate the time of administration}
\item{carry}{A contrast to indicate possible carry over effects}
}
}
\source{
Ezzet, F., & Whitehead, J. (1991).
A random effects model for ordinal responses from a crossover trial.
\emph{Statistics in Medicine}, 10(6), 901-907.
}
\usage{
inhaler
}
\description{
Ezzet and Whitehead (1991) analyze data from a two-treatment,
two-period crossover trial to compare 2 inhalation devices for
delivering the drug salbutamol in 286 asthma patients.
Patients were asked to rate the clarity of leaflet instructions
accompanying each device, using a 4-point ordinal scale.
}
\examples{
\dontrun{
## ordinal regression with family "sratio"
fit1 <- brm(rating ~ treat + period + carry,
data = inhaler, family = sratio(),
prior = set_prior("normal(0,5)"))
summary(fit1)
plot(fit1)
## ordinal regression with family "cumulative"
## and random intercept over subjects
fit2 <- brm(rating ~ treat + period + carry + (1|subject),
data = inhaler, family = cumulative(),
prior = set_prior("normal(0,5)"))
summary(fit2)
plot(fit2)
}
}
\keyword{datasets}