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

I() in LHS #17

Closed
tappek opened this issue Feb 22, 2022 · 1 comment
Closed

I() in LHS #17

tappek opened this issue Feb 22, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@tappek
Copy link
Collaborator

tappek commented Feb 22, 2022

I() in the LHS can lead to an error. See below reproducible example

data(Produc)
fm1 <-   diff(log(gsp))  ~ log(pcap) + log(pc) + log(emp)
fm2 <- I(diff(log(gsp))) ~ log(pcap) + log(pc) + log(emp)

plm(fm1, Produc) # runs
plm(fm2, Produc) # errors
## plm version 2.2-5
# Error in is.pbalanced.default(x) :
#   argument "y" is missing, with no default

## plm version 2.6-0
# Error in fwithin.default(x, g = effect, w = NULL, na.rm = na.rm) :
#   length(g) must match nrow(X)
@tappek tappek closed this as completed in da97eb1 Feb 23, 2022
@tappek
Copy link
Collaborator Author

tappek commented Feb 23, 2022

fixed in commit 6d9ea4a
fixed in 2.6-1 on CRAN as of 2022-03-05

@tappek tappek added the bug Something isn't working label Feb 23, 2022
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