我在 Stata 中运行 Pearson 对多重插补数据的相关性:
mi query
local M=10
scalar corr=0
mi xeq 1/`M' : correlate v1 v2 ; scalar corr = corr + atanh(r(rho))
scalar corr = tanh(corr/`M')
di as txt "Correlation using Fisher's z over imputed data = " as res corr
上面的代码运行良好,只是它不会为每个系数生成 p 值。
有没有办法包含 p 值?