pathway_xvr {MMRcaseselection} | R Documentation |
Plot of residuals against pathway variable
Description
Plot of residuals against pathway variable
Usage
pathway_xvr(full_model, reduced_model, pathway_type)
Arguments
full_model |
Full model including covariate of interest (= pathway variable) |
reduced_model |
Reduced model excluding covariate of interest |
pathway_type |
Type of pathway values. |
Value
A plot of the chosen type of pathway values against the pathway
variable created with ggplot2
.
Examples
df_full <- lm(mpg ~ disp + wt, data = mtcars)
df_reduced <- lm(mpg ~ wt, data = mtcars)
pathway_xvr(df_full, df_reduced, pathway_type = "pathway_wb")
[Package MMRcaseselection version 0.1.0 Index]