resEst: Residual estimate after subtracting the linear main effect

Description Usage Arguments Value Author(s)

View source: R/InitialEst.R

Description

calculate the residual after subtracting the linear main effect

Usage

1
resEst(X,R,p)

Arguments

X

n by p input matrix.

R

a vector of outcome variable, larger is more desirable.

p

a vector of probability of P(A|X) for each observation.

Value

It returns the residual in psi-Learn

res

the residual in psi-Learn

Author(s)

MingyangLiu <[email protected]>


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