Displaying 2 results from an estimated 2 matches for "boundtri".
Did you mean:
boundtry
2018 Feb 23
2
How to Save the residuals of an LM object greater or less than a certin value to an R object?
Dear list members,
I want to save residuals above or less than a certain value to an R
object. I have performed a multiple linear regression, and now I want
to find out which cases have a residual of above + 2.5 and ? 2.5.
Below I provide the R commands I have used.
Reg<-lm(a~b+c+d+e+f) # perform multiple regression with a as the
dependent variable.
Residuals<-residuals(reg) # store
2018 Feb 23
0
How to Save the residuals of an LM object greater or less than a certin value to an R object?
Residuals are stored as a numeric vector. The R software comes with a document "Introduction to R" that discusses basic math functions and logical operators that can create logical vectors:
abs( stdresiduals ) > 2.5
It also discusses indexing using logical vectors:
stdresiduals[ abs( stdresiduals ) > 2.5 ]
Note that in most cases it is worth going the extra step of making your