公卫百科  > 所属分类  >  Stata   
[0] 评论[0] 编辑

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
公卫论坛

附件列表


0

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

如果您认为本词条还有待完善,请 编辑

上一篇 安徽省舒城县疾病预防控制中心    下一篇 coefplot

标签

暂无标签

同义词

暂无同义词