Answers for "r remove insignificant coefficient in output"

R
0

r remove insignificant coefficient in output

#x is a 10 x 3 matrix
x = matrix(rnorm(3*10), ncol=3)
y = rnorm(10)
res = glm(y~x)
#ignore the intercept pval
summary(res)$coeff[-1,4] < 0.05
Posted by: Guest on August-09-2021

Code answers related to "r remove insignificant coefficient in output"

Browse Popular Code Answers by Language