dot-pcr_rsquared: Calculate R squared

Description Usage Arguments Value Examples

Description

Calculate R squared

Usage

1

Arguments

vec

A vector of numerics

var

A grouping variable

Value

A numeric

Examples

1
2
3
vec <- rnorm(6, 30, 1)
var <- rep(c(.1, .5), 3)
pcr:::.pcr_rsquared(vec, var)

pcr documentation built on April 1, 2020, 9:07 a.m.