lm_xy: lm for cont x and y

Description Usage Arguments Value

Description

when x is categorical, lm p value is equivalent to ANOVA p value. Coef becomes the mean; Rsquare?

Usage

1
lm_xy(x, y, collapse = TRUE)

Arguments

x

continuous vector

y

continuous vector

collapse

when vec is non-numeric which will be treated as factor, there are multiple coefs for different levels. We thus need to summarize them into a scaler (by mean). if collapse=FALSE, all coefs will be returned.

Value

a named vector


nickytong/GenAnalysis documentation built on July 20, 2019, 8:57 a.m.