Learn R Programming

WH (version 2.0.0)

plot.WH_2d: Plot 2D WH fit

Description

Plot 2D WH fit

Usage

# S3 method for WH_2d
plot(x, what = "y_hat", trans, ...)

Value

A plot representing the given element of the fit...

Arguments

x

An object of class "WH_2d" returned by the WH() function

what

What should be plotted (y_hat, std_y_hat, res, edf)

trans

An (optional) transformation to be applied to the data

...

Not used

Examples

Run this code
d  <- portfolio_LTC$d
ec <- portfolio_LTC$ec

WH(d, ec) |> plot()
WH(d, ec) |> plot("std_y_hat")

Run the code above in your browser using DataLab