initialInspectCortisol: Initial Data Inspection

Description Usage Arguments Examples

View source: R/initialInspectionCortisol.R

Description

This function does an intial inspection on the data.

Usage

1
initialInspectCortisol(dat, calibName, calibValue, nVar, drop)

Arguments

dat

A data frame

calibVar

The name of the calibration variable (usually STAND or A)

calibValue

The value for calibration (usually 0)

cpmVar

The name for the CPM variable (usually CPM)

idVar

The ID variable; is often "N".

drop

Which participant to drop.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
dat = data.frame(N = 1:10,
                 CPM = c(44396.5, 47774.5, 23676.0, 24290.3, 23541.0,
                         20108.7, 20101.3, 19383.7, 17013.7, 17678.7),
                 STAND = c(NA, NA, 0, 0, 1,
                           1, 3, 10, 30, 100))
# The First Pass #

initialInspectCortisol(dat, "STAND", 0, "CPM")

# Deleting Observations #

initialInspectCortisol(dat, "STAND", 0, "CPM", "N", 1)

saberry/cortisolR documentation built on May 29, 2019, 12:21 p.m.