Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upwarning of rankMatrix() in df2lambda() #24
Comments
|
Thanks! There is another code-line giving the same warning as rankMatrix() is used: |
For the computation of
df2lambdathe rank of the design matrix is computed, seehttps://github.com/hofnerb/mboost/blob/master/pkg/mboostPatch/R/bl.R#L9
and
https://github.com/hofnerb/mboost/blob/master/pkg/mboostPatch/R/bkronecker.R#L57
In the case that 'p>n', one gets a warning that the rank is computed for t(x) instead of x:
I think it would be better to suppress the warning, by setting
or by checking whether
nrow(X) < ncol(X)and then supplying,t(X)instead ofX, see the help of?rankMatrixargumentwarn.t.(As the warning occurs for each base-learner with 'p<n' it can get kind of annoying for models with many base-learners, especially when using
cvrisk()on the model.)In the following a small example for the warning: