OLSw: Compute OLS with arbitrary vector of weights (possibly...

View source: R/causalFns.R

OLSwR Documentation

Compute OLS with arbitrary vector of weights (possibly negative)

Description

Compute OLS with arbitrary vector of weights (possibly negative)

Usage

OLSw(y, X, w)

Arguments

y

Response vector

X

A numeric data matrix

w

vector of weights (same length as y)

Value

Regression vector beta of length ncol(X).


apoorvalal/LalRUtils documentation built on Sept. 22, 2023, 5:53 p.m.