metrics: Compute R2 and RSME for subsamples of data

Description Usage Arguments Value

Description

Compute R2 and RSME for subsamples of data

Usage

1
metrics(ss, method = "none", n.sample = seq(50, 500, 50), N = length(ss))

Arguments

ss

object as output from subsamples

method

argument passed to model_step

n.sample

sample sizes to calculate the metrics for

N

number of subamples of each size. This alternative can be used to reuse a subsamlpe object with larger N set by subsamples instead of generating multiple subsamples (this N can not be larger than the original N) set by subsamples).

Value

object of class "metrics", which is a list of two data.frames, "Rsquared" and "RMSE where each has columns corresponding to sample sizes and rows corresponding to repeated samples.


eribul/r2samplesize documentation built on May 16, 2019, 8:25 a.m.