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

ModelCustom's S3 predict method is not working #87

Open
1 task
asiripanich opened this issue Aug 12, 2020 · 0 comments
Open
1 task

ModelCustom's S3 predict method is not working #87

asiripanich opened this issue Aug 12, 2020 · 0 comments
Milestone

Comments

@asiripanich
Copy link
Member

asiripanich commented Aug 12, 2020

ModelBinaryChoice, ModelMultinomialLogit, ModelLinear still need a little more work.

  • If the LHS of the formula is missing from newdata then the predict method won't work. This can be fixed by omitting the LHS variable in model.matrix which is possible with the Formula package.
form <- Formula::Formula(sex ~ age + marital_status)
mm <- model.matrix(form, toy_individuals, lhs = 0)
@asiripanich asiripanich added this to the v0.2.0 milestone Dec 1, 2020
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