You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
additional_regressors: By default this is set to NULL.
But it seems by default it is missing, not NULL? See below.
Also, I would suggest removing the dependence on dplyr for this specific example, as subset() does the same here?
library(gravity)
#> Gravity 1.1#> If this package is useful, please support it. https://www.buymeacoffee.com/pacha.#> #> Attaching package: 'gravity'#> The following object is masked from 'package:stats':#> #> nls
data("gravity_no_zeros")
# Choose 5 countries for testingcountries_chosen<- c("AUS", "CHN", "GBR", "BRA", "CAN")
grav_small<- subset(gravity_no_zeros, iso_o%in%countries_chosen)
fit<- ppml(
dependent_variable="flow",
distance="distw",
data=grav_small
)
#> Error in ppml(dependent_variable = "flow", distance = "distw", data = grav_small): argument "additional_regressors" is missing, with no default
additional_regressors: By default this is set to NULL.
But it seems by default it is missing, not NULL? See below.
Also, I would suggest removing the dependence on dplyr for this specific example, as subset() does the same here?
library(gravity)
#> Gravity 1.1#> If this package is useful, please support it. https://www.buymeacoffee.com/pacha.#> #> Attaching package: 'gravity'#> The following object is masked from 'package:stats':#> #> nls
data("gravity_no_zeros")
# Choose 5 countries for testingcountries_chosen<- c("AUS", "CHN", "GBR", "BRA", "CAN")
grav_small<- subset(gravity_no_zeros, iso_o%in%countries_chosen)
fit<- ppml(
dependent_variable="flow",
distance="distw",
data=grav_small
)
#> Error in ppml(dependent_variable = "flow", distance = "distw", data = grav_small): argument "additional_regressors" is missing, with no default
According to
?ppml
,But it seems by default it is missing, not NULL? See below.
Also, I would suggest removing the dependence on
dplyr
for this specific example, assubset()
does the same here?Created on 2024-11-21 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: