rep_lm: A repeated linear regression function

View source: R/rep_lm.R

rep_lmR Documentation

A repeated linear regression function

Description

For bivariate analyses, to determine which variables to include in adjusted model. Output is a list with two elements: data frame with test results and vector of variable names (from 'string') to include determined by set cutoff ('cut.p').

Usage

rep_lm(
  meas,
  vars = NULL,
  string,
  ci = FALSE,
  data,
  fixed.var = FALSE,
  cut.p = 0.1
)

Arguments

meas

Effect meassure. Input as c() of columnnames, use dput().

vars

variables in model. Input as c() of columnnames, use dput().

string

variables to test. Input as c() of columnnames, use dput().

ci

flag to get results as OR with 95 percent confidence interval.

data

data frame to pull variables from.

fixed.var

flag to set "vars" as fixed in the model. When FALSE, then true bivariate linear regression is performed.


agdamsbo/daDoctoR documentation built on Aug. 30, 2022, 4:29 p.m.