lmWithCov: Uses covariance/correlation matrix for calculate OLS
Description
Calculate regression coefficients and \(R^2\) for an OLS regression.
Could be used with dominanceAnalysis to
perform a dominance analysis without the original data.
Usage
lmWithCov(f, x)
Value
coef
regression coefficients
r.squared
\(R^2\) or coefficient of determination
formula
formula provided as parameter
cov
covariance/correlation matrix provided as parameter