Learn R Programming

Momocs (version 1.0.0)

calibrate_r2: Quantitative r2 calibration for Opn objects

Description

Estimates the r2 to calibrate the degree for npoly and opoly methods. Also returns a plot

Usage

calibrate_r2(Opn, method = "opoly", id = 1:length(Opn), degree.range = 1:8, thresh = c(0.9, 0.95, 0.99, 0.999), plot = TRUE, verbose = TRUE, ...)

Arguments

Opn
an Opn object
method
one of 'npoly' or 'opoly'
id
the ids of shapes on which to calculate r2 (all by default)
degree.range
on which to calculate r2
thresh
the threshold to return diagnostic
plot
logical whether to print the plot
verbose
logical whether to print messages
...
useless here

Details

May be long, so you can estimate it on a sample either with id here, or one of sample_n or sample_frac

See Also

Other calibration: calibrate_deviations, calibrate_harmonicpower, calibrate_reconstructions

Examples

Run this code
## Not run: 
# calibrate_r2(olea, "opoly", degree.range=1:5, thresh=c(0.9, 0.99))
# ## End(Not run)

Run the code above in your browser using DataLab