Multilevel Response Surface Analysis
收藏osf.io2022-05-31 更新2025-03-23 收录
下载链接:
https://osf.io/jhyu9
下载链接
链接失效反馈官方服务:
资源简介:
Here you can find R codes and Mplus codes for the simulated illustrative example (Example 1). If there are any bugs, please write us an e-mail. Thanks!
Edits 25-08-2019:
1. A small change was made to the AnalyzeData-File. Specifically, we have added a control-parameter to the lmer-function call. Please use AnalyzeData_25082019.R from now on.
2. We also changed the Makeplots-file. There was an error in the commands for Figure 2. Thanks to Dr. Xinwen Bai from the Chinese Academy of Sciences for catching it. Please use MakePlots_25082019.R from now on.
3. Finally, we also made a small change to the MLRSA_Utils_RandomEffectMatrix-function in the MultilevelRSA-Source file so that a level 2 variance estimate is estimated even if only one random effect is estimated (in addition to the intercept). Please use the MultilevelRSA_25082019-file from now on.
Addition 30-04-2021:
We are very often asked how one can use the codes to compute a Multilevel-RSA in which one of the congruence variables is a Level 1 predictor and the other is a Level 2 predictor (see Bleidorn et al., 2016). We added a folder to the project that contains R codes for this.
Edits 23-05-2021:
There was a bug in the MultilevelRSA-function due to a change in the lme4-function. We corrected that. Please use MultilevelRSA_23052021.R from now on.
Edits 24-05-2021:
We improved customizability of the functions that generate the three-dimensional plots. You can now specify various arguments that will be forwarded to the plotRSA function (see help(plotRSA) for a list of possibilities). For example, you can customize the axis ranges with xlim, ylim, and zlim. Please use MultilevelRSA_24052021 from now on.
在此处,您可以找到用于模拟示例(示例1)的 R 语言和 Mplus 代码。如遇任何错误,请致信与我们联系。感谢您的支持!
编辑记录 25-08-2019:
1. 对 AnalyzeData-File 进行了微小调整。具体而言,我们在 lmer 函数调用中增加了一个控制参数。请从此使用 AnalyzeData_25082019.R。
2. 我们还修改了 Makeplots 文件。Figure 2 的命令中存在错误。感谢中国科学院的 Bai Xinwen 博士指出此问题。请从此使用 MakePlots_25082019.R。
3. 最后,我们在 MultilevelRSA-Source 文件中对 MLRSA_Utils_RandomEffectMatrix 函数进行了一处小的修改,以确保即使只估计一个随机效应(除截距外),也能估算出层次 2 的方差估计。请从此使用 MultilevelRSA_25082019 文件。
补充 30-04-2021:
我们经常被问及如何使用这些代码计算一个多水平-RSA,其中一个同质性变量是层次 1 预测变量,另一个是层次 2 预测变量(参见 Bleidorn 等,2016)。我们在项目中增加了一个包含用于此目的的 R 代码的文件夹。
编辑记录 23-05-2021:
由于 lme4 函数的改变,MultilevelRSA 函数中存在一个错误。我们已更正。请从此使用 MultilevelRSA_23052021.R。
编辑记录 24-05-2021:
我们提高了生成三维图的函数的可定制性。现在,您可以指定各种将被转发到 plotRSA 函数的参数(有关可能性的列表,请参阅 help(plotRSA))。例如,您可以使用 xlim、ylim 和 zlim 自定义坐标轴范围。请从此使用 MultilevelRSA_24052021。
提供机构:
osf.io



