extracting standardized coefficients from lm in R

前端 未结 3 1684
Happy的楠姐
Happy的楠姐 2021-01-30 06:35

My apologies for the dumb question...but I can\'t seem to find a simple solution

I want to extract the standardized coefficients from a fitted linear model (in R) there

3条回答
  •  鱼传尺愫
    2021-01-30 07:20

    Package lm.beta has several functions to work with standardised coefficients, including lm.beta() which requires an lm object:

    res <- lm(y~x)
    lm.beta(res) 
    

提交回复
热议问题