Description Usage Arguments Value
Transfer Panel Data
1 | dt_gen_panel(regdata, indx = c("id", "year"), s = 1, plag = 1, yname = FALSE)
|
regdata |
a data frame, either a time series or panal data |
indx |
if |
s |
a horizon in local projections, default is 1. |
plag |
lag order of VAR. |
yname |
logical, whether return the name of dependent variables. |
if yname
is FALSE, return a data.frame include indepedent variables and
depedent variables in VAR. If yname
is TRUE, returen a list, the 1st element is
data.frame, the 2nd element is names of dependent variables.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.