afa
// load example dataset
webuse bg2
// run EFA and rotate loadings
factor bg2cost*
rotate
// get the loading matrix
matrix L = e(r_L)
// obtain variable names from loading matrix
local varlist : rownames L
// obtain number of factors from loading matrix
local J = colsof(L)
// create the i x j rescaled items
forvalues j = 1/`J' {
local i 0
foreach var of local varlist {
generate `var'_`j' = `var'*L[`++i', `j']
}
}
// compute alpha for each factor
alpha bg2cost*_1
alpha bg2cost*_2
alpha bg2cost*_3
公卫论坛
公卫考场
公卫百科
Boermans & Kattenberg (2011) : "Estimating reliability coefficients with heterogenous item weighting using Stata: A factor based approach
公卫百科
附件列表
词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。
如果您认为本词条还有待完善,请 编辑
上一篇 安徽省舒城县疾病预防控制中心 下一篇 coefplot