Defing data for mediation and moderation
Permanent Note Created: 01-11-2022 12:25
The data input can be set up to only have one column per variable that will be used. Therefore, there needs to be a function that “setups” the data.
This is important because one variable will typically be thousands of variables that all need to be tested.
- One program can extract the data one by one and send it to the model to be analyzed.
- Or, the full dataset can be sent and the analysis function can cycle over the data
- I like this idea better for the following reason.
- If the outcome variable is the brain imaging data (with lots of variables), and the inpout model is teh same for each variable, then the model only needs inversion once.
- See here for a description:Mediation and Moderation for Brain Imaging
- I like this idea better for the following reason.