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

evppi_lrmm: requires data frame #3

Open
David-rios opened this issue Aug 18, 2020 · 0 comments
Open

evppi_lrmm: requires data frame #3

David-rios opened this issue Aug 18, 2020 · 0 comments

Comments

@David-rios
Copy link

evppi_lrmm documents state require matrix or vector, but GAM needs data frame to run. Reproducible example:

library(dampack)
df_PSA <- data.frame(age = runif(100, min = 0 , max = 100),
                     utilities = runif(10))

nmb1 <- cbind("strat1" = runif(100),
              "strat2" = runif(100))

dampack::evppi_lrmm(nmb =nmb1,params = df_PSA,sel.params =  1:dim(df_PSA)[2])
evppi 
  0.1 
dampack::evppi_lrmm(nmb =nmb1,params = as.matrix(df_PSA),sel.params =  1:dim(df_PSA)[2])
Error in model.frame.default(formula = Loss[, d] ~ 1 + age + utilities +  : 
  'data' must be a data.frame, not a matrix or an array
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