`format_parameters()` edge cases
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the parameters::format_parameters(z1) example from the issue with the plm package and EmplUK data. Inspect how the displayed lag() and log() expressions are formatted, then use the issue's expected edge-case behavior to define corrected parameter labels and verify the output no longer contains malformed expressions.
Written by the indexing model from the issue text.
Description
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)
- Dominant language
- R
- Stars
- 499
- Forks
- 45
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from easystats/parameters
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
easystats/parameters#1254 ·
-
easystats/parameters#1248 · 1 assignee ·
-
Consistency :green_apple: :apple:
Difficulty 3/5 1-2 days Newbie friendliness 55/100
easystats/parameters#1247 ·
-
Bug :bug:
Difficulty 4/5 3-5 days Newbie friendliness 56/100
easystats/parameters#1243 · 2 comments ·
-
3 investigators :grey_question::question: Bug :bug:
Difficulty 4/5 3-5 days Newbie friendliness 35/100
easystats/parameters#1242 · 1 comment ·
All issues in easystats/parameters
Similar issues
-
documentation pkg infrastructure
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
epiverse-trace/epiparameter#511 ·
-
function:write_dwc
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
r-lib/pkgdepends#485 · 3 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
beginners blocker
Difficulty 2/5 1-3 hours Newbie friendliness 78/100