PlotResiduals: Plot predicted values vs residuals to assess data linearity...

View source: R/plotting.R

PlotResidualsR Documentation

Plot predicted values vs residuals to assess data linearity and heteroskedasticity This requires densifying the expression matrices so it might be wise to only plot a subset of cells/genes.

Description

Plot predicted values vs residuals to assess data linearity and heteroskedasticity This requires densifying the expression matrices so it might be wise to only plot a subset of cells/genes.

Usage

PlotResiduals(x, y, mfit, nonzero.only = T)

Arguments

x

Design matrix + covariates matrix

y

Expression response

mfit

Fitted glmnet model

nonzero.only

Only plot residuals vs predicted for nonzero values

Value

KDE density plot of residuals vs predicted


yanwu2014/perturbLM documentation built on Aug. 24, 2023, 2:28 p.m.