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

can't run the example in vignette #6

Open
YushuShi opened this issue Aug 4, 2021 · 1 comment
Open

can't run the example in vignette #6

YushuShi opened this issue Aug 4, 2021 · 1 comment

Comments

@YushuShi
Copy link

YushuShi commented Aug 4, 2021

I tried to run the example in the vignette, it gives me the error

library(trac)
names(sCD14)
set.seed(123)
ntot <- length(sCD14$y)
n <- round(2/3 * ntot)
tr <- sample(ntot, n)
log_pseudo <- function(x, pseudo_count = 1) log(x + pseudo_count)
ytr <- sCD14$y[tr]
yte <- sCD14$y[-tr]
ztr <- log_pseudo(sCD14$x[tr, ])
zte <- log_pseudo(sCD14$x[-tr, ])
fit <- trac(ztr, ytr, A = sCD14$A, min_frac = 1e-2, nlam = 30)

Error in diag(1/w[[iw]]) %*% delta : non-conformable arguments

@jacobbien
Copy link
Owner

Thanks @YushuShi for pointing this out. We believe we've resolved this issue in commit 392a209. Please let us know if this still doesn't work for you.

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

2 participants