confounding: Identify potential confounders for one predictor of interest

Description Usage Arguments Value References See Also

View source: R/confounding.R

Description

Generic function to dectect potential confounders for one predictor of interest no matter the outcome varible and predictor of interest are continuous or categorical.

Usage

1
confounding(x, y, dat)

Arguments

x

a vector of data values that contains the predictor of interest

y

a vector of data values that contains outcome varible

dat

a data frame, list or environment (or object coercible by as.data.frame to a data frame) containing the predictor of interest, outcome varible and all the covariates

Value

It returns a list that contains the suggested potential confounders.

References

Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.

See Also

lm

glm


YuweiNi45/lng documentation built on May 30, 2018, 7:23 p.m.