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

Handle multiple observations from same id and wave gracefully #13

Open
jacob-long opened this issue May 22, 2019 · 0 comments
Open

Handle multiple observations from same id and wave gracefully #13

jacob-long opened this issue May 22, 2019 · 0 comments

Comments

@jacob-long
Copy link
Owner

This is very cool. Working on a package for cleaning panel data; I'll add a function to convert the result to a panel_data object.

Quick note: if I give it multiple observations per id, it lets me convert to panel_data without error, but then lag doesn't work properly pic.twitter.com/K7eVyHeXNr

— Nick HK (@NickCHK) May 21, 2019

Interesting use case. I should probably think about a way for users to communicate additional grouping levels like this. I wonder if the "right" way is to have an ID that is a unique combination of student and subject.

— Jacob Long (@jacobandrewlong) May 21, 2019

That doesn't quite work because if I want, say, last period cumulative GPA but you didn't take that subject last term it will give a NA incorrectly. Lag is poorly defined here, should probably give an error on declaring the object

— Nick HK (@NickCHK) May 21, 2019

That might be the safest method to avoid silently giving wrong results. Then the user can calculate group mean statistics at the student level before creating the panel_data object using id-subject as the panel ID, forcing the user to make these decisions explicitly

— Jacob Long (@jacobandrewlong) May 21, 2019
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

1 participant