covset: Covobj and covset objects.

Description Usage Arguments Details Examples

View source: R/dmutate.R

Description

Covobj and covset objects.

Create a set of covariates.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
new_covobj(x, envir = parent.frame(), ...)

## S3 method for class 'covobj'
print(x, ...)

## S4 method for signature 'covobj'
as.list(x, ...)

## S4 method for signature 'covset'
as.list(x, ...)

## S3 method for class 'covset'
print(x, ...)

covset(..., envir = parent.frame())

rvset(...)

as.covset(x)

Arguments

x

a formula; may be quoted

envir

for formulae

...

formulae to use for the covset

Details

rvset is an alias for covset.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
obj <- new_covobj(Y[0,80] ~ rnorm(20,50))

obj

as.list(obj)

a <- Y ~ runif(0,1)
b <- Z ~ rbeta(1,1)

set <- covset(a,b)

set

as.list(set)

dmutate documentation built on April 23, 2021, 1:07 a.m.