Learn R Programming

cpr (version 0.4.1)

plot.cpr_cnr: Control Net Reduction Plots

Description

A collection of function for the inspection and evaluation of the control polygon reduction.

Usage

# S3 method for cpr_cnr
plot(x, type = "rse", from = 1, to, ...)

Value

a ggplot

Arguments

x

a cpr_cnr object

type

type of diagnostic plot. "loglik" for the log likelihood by degrees of freedom, "rse" for residual standard error by model index

from

the first index of x to plot

to

the last index of x to plot

...

pass through

Examples

Run this code
initial_cn <- cn(log10(pdg) ~ btensor(list(day, age)
                        , df = list(10, 8)
                        , bknots = list(c(-1, 1), c(44, 53))
                        )
          , data = spdg)

cnr0 <- cnr(initial_cn)

plot(cnr0)

Run the code above in your browser using DataLab