0

I recently encountered an issue with multilevLCA that I suspect may be related to the latest package update. Until a couple of days ago, running multilevLCA 2.0.1 locally on RStudio worked like a charm. After updating to version 2.1.0, the same code now throws the following error:

Error: pinv(): svd failed

I even tried running the example provided by Lyrvall et al (2024), and the error persists. Interestingly, downgrading to version 2.0.1 did not resolve the issue, so I initially suspected a local machine problem. However, testing the same code on Posit Cloud and Google Colab also results in the same error. ChatGPTing for solutions was unfruitful, really.

Here is the example from Lyrvall et al I ran:

library(multilevLCA)
data("dataIEA")
data = dataIEA
Y = colnames(dataIEA)[5:16]
iT = 3
out = multiLCA(data, Y, iT)

Output:

Discarding rows with missing values for any indicator...
Fitting measurement model...
Error: pinv(): svd failed

Has anyone else encountered this issue and/or is aware of a fix/workaround?

In advance: thank you very much for time and support!

My local machine session info.

R version 4.5.1 (2025年06月13日)
Platform: aarch64-apple-darwin20
Running under: macOS Sequoia 15.6.1
2
  • 2
    All packages on CRAN have a maintainer listed: CRAN.R-project.org/package=multilevLCA. If you believe this was a bug introduced by the newest version, I suggest you contact them since it's likely something they will need to fix in the package. Commented Oct 27, 2025 at 14:34
  • 1
    Hi all, quick update and perhaps valuable information for others. I reached out to the maintainer who responded that they are currently trying to fix the issue and are closing in. Seems related to updates in dependencies. Thanks again, @MrFlick. Commented Oct 28, 2025 at 8:00

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.