LPPData: Class Constructor for LPPData

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Convert data to standardized format for use with low-level functions. If the point for which to do inference is non-zero, shift the independent variable so that it is at zero.

Usage

1
LPPData(d, point)

Arguments

d

data frame with first column corresponding to outcome variable, second column corresponding to independent variable and optionally a column called "(sigma2)" that corresponds to the conditional variance of the outcome (or an estimate of the conditional variance)

point

specifies the point at which to calculate conditional mean

Value

An object of class "LPPData", which is a list containing the following components:

Y

Outcome vector

X

Independent variable

sigma2

Conditional variance of outcome

orig.point

Original point

itemvar.namesNames of outcome and independent variable in supplied data frame

Examples

1
2
## Transform Lee data
d <- RDData(lee08[lee08$margin>0, ], cutoff=0)

kolesarm/RDHonest documentation built on April 3, 2018, 11:08 a.m.