MainEff: main effects estimate in psiLearn

Description Usage Arguments Value Author(s)

View source: R/InitialEst.R

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 <[email protected]>


mylzwq/psi-learning-for-ITR documentation built on Sept. 23, 2018, 12:56 a.m.