Description Usage Arguments Value Author(s)

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.

1 | ```
MainEff(X,A,p)
``` |

`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. |

It returns the main effects estimated using weighted linear regression.

`fitval` |
the estimated main effects |

MingyangLiu <[email protected]>

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.