Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #insignificant #coefficient #output
ADD COMMENT
Topic
Name
2+5 =