epa_summary: epa_summary

View source: R/raw_data_processing.R

epa_summaryR Documentation

epa_summary

Description

Calculates the mean, standard deviation, and variance-covariance matrix for each term in an individual-level data set. This is useful when a user wants summary EPA information for a subset of respondents, for example, when comparing cultural meaning across groups. In this case, a user would first create the desired individual data subsets using the epa_subset() function, then pass the resulting data frames to this function to calculate relevant summary statistics.

Usage

epa_summary(data)

Arguments

data

individual level data frame with columns for term, component, E, P, and A.

Value

a summary dataset with one row per term. Includes the evaluation, potency, and activity mean, standard deviation, and variance-covariance matrix entries for each term/component combination. Values are rounded to the nearest .01.

Examples

epa_summary(dplyr::filter(epa_subset(datatype = "individual", dataset = "usfullsurveyor2015"),
    gender == "Male"))

ahcombs/actdata documentation built on Jan. 15, 2025, 6:48 p.m.