[R] error as in unused argument of a new package

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Sat Feb 26 08:57:46 CET 2022


On Fri, 25 Feb 2022 16:14:05 -0600
Tariq Khasiri <tariqkhasiri using gmail.com> wrote:

> CS_never_cond <- did::att_gt(yname="lemp",
>                              tname="year",
>                              idname="countyreal",
>                              gname="first.treat",
>                              #xformla=~1,
>                              xformla = xformla,
>                              control_group="nevertreated",
>                              data = min_wage,
>                              panel = TRUE,
>                              base_period="universal", # <-- here
>                              bstrap = TRUE,
>                              cband = TRUE)

> Error in did::att_gt(yname = "lemp", tname = "year", idname =
> "countyreal",  :
>  unused argument (base_period = "universal")

Does ?did::att_gt specify that the att_gt function accepts an
argument named "base_period" (marked by me with "# <-- here")?
If it does, it's a documentation error, contact maintainer('did') and
tell them about it. If it doesn't, you need to adjust your call to
did::att_gt to provide the correct arguments.

-- 
Best regards,
Ivan



More information about the R-help mailing list