rep_biv: A repeated function for bivariate analyses

View source: R/rep_biv.R

rep_bivR Documentation

A repeated function for bivariate analyses

Description

For bivariate analyses, for gating by p-value or change-in-estimate.

Usage

rep_biv(
  y,
  v1,
  string,
  data,
  method = "pval",
  logistic = FALSE,
  ci = FALSE,
  cut = 0.1,
  v2 = NULL,
  v3 = NULL
)

Arguments

y

Effect meassure.

v1

Main variable in model

string

String of columnnames to include. Obtained with dput(). Input as c().

data

dataframe of data to analyse

method

method of gating analysis. Can be "pval" for a simple analysis of p-values below or equal to 0.1 or "cie" for change in estimate to asses the change of the estimate when a second variable is added to the model.

logistic

flag for logistic binomial regression or not (linear is then selected).


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