inspect {asuR} | R Documentation |
This functions can be used to validate some assumptions of linear regressions. The idea of this functions is to illustrate possibilities, not to provide fully functional code. The functions work for regression models with continous variables only.
inspect(mymodel, which = c("select", "all"), id = c("all", "none"), ...) irp(mymodel) ryp(mymodel, id= c("none", "all")) ilp(mymodel) prp(mymodel)
mymodel |
an object of class glm or lm , usually, a result of a
call to the function glm or lm |
which |
a character string; do you want to select the plots from
a list of all possible diagnostics plots available or do you want
all of them, one after the other |
id |
a character string or numeric value; in which panel should it be possible to interactively identify values |
... |
further arguments |
The function inspect calls other functions (depending on their class) to inspect the model assumptions.
A list with identified values (row names), one slot for each inspection function.
thomas.fabbro@unibas.ch
plot
data(mytrees) model <- lm(log(Volume) ~ log(Girth) + log(Height), data=mytrees) ## inspect(model)