Skip to content

I() in LHS #17

@tappek

Description

@tappek

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions