Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些按组织组分组的数据,我想计算每个组内的移动平均值。我玩过,不知道一种快速简便的方法可以使命令在组内运行,而不是在整个数据集上运行。
见SPLIT FILE命令。您可以简单地指定分组变量并运行适当的CREATE命令来估计您的移动平均值。下面的简要示例:
SPLIT FILE
CREATE
sort cases by GROUPING_VAR. split file by GROUPING_VAR. CREATE /group_MA=PMA(X 5). split file off.