OLP_regression: OLP regression

Description Usage Arguments Value Source Examples

View source: R/OLP.R

Description

OLP regression

Usage

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

Arguments

predictor

Numeric vector

outcome

Vector

na.rm

Should NAs be removed? Default is FALSE

Value

List with the following elements: intercept, slope, rse

Source

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

Examples

1
2
3
4
5
data("weight_data")
with(
  weight_data,
  OLP_regression(`OS 1`, `OS 3`)
)

mladenjovanovic/bmbstats documentation built on Aug. 5, 2020, 4:20 p.m.