cons_comp_analysis: Run Components Analysis

Description Usage Arguments Value Examples

View source: R/simcom_functions.R

Description

Run Components Analysis

Usage

1
2
cons_comp_analysis(data, outcome_state = "b_state", pred_trait = c("P",
  "E"), pred_state = c("s_state"), single = FALSE, id = "id")

Arguments

data

The data frame to analyze

outcome_state

The outcome or dependent variable that is predicted (the average level-1 variable)

pred_trait

The predictor variables on level-2

pred_state

The predictor variable on level-1

id

The id/group variable of the participants

Value

Returns a list with two elements:

Examples

1
2
3
simulated_data <- sim_data()
data <- simulated_data
data <- cons_comp_analysis(simulated_data)

kthorstmann/simcom documentation built on May 22, 2019, 4:41 p.m.