Learn R Programming

sreg (version 2.0.1)

print.sreg: Print sreg Objects

Description

Print the summary table of estimation results for sreg objects.

Usage

# S3 method for sreg
print(x, ...)

Value

No return value, called for side effects.

Arguments

x

An object of class sreg.

...

Additional arguments passed to other methods.

Examples

Run this code
data <- sreg.rgen(n = 200, tau.vec = c(0.1), n.strata = 4, cluster = TRUE)
Y <- data$Y
S <- data$S
D <- data$D
X <- data.frame("x_1" = data$x_1, "x_2" = data$x_2)
result <- sreg(Y, S, D, G.id = NULL, Ng = NULL, X)
print(result)

Run the code above in your browser using DataLab