covariates

0th

Percentile

Extract/Set Covariates

A generic function for extracting/setting covariates for an object.

Keywords
classes
Usage
covariates(object, …)
  covariates(object) <- value
Arguments
object

an object.

arguments passed to methods.

value

an object.

Aliases
  • covariates
  • covariates<-
Examples
# NOT RUN {
## method for "paircomp" data
pc <- paircomp(rbind(
  c(1,  1,  1), # a > b, a > c, b > c
  c(1,  1, -1), # a > b, a > c, b < c
  c(1, -1, -1), # a > b, a < c, b < c
  c(1,  1,  1)))
covariates(pc)
covariates(pc) <- data.frame(foo = factor(c(1, 2, 2), labels = c("foo", "bar")))
covariates(pc)
# }
Documentation reproduced from package psychotools, version 0.5-1, License: GPL-2 | GPL-3

Community examples

Looks like there are no examples yet.