我正在尝试使用func showwAndHideFilterMenu(category : Int) {
if showFilterMenu == false{
UIView.animate(withDuration: 0.6, delay: 0, options: .curveEaseInOut, animations: {
self.filterView.isHidden = false
self.showFilterMenu = true
}) { (isCompleted) in
}
} else {
UIView.animate(withDuration: 0.6, delay: 0, options: .curveEaseInOut, animations: {
self.filterView.isHidden = true
self.self.showFilterMenu = false
}) { (isCompleted) in
}
}
}
包来根据使用mediation
包装的GLMM回归拟合中介模型:
lme4
然而,这会传递以下错误消息:
library(mediation)
library(lme4)
curvature_full_model <- lmer(scale(curvature_sqrt) ~ scale(edit_session_length) + scale(edit_session_duration_log) + scale(edit_session_number_sqrt) + scale(role_within_artifact_group_ratio) + scale(role_within_community_binary_ratio) + scale(diversity_in_contributors_prior_work_history_transformed) + (domain || article), data = data[complete.cases(data),], control = lmerControl(optimizer="bobyqa"), REML = TRUE)
summary(curvature_full_model)
quality_full_model <- lmer(scale(artifact_quality) ~ scale(curvature_sqrt) + scale(edit_session_length) + scale(edit_session_duration_log) + scale(edit_session_number_sqrt) + scale(role_within_artifact_group_ratio) + scale(role_within_community_binary_ratio) + scale(diversity_in_contributors_prior_work_history_transformed) + (domain || article), data = data[complete.cases(data),], control = lmerControl(optimizer="bobyqa"), REML = TRUE)
summary(quality_full_model)
med <- mediate(curvature_full_model, quality_full_model, treat = "scale(diversity_in_contributors_prior_work_history_transformed)", mediator = "scale(curvature_sqrt)", sims = 500, boot = FALSE)
summary(med)
我的问题是:在这种情况下,Error in array(NA, c(J, K)) : 'dims' cannot be of length 0
In addition: Warning message:
In ranef.merMod(object, condVar = TRUE) :
conditional variances not currently available via ranef when there are multiple terms per factor
表示什么?