Description Usage Arguments Value
View source: R/reg_flextable.R
Generate Regression Table
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | reg.flextable(
...,
robust = NULL,
dep.var.caption = NULL,
dep.var.caption.separate = NULL,
column.labels = NULL,
column.separate = NULL,
keep = NULL,
omit = NULL,
order = NULL,
covariate.labels = NULL,
df = TRUE,
digits = 2,
notes = NULL,
font.size = 12,
autofit = TRUE,
covariate.width = 1.5,
reg.width = 1,
minor.change,
star = c("*", "**", "***"),
keep.stat = c("n")
)
|
... |
list of regressions which extract regression stats |
robust |
list of regressions which extract regression coefficients |
dep.var.caption |
a character vector of captions for dependent variables in regression tables. |
dep.var.caption.separate |
a numeric vector that specifies how dep.var.caption should be laid out across regression table columns. |
column.labels |
a character vector of labels for columns in regression tables. Their layout, in terms of the number of columns associated with each label, is given by the argument column.separate. |
column.separate |
a numeric vector that specifies how column.labels should be laid out across regression table columns. A value of c(2, 1, 3), for instance, will apply the first label to the two first columns, the second label to the third column, and the third label will apply to the following three columns (i.e., columns number four, five and six). |
keep |
a vector of regular expressions that specifies which of the explanatory variables should be kept in the table. |
omit |
a vector of regular expressions that specifies which of the explanatory variables should be omitted in the table. |
order |
a vector of numerical indexes that indicates the order in which variables will appear in the output. |
covariate.labels |
a character vector of labels for covariates in regression tables. A value of NA for any element means that stargazer will print the corresponding variable name. |
df |
a logical value that indicates whether the degrees of freedom of model statistics should be reported. |
digits |
an integer that indicates how many decimal places should be used. |
notes |
a character vector containing notes to be included below the table. |
font.size |
an integer that specifies the font size used in the table. |
autofit |
a logical value that indicates whether autofit function in flextable works (Strongly recommend TRUE) |
covariate.width |
a numeric value of width of covariate column (inches) |
reg.width |
a numeric value of width of regression column (inches) |
minor.change |
a function that change specific style of table |
star |
a character vector symbols representing statistically significance at 10%, 5%, and 1% level |
keep.stat |
a character vector that specifies which model statistics should be kept in the regression table output. For instance keep.stat = c("n","adj.rsq") will produce a table that only includes statistics for the number of observations and Adjusted R-squared. |
object "flextable" with regression table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.