Package ‘lavaan.survey’ was removed from the CRAN repository.

1,352 views
Skip to first unread message

Lincoln choudhry

unread,
Aug 20, 2023, 1:27:06 AM8/20/23
to lavaan
I wanted to use the lavvan.survey package. However, it is removed from the repository. 

Please guide on alternate packages or ways to incorporate survey design in SEM

Looking forward to kind response

Regards
Lincoln 

Terrence Jorgensen

unread,
Sep 15, 2023, 6:35:29 AM9/15/23
to lavaan
CRAN is telling you where you can find the package:  https://cran.r-project.org/package=lavaan.survey
Download the latest version, say, to your ~/Downloads folder, then install directly from that source file.  Or you can install from the 

install.packages("~/Downloads/lavaan.survey_1.1.3.1.tar.gz", type = "source", repos = NULL)

But lavaan itself can now handle both survey weights and clustering (read arguments on ?lavaan help page).  However, it does not account for sampling strata.

Terrence D. Jorgensen
Assistant Professor, Methods and Statistics
Research Institute for Child Development and Education, the University of Amsterdam

Stas Kolenikov

unread,
Sep 15, 2023, 12:22:01 PM9/15/23
to lav...@googlegroups.com
One other aspect of the complex survey designs that library(survey) accounts for is weight calibration (survey::calibrate() or survey::rake()).

Do you know what broke in `lavaan.survey`? Of course there's new stuff in R 4.3.1... but looking at the error output, my sense is that the test results matched an exact expected number on Mac but failed on Linux and Windows. It may be a matter of relaxing tolerance for accuracy; see https://testthat.r-lib.org/reference/equality-expectations.html.

-- Stas Kolenikov, PhD, PStat (ASA, SSC)  @StatStas 
-- Principal Statistician, NORC @NORCnews
-- Opinions stated in this email are mine only, and do not reflect the position of my employer
-- http://stas.kolenikov.name
 


--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lavaan/a240d811-f02d-499d-9b29-50ff7693815bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages