Extract pvalue from glm

前端 未结 4 628
说谎
说谎 2021-02-02 07:05

I\'m running many regressions and am only interested in the effect on the coefficient and p-value of one particular variable. So, in my script, I\'d like to be able to just extr

4条回答
  •  暖寄归人
    2021-02-02 07:29

    Well, this would be another way, however not the most efficient way to perform it :

    a = coeftable(model).cols[4]
    pVals = [ a[i].v for i in 1:length(a) ]
    

    This ensures that the extracted values from the glm is not in StatsBase. Therein, you can play around with pVals as per your requirement. Hope it helps, Ebby

提交回复
热议问题