MainEff: main effects estimate in psiLearn

Description Usage Arguments Value Author(s)

Description

Suppose the main effects is linear, then return the fitted values in the weighted linear regression which is the main effects. Then the residual will be the interaction effects between the treatment and the "reward" plus the zero mean random effects.

Usage

1
MainEff(X,A,p)

Arguments

X

n*p input matrix.

A

a vector of n entries coded 1 and -1 for the treatment assignments.

R

a vector of outcome variable, larger is more desirable.

Value

It returns the main effects estimated using weighted linear regression.

fitval

the estimated main effects

Author(s)

MingyangLiu <liux3941@umn.edu>


mylzwq/psi-learning-for-ITR documentation built on May 15, 2019, 1:18 p.m.