Skip to content

Commit 28a164e

Browse files
Add files via upload
1 parent 62fba3e commit 28a164e

34 files changed

+5157
-5
lines changed

DESCRIPTION

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Package: hassediagram
2+
Type: Package
3+
Title: Hasse diagram of the layout structure and restricted layout structure
4+
Version: 1.0
5+
Date: 2025-04-01
6+
Authors@R:
7+
c(person(given = "Damianos", family = "Michaelides", role = c("aut", "cre"), email = "[email protected]"),
8+
person(given = "Simon", family = "Bate", role = c("aut"), email = "[email protected]"),
9+
person(given = "Marion", family = "Chatfield", role = "aut"))
10+
Maintainer: Damianos Michaelides <[email protected]> and Simon Bate <[email protected]>
11+
Description: Returns a Hasse diagram of the 'layout structure'
12+
or the 'restricted layout structure' of an experimental
13+
design.
14+
License: GPL-2
15+
Encoding: UTF-8
16+
URL: https://github.com/GSK-Biostatistics/hassediagram
17+
BugReports: https://github.com/GSK-Biostatistics/hassediagram/issues
18+
Imports: igraph, methods, MASS, grDevices, graphics, stats
19+
Depends: R (>= 3.5.0)
20+
Suggests:
21+
dae,
22+
knitr,
23+
rmarkdown,
24+
jsonlite,
25+
kableExtra
26+
LazyData: true
27+
RoxygenNote: 7.3.2
28+
VignetteBuilder: knitr

R/analytical.R

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#' A cross-nested design for an analytical method investigation
2+
#'
3+
#' The reliability of an analytical method was assessed in an experiment consisting of three batches of material, analysed by four analysts, two at each site. Within each site, there were two chromatographic systems and two columns. For each batch/analyst/system/column combination, two preparations (dissolved samples) were made. From each preparation, two injections were performed.
4+
#'
5+
#' @format A data frame of 192 observations on 8 variables/factors:
6+
#' \describe{
7+
#' \item{Site}{Categoric factor with levels 1 and 2.}
8+
#' \item{Analyst}{Categoric factor with levels 1-4.}
9+
#' \item{Run}{Categoric factor with levels 1-16.}
10+
#' \item{Prep}{Categoric factor with levels 1-96.}
11+
#' \item{Injection}{Categoric factor with levels 1-192.}
12+
#' \item{System}{Categoric factor with levels 1-4.}
13+
#' \item{Column}{Categoric factor with levels 1-4.}
14+
#' \item{Batch}{Categoric factor with levels 1-3.}
15+
#' }
16+
#'
17+
#' @source Bate, S.T. and Chatfield, M.J. (2016). "Identifying the Structure of the Experimental Design". *Journal of Quality Technology* 48, pp. 343-364.
18+
#'
19+
#' @examples
20+
#' data("analytical")
21+
#' analytical
22+
#'
23+
#' @keywords datasets
24+
#' @name analytical
25+
#' @docType data
26+
#' @usage data(analytical)
27+
NULL

R/concrete.R

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#' A fractional factorial design for investigating asphalt concrete production
2+
#'
3+
#' This is fractional factorial design given in Anderson and McLean (1974) p.256 from an experiment to investigate the effect of controllable variables/factors on the quality of asphalt concrete production.
4+
#'
5+
#' @format A half fraction factorial design of 16 runs on 6 variables/factors. The 6 variables/factors, each at two levels, included in the design are:
6+
#' \describe{
7+
#' \item{Aggregate gradation (AG)}{Categoric factor with levels being fine and coarse.}
8+
#' \item{Compaction temperature (CoT)}{Numeric factor with low 250 and high 300.}
9+
#' \item{Asphalt content (AC)}{Numeric factor with low 5 and high 7.}
10+
#' \item{Curing condition (CC)}{Categoric factor with levels wrapped and unwrapped.}
11+
#' \item{Curing temperature (CuT)}{Numeric factor with low 45 and high 72.}
12+
#' \item{Run}{Categoric factor with levels 1-16.}
13+
#' }
14+
#'
15+
#' @source Anderson, V.L. and McLean, R.A. (1974). *Design of Experiments.* Marcel Dekker Inc.: New York.
16+
#'
17+
#' @examples
18+
#' data("concrete")
19+
#' concrete
20+
#'
21+
#' @keywords datasets
22+
#' @name concrete
23+
#' @docType data
24+
#' @usage data(concrete)
25+
NULL

