Git Product home page Git Product logo

plsvarsel's People

Contributors

khliland avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

plsvarsel's Issues

WVC_pls weighting factor

Hi,

I was testing the function WVC_pls and the weighting factor in code is equal to : $\alpha_a = \frac{w_a^T X_a^T Y_a q_a}{w_a^T X_a^T X_a w_a}$. However, in the research article it says that it uses $\alpha_a = \frac{w_a^T X_a^T Y_a q_a}{w_a^T X_a^T Y_a w_a}$.

I would like to know which of the two weighting factor was used for simulation in that article.

Thank you!

sMC - returned values (qf and F-test values)

Hi Kristian. A suggestion:
##plsVarSel::sMC function function (pls.object, opt.comp, X, alpha_mc = 0.05) { b <- pls.object$coefficients[, 1, opt.comp] X <- unclass(as.matrix(X)) n <- dim(X)[1] yhat <- X %*% b Xhat <- tcrossprod(yhat, b)/crossprod(b)[1] Xresidual <- X - Xhat SSCregression <- colSums(Xhat^2) SSResidual <- colSums(Xresidual^2) MSCregression <- SSCregression MSResidual <- SSResidual/(n - 2) smcF <- MSCregression/MSResidual smcFcrit <- qf(1 - alpha_mc, 1, n - 2) attr(smcF, "quantile") <- smcFcrit smcF }
I reckon it will not be clear to many users that the sMC function returns the F-values (of each variable) and the critical (threshold F-value).
In other words, most will assume that the value returned is the p-value of the F-test.
It would be worthwhile to add to the documentation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.