- fml
Either a formula of the type var1 + ... + varN ~ treat
or
var1 + ... + varN ~ treat | post
. Either a data.frame/matrix containing
all the variables for which the means are to be computed (they must be numeric of course).
Both the treatment and the post variables must contain only exactly two values.
You can use a point to select all the variables of the data set: . ~ treat
.
- base
A data base containing all the variables in the formula fml
.
- treat_var
Only if argument fml
is not a formula. The vector identifying
the treated and the control observations (the vector can be of any type but must
contain only two possible values). Must be of the same length as the data.
- post_var
Only if argument fml
is not a formula. The vector identifying
the periods (pre/post) of the observations (the vector can be of any type but
must contain only two possible values). The first value (in the sorted sense)
of the vector is taken as the pre period. Must be of the same length as the data.
- tex
Should the result be displayed in Latex? Default is FALSE
. Automatically
set to TRUE
if the table is to be saved in a file using the argument file
.
- treat_dict
A character vector of length two. What are the names of the treated
and the control? This should be a dictionary: e.g. c("1"="Treated", "0" = "Control")
.
- dict
A named character vector. A dictionary between the variables names and an alias.
For instance dict=c("x"="Inflation Rate")
would replace the variable name x
by “Inflation Rate”.
- file
A file path. If given, the table is written in Latex into this file.
- replace
Default is TRUE
, which means that when the table is exported, the
existing file is not erased.
- title
Character string giving the Latex title of the table. (Only if exported.)
- label
Character string giving the Latex label of the table. (Only if exported.)
- raw
Logical, default is FALSE
. If TRUE
, it returns the information without formatting.
- indiv
Either the variable name of individual identifiers, a one sided formula,
or a vector. If the data is that of a panel, this can be used to track the number
of individuals per group.
- treat_first
Which value of the 'treatment' vector should appear on the left?
By default the max value appears first (e.g. if the treatment variable is a 0/1 vector,
1 appears first).
- prepostnames
Only if there is a 'post' variable. The names of the pre and post
periods to be displayed in Latex. Default is c("Before", "After")
.
- diff.inv
Logical, default to FALSE
. Whether to inverse the difference.