Skip to content

Was someone able to find a solution? #131

@holycoding245

Description

@holycoding245

Hi

I had a similar problem. I used the following code:

setup = panel.matrices(as.data.frame(as_tibble(dt, unit='ID',time='Year',outcome = '万人绿色专利申请量',treatment = 'treatment')))

But the results told me:

"Error in panel.matrices(as.data.frame(as_tibble(dt, unit = "ID", time = "Year", :

The treatment status should be in 0 or 1."

I'm sure my "treatment" contains only 0s and 1s, no nulls. Also, I changed the "treatment" to int type.

So, what should I do for the best?

data.xlsx

Originally posted by @Leoday27 in #102

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions