clean: clean, a function to check data and inputs.

View source: R/clean.r

cleanR Documentation

clean, a function to check data and inputs.

Description

clean, a function to check data and inputs.

Usage

clean(
  data,
  ids,
  dv,
  time,
  phase = NULL,
  ivs = NULL,
  fixed = NULL,
  random = NULL,
  formula = NULL,
  correlation = NULL,
  family = NO(),
  dvs = NULL,
  target_ivs = NULL,
  standardize = list(dv = FALSE, iv = FALSE, byids = FALSE),
  sortData = TRUE,
  alignPhase = "none",
  debugforeach = debugforeach
)

Arguments

data

See PersonAlytic.

ids

See PersonAlytic.

dv

See Palytic.

time

See PersonAlytic.

phase

See PersonAlytic.

ivs

See PersonAlytic.

fixed

See Palytic.

random

See Palytic.

formula

See Palytic.

correlation

See PersonAlytic.

family

See PersonAlytic.

dvs

See PersonAlytic.

target_ivs

See PersonAlytic.

standardize

Logical. Should all variables be standardized? Only applies to dvs, ivs, and target_ivs.

alignPhase

See PersonAlytic.

Author(s)

Stephen Tueller stueller@rti.org

Examples

## Not run: 
data <- clean(data=OvaryICT, ids='Mare', dv='follicles',
              time='Time', phase='Phase')
# illustrate dropping cases with < 2 observations
data <- clean(data=OvaryICT[29:nrow(OvaryICT),], ids='Mare', dv='follicles',
              time='Time', phase='Phase')

## End(Not run)


ICTatRTI/PersonAlytics documentation built on Dec. 13, 2024, 11:06 p.m.