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

Constants in call to cv.plsR #6

Open
vdhanda opened this issue Jun 10, 2020 · 0 comments
Open

Constants in call to cv.plsR #6

vdhanda opened this issue Jun 10, 2020 · 0 comments

Comments

@vdhanda
Copy link

vdhanda commented Jun 10, 2020

Consider this call:
cv.plsr.res=cv.plsR(formula = y ~ ., data= my_data, scaleX = T, scaleY = T, nt=5, K=5, NK = 1)
summary.cv.plsRmodel(cv.plsr.res, verbose=F)
It works as expected.

Now consider:
nt_val = 5
And use nt_val instead of the value '5'
cv.plsr.res=cv.plsR(formula = y ~ ., data= my_data, scaleX = T, scaleY = T, nt=nt_val, K=5, NK = 1)
summary.cv.plsRmodel(cv.plsr.res, verbose=F)
gives an error. The 'offending' code is in:
kfolds2CVinfos_lm
nt <- as.numeric(as.character(pls_kfolds$call["nt"]))

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