OLP regression

OLP_regression(predictor, outcome, na.rm = FALSE)

Arguments

predictor

Numeric vector

outcome

Vector

na.rm

Should NAs be removed? Default is FALSE

Source

Function modified using the function from https://stat.ethz.ch/pipermail/r-help/2011-July/285022.html

Value

List with the following elements: intercept, slope, rse

Examples

data("weight_data") with( weight_data, OLP_regression(`OS 1`, `OS 3`) )
#> $intercept #> [1] 0.3145142 #> #> $slope #> [1] 0.9975385 #> #> $rse #> [1] 0.8352593 #>