Constructs tours of data space based on fits.
lofPath( data, fits, length = 10, reorder = TRUE, conditionvars = NULL, predictArgs = NULL, response = NULL, ... )diffitsPath( data, fits, length = 10, reorder = TRUE, conditionvars = NULL, predictArgs = NULL, ... )hiresponsePath( data, response = NULL, length = 10, reorder = TRUE, conditionvars = NULL, ... )loresponsePath( data, response = NULL, length = 10, reorder = TRUE, conditionvars = NULL, ... )
diffitsPath( data, fits, length = 10, reorder = TRUE, conditionvars = NULL, predictArgs = NULL, ... )
hiresponsePath( data, response = NULL, length = 10, reorder = TRUE, conditionvars = NULL, ... )
loresponsePath( data, response = NULL, length = 10, reorder = TRUE, conditionvars = NULL, ... )
A dataframe with the path
A dataframe
A model fit or list of fits
Path length, defaults to 10
If TRUE (default) uses DendSer to reorder the path dser
dser
A vector of variable names. The returned tour is for this subset of variables.
Extra inputs to CVpredict
The name of the response variable
ignored
lofPath: Constructs a tour of data space showing biggest absolute residuals from fits.
lofPath
diffitsPath: Constructs a tour of data space showing biggest differences in fits.
diffitsPath
hiresponsePath: Constructs a tour of data space showing high (numeric) response values
hiresponsePath
loresponsePath: Constructs a tour of data space showing low (numeric) response values
loresponsePath
fit1 <- lm(mpg ~ wt+hp+am, data=mtcars) fit2 <- lm(mpg ~ wt, data=mtcars) lofPath(mtcars,fit1, response="mpg") diffitsPath(mtcars,list(fit1,fit2))
Run the code above in your browser using DataCamp Workspace