Description Usage Arguments Value Examples
View source: R/simcom_functions.R
Run Components Analysis
1 2 |
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 |
Returns a list with two elements:
1The results of the components analysis
2The explained variance per state
3The results of the dominance analyses
1 2 3 | simulated_data <- sim_data()
data <- simulated_data
data <- cons_comp_analysis(simulated_data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.