plotFittedValues: Plot fitted values from supervised JIVE model

View source: R/Visuals.R

plotFittedValuesR Documentation

Plot fitted values from supervised JIVE model

Description

Display diagnostic plots given a JIVE.pred, sJIVE, or sesJIVE model

Usage

plotFittedValues(result, ...)

## S3 method for class 'sJIVE'
plotFittedValues(result, graph = 0, ...)

## S3 method for class 'JIVEpred'
plotFittedValues(result, graph = 0, ...)

## S3 method for class 'sesJIVE'
plotFittedValues(result, graph = 0, ...)

Arguments

result

A fitted model.

...

further arguments passed to or from other methods.

graph

A value: 0, 1, or 2.

Details

Depending if the outcome is Gaussian or binary, different diagnostic plots will be generated. If the outcome is Gaussian, a residual plot and a Q-Q plot will be created. If the outcome is binary, two plots will be created for each joint and individual component: the first will plot a Loess curve, and the second will contain a density plot. Both plots help show the separation, or lack thereof, between the component and the outcome.

Value

Diagnostic plot(s)

Methods (by class)

  • plotFittedValues(sJIVE):

  • plotFittedValues(JIVEpred):

  • plotFittedValues(sesJIVE):

Examples

## Not run: 
#Let fit be a fitted sJIVE, JIVE.pred, or sesJIVE model
plotFittedValues(fit)

## End(Not run)

enorthrop/sup.r.jive documentation built on Nov. 18, 2022, 6:01 p.m.