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

Return same table type as passed in predict #571

Open
andreasnoack opened this issue Nov 20, 2024 · 0 comments
Open

Return same table type as passed in predict #571

andreasnoack opened this issue Nov 20, 2024 · 0 comments

Comments

@andreasnoack
Copy link
Member

Opening a separate issue for this such that we can make a decision before cutting a 2.0 release. See also prior discussion #174 (comment). Right now

data = DataFrame(X=[1,2,3], Y=[2,4,7])

OLS = glm(@formula(Y ~ X), data, Normal(), IdentityLink())

newX = DataFrame(X=[2,3,4])

predict(OLS, newX; interval = :confidence)

returns a NamedTuple. It might be possible to generically return the same table type as passed.

cc @nalimilan

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

No branches or pull requests

1 participant