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

Plot method not working for ggmix_gic with new x #16

Open
sahirbhatnagar opened this issue Mar 6, 2020 · 0 comments
Open

Plot method not working for ggmix_gic with new x #16

sahirbhatnagar opened this issue Mar 6, 2020 · 0 comments

Comments

@sahirbhatnagar
Copy link
Owner

Plot method not working for ggmix_gic when provided a newx such as xtest, because the ranef function uses the original x and y which is part of the ggmix_fit object in the hdbic object.
Need to look at ranef probably

devtools::load_all()
#> Error: No root directory found in /tmp/RtmpTPIS1a/reprex531e1a1ee626 or its parent directories. Root criterion: contains a file `DESCRIPTION`
data("admixed")
#> Warning in data("admixed"): data set 'admixed' not found
fit <- ggmix(x = admixed$xtrain, 
             y = admixed$ytrain, 
             kinship = admixed$kin_train)
#> Error in ggmix(x = admixed$xtrain, y = admixed$ytrain, kinship = admixed$kin_train): could not find function "ggmix"
hdbic <- gic(fit)
#> Error in gic(fit): could not find function "gic"
plot(hdbic, type = "predicted", newx = admixed$xtest, newy = admixed$ytest)
#> Error in plot(hdbic, type = "predicted", newx = admixed$xtest, newy = admixed$ytest): object 'hdbic' not found

Created on 2020-03-06 by the reprex package (v0.3.0)

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