parts of an experiment

SW
2019-01-09

Five key elements of an experiment or dataset

  • Subject
  • Treatment
  • Response
  • Assignment
  • Sampling

Variables

In R, these are stored in as vectors.

We usually write them in the style of an R formula

response ~ predictor

where ~ is read “is modeled as a function of.”

Another name for the response variable is dependent variable.

Other names for the predictor variable include:

  • independent variable
  • treatment
  • explanatory variable

Types of data

Discrete

  • integer
  • character
  • logical
  • factor (ordered)
  • (date)

Continuous

  • numeric
  • (time)

Types of data

Discrete

  • integer
  • character
  • logical aka 'binary' or 'dichotomous'
  • factor (ordered)
  • (date)

Continuous

  • numeric
  • (time)