confounding: Identify potential confounders for one predictor of interest

Description Usage Arguments Value References See Also

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 12, 2019, 6:26 p.m.