R/dental.R

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#' A crossover design for a dental study
2+
#'
3+
#' This is a crossover design (Study H) given in Newcombe et al. (1995) to study the effects of CHX rinses on 4 day plaque regrowth. The study consisted of 24 patients assessed over 3 treatment periods. The purpose of the study was to compare 2 CHX rinses with saline. The design is based on pairs of Latin squares balanced for carry over.
4+
#'
5+
#' @format A crossover design of 72 runs on 5 variables/factors. The 5 variables/factors included in the design are:
6+
#' \describe{
7+
#' \item{Sequence}{Categoric factor with levels 1-6.}
8+
#' \item{Subject}{Categoric factor with levels 1-32.}
9+
#' \item{Period}{Categoric factor with levels 1-3.}
10+
#' \item{Treatment}{Categoric factor with levels CHX1, CHX2 and Saline.}
11+
#' \item{Observation}{Categoric factor with levels 1-72.}
12+
#' }
13+
#'
14+
#' @source Newcombe, R.G., Addy, M. and McKeown, S. (1995). "Residual effect of chlorhexidine gluconate in 4-day plaque regrowth crossover trials, and its implications for study design". *Journal of Periodontal Research*, 30, 5, pp. 319-324.
15+
#'
16+
#' @examples
17+
#' data("dental")
18+
#' dental
19+
#'
20+
#' @keywords datasets
21+
#' @name dental
22+
#' @docType data
23+
#' @usage data(dental)
24+
NULL

R/hassediagram.R

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#' @encoding UTF-8
2+
#' @title Hasse diagram of the layout structure and restricted layout structure
3+
#'
4+
#' @description
5+
#' Returns a Hasse diagram of the 'layout structure' or the 'restricted layout structure'
6+
#' of an experimental design.
7+
#'
8+
#' @details
9+
#' The package consists of three main functions: \code{\link[hassediagram]{hasselayout}},
10+
#' \code{\link[hassediagram]{itemlist}}, and \code{\link[hassediagram]{hasserls}}.
11+
#' The first function generates the Hasse diagram of the layout structure of an experimental design.
12+
#' The latter two functions are used together to generate the Hasse diagram of the restricted layout
13+
#' structure of an experimental design.
14+
#'
15+
#' @author
16+
#' Damianos Michaelides (Maintainer) <[email protected]>
17+
#' Simon Bate <[email protected]>
18+
#' Marion Chatfield
19+
#'
20+
#' @seealso
21+
#' For dataset details, see:
22+
#' - \code{\link{concrete}}
23+
#' - \code{\link{dental}}
24+
#' - \code{\link{human}}
25+
#' - \code{\link{analytical}}
26+
#'
27+
#' @references
28+
#' Bate, S.T. and Chatfield, M.J. (2016a), Identifying the structure of the experimental design.
29+
#' Journal of Quality Technology, 48, 343-364.
30+
#'
31+
#' Bate, S.T. and Chatfield, M.J. (2016b), Using the structure of the experimental design and
32+
#' the randomization to construct a mixed model. Journal of Quality Technology, 48, 365-387.
33+
#'
34+
#' Box, G.E.P., Hunter, J.S., and Hunter, W.G., (1978), Statistics for Experimenters.
35+
#' New York, Wiley.
36+
#'
37+
#' Joshi, D.D. (1987), Linear Estimation and Design of Experiments. Wiley Eastern, New Delhi.
38+
#'
39+
#' Williams, E.R., Matheson, A.C. and Harwood, C.E. (2002), Experimental design and analysis
40+
#' for tree improvement. 2nd edition. CSIRO, Melbourne, Australia.
41+
#'
42+
#' @name hassediagram
43+
#' @keywords internal
44+
"_PACKAGE"

0 commit comments

Comments
 (0)