Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

format_parameters() edge cases #502

Open
strengejacke opened this issue May 26, 2021 · 2 comments
Open

format_parameters() edge cases #502

strengejacke opened this issue May 26, 2021 · 2 comments
Labels
Bug 🐛 Something isn't working

Comments

@strengejacke
Copy link
Member

library(plm)
data("EmplUK", package = "plm")

## Arellano and Bond (1991), table 4 col. b 
z1 <- pgmm(log(emp) ~ lag(log(emp), 1:2) + lag(log(wage), 0:1)
           + log(capital) + lag(log(output), 0:1) | lag(log(emp), 2:99),
           data = EmplUK, effect = "twoways", model = "twosteps")

parameters::format_parameters(z1)
#>             lag(log(emp), 1:2)1             lag(log(emp), 1:2)2 
#>    "lag(emp [lag(log, 1] * 2)1"    "lag(emp [lag(log, 1] * 2)2" 
#>            lag(log(wage), 0:1)0            lag(log(wage), 0:1)1 
#>   "lag(wage [lag(log, 0] * 1)0"   "lag(wage [lag(log, 0] * 1)1" 
#>                    log(capital)          lag(log(output), 0:1)0 
#>                 "capital [log]" "lag(output [lag(log, 0] * 1)0" 
#>          lag(log(output), 0:1)1                            1979 
#> "lag(output [lag(log, 0] * 1)1"                          "1979" 
#>                            1980                            1981 
#>                          "1980"                          "1981" 
#>                            1982                            1983 
#>                          "1982"                          "1983" 
#>                            1984 
#>                          "1984"

Created on 2021-05-26 by the reprex package (v2.0.0)

@strengejacke strengejacke added the Bug 🐛 Something isn't working label May 26, 2021
@strengejacke
Copy link
Member Author

the "formatting" is messed up here, due to the special transformation of parameters.

@strengejacke
Copy link
Member Author

(see #501 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant