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

object 'km.apparent' not found #1

Open
hjfischerk opened this issue Sep 30, 2021 · 0 comments
Open

object 'km.apparent' not found #1

hjfischerk opened this issue Sep 30, 2021 · 0 comments

Comments

@hjfischerk
Copy link

Hello,

I'm not sure if this is due to something I am doing, but I am trying to follow along with the example from your Journal of Statistical Software paper, but I am using my own dataset as the one in the paper seems to not be available. I hit a problem when I try to use peperr to create prediction error curves with this code:

obj <- peperr(response = Surv(sample$fu_time, sample$outcome),
x = mat, fit.fun = fit.glmnet,
args.fit = list(standardize = FALSE, family = "cox",
penalty.factor = rep(1, times = c(dim(mat)[1]))),
complexity = complexity.glmnet,
args.complexity = list(standardize = FALSE, nfolds = 10,
family = "cox", penalty.factor = rep(1, times = c(dim(mat)[1]))),
RNG = "fixed", seed = 0815, cpus = 3, parallel = TRUE,
clustertype = "SOCK", load.list = list(packages = "c060"),
indices = resample.indices(n = dim(mat)[2], sample.n = 1000,
method = "sub632"))

which is just the code you provide on pages 10-11 of the manuscript, modified to reflect my dataset. When I run this I get the following error:

Explicit sfStop() is missing: stop now.
snowfall 1.84-6.1 initialized (using snow 0.4-3): parallel execution on 3 CPUs.

Library peperr loaded.
Library peperr loaded in cluster.

Library c060 loaded.
Library c060 loaded in cluster.

Error in checkForRemoteErrors(val) : 
  3 nodes produced errors; first error: object 'km.apparent' not found

I've tried this on Mac and a Linux RHEL7 server and got the same error - and I guess km.apparent is an internal function because I can't find it when I google. Can someone help me understand what is going on? Please let me know if you need additional information and thank you so much!

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