Skip to contents

Standardises X and y to zero mean and unit variance before OLS via stats::lm.

Usage

standardized_coefficients(X, y)

Arguments

X

Predictor matrix or data.frame (n x p).

y

Outcome vector.

Value

A data.frame with columns variable, beta, se, t, p_value.