You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Warning in ds.glmerSLMA: "number of items to replace is not a multiple of replacement length" #655
"number of items to replace is not a multiple of replacement length"
when different studies return different numbers of coefficients.
The function completes successfully; the warning comes from internal matrix assignment (betamatrix[,k] <- ...).
Padding shorter vectors with NA resolves it.
Description
While running the unit tests for dsBaseClient (e.g., test-smk-ds.glmerSLMA.R), the following warnings are observed:
Warning ('test-smk-ds.glmerSLMA.R:106:5'): check slope formulae - 1
number of items to replace is not a multiple of replacement length
Backtrace:
1. dsBaseClient::ds.glmerSLMA(...) at test-smk-ds.glmerSLMA.R:106:5
Warning ('test-smk-ds.glmerSLMA.R:178:5'): check slope formulae - 2
number of items to replace is not a multiple of replacement length
Backtrace:
1. dsBaseClient::ds.glmerSLMA(...) at test-smk-ds.glmerSLMA.R:178:5
These warnings occur even when the function completes successfully, and seems to originate from the internal assignment of coefficients into matrices:
Activity
StuartWheater commentedon Mar 4, 2026
Same warning is generated by ds.lmerSLMA
Warning (test-smk-ds.glmerSLMA.R:106:5): check slope formulae - 1
number of items to replace is not a multiple of replacement length
Backtrace:
▆
Warning (test-smk-ds.glmerSLMA.R:178:5): check slope formulae - 2
number of items to replace is not a multiple of replacement length
Backtrace:
▆
Warning (test-smk-ds.lmerSLMA.R:108:5): check slope formulae
number of items to replace is not a multiple of replacement length
Backtrace:
▆
Warning (test-smk-ds.lmerSLMA.R:108:5): check slope formulae
number of items to replace is not a multiple of replacement length
Backtrace:
▆
Warning (test-smk-ds.lmerSLMA.R:180:5): check slope formulae
number of items to replace is not a multiple of replacement length
Backtrace:
▆
Warning (test-smk-ds.lmerSLMA.R:180:5): check slope formulae
number of items to replace is not a multiple of replacement length
Backtrace:
▆