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

panel.matrices #114

Open
zjwait0927 opened this issue Dec 17, 2023 · 1 comment
Open

panel.matrices #114

zjwait0927 opened this issue Dec 17, 2023 · 1 comment

Comments

@zjwait0927
Copy link

Hi, I'm using this code with my own data,but now there exists a error:
data <-read_excel("XX.xlsx")
setup = panel.matrices(data)

but there exists a error
Error in panel.matrices(data) :
There is no variation in treatment status.

In my own data,there exists 0 or 1 in treated column,then how can i resolve this bug? Thank you!

@jonbaur
Copy link

jonbaur commented Dec 22, 2023

I had the same issue and then found out that my data frame was actually a tibble. Use the command str() to find out if that's an issue for you as well. I just converted it to a data frame with as.data.frame().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants