Learn R Programming

RegCombin (version 0.4.1)

summary_regCombin: Produce the final summary table for the output of the felogit function

Description

Produce the final summary table for the output of the felogit function

Usage

summary_regCombin(output, format = NULL)

Value

a kableExtra or xtable table plotted respectively in the R viewer or terminal

Arguments

output

the output of the felogit function

format

can take value "latex" to print the latex table

Examples

Run this code

### Simulating according to this DGP
n=200
Xnc_x = rnorm(n,0,1.5)
Xnc_y = rnorm(n,0,1.5)
epsilon = rnorm(n,0,1)

## true value
beta0 =1
Y = Xnc_y*beta0 + epsilon
out_var = "Y"
nc_var = "Xnc"

# create the datasets
Ldata<- as.data.frame(Y)
colnames(Ldata) <- c(out_var)
Rdata <- as.data.frame(Xnc_x)
colnames(Rdata) <- c(nc_var)


############# Estimation #############
output <- regCombin(Ldata,Rdata,out_var,nc_var)
mat = summary_regCombin(output)

Run the code above in your browser using DataLab