Learn R Programming

rddtools (version 1.6.0)

rdd_coef: RDD coefficient

Description

Function to access the RDD coefficient in the various regressions

Usage

rdd_coef(object, allInfo = FALSE, allCo = FALSE, ...)

# S3 method for default rdd_coef(object, allInfo = FALSE, allCo = FALSE, ...)

# S3 method for rdd_reg_np rdd_coef(object, allInfo = FALSE, allCo = FALSE, ...)

Arguments

object

A RDD regression object

allInfo

whether to return just the coefficients (allInfo=FALSE) or also the se/t stat/pval.

allCo

Whether to give only the RDD coefficient (allCo=FALSE) or all coefficients

Further arguments passed to/from specific methods

Value

Either a numeric value of the RDD coefficient estimate, or a data frame with the estimate, its standard value, t test and p-value and