[R] EFA with Complex Survey Data (Incl. Replicate Weights)

Lybrya Kebreab Lybry@@Kebre@b @end|ng |rom uc|@edu
Sun Apr 3 17:36:54 CEST 2022


Hello Mr. Damico,

Thank you so much! I will work with my advisor and try this. Really appreciate your help. 😊

Sincerely,

Lybrya Kebreab
Doctoral Candidate
Education-Mathematics Education Track
School of Teacher Education
College of Community Innovation and Education
University of Central Florida


From: Anthony Damico <ajdamico using gmail.com>
Date: Saturday, April 2, 2022 at 4:14 PM
To: Lybrya Kebreab <Lybrya.Kebreab using ucf.edu>
Cc: r-help using r-project.org <r-help using r-project.org>
Subject: Re: [R] EFA with Complex Survey Data (Incl. Replicate Weights)
hi!  after loading the survey library, i believe you might want to create a `svrepdesign()` object that matches the SAS syntax published here?

https://nces.ed.gov/surveys/hsls09/pdf/2011328_1.pdf#page=174<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnces.ed.gov%2Fsurveys%2Fhsls09%2Fpdf%2F2011328_1.pdf%23page%3D174&data=04%7C01%7CLybrya.Kebreab%40ucf.edu%7C5e98bbea7fef4b603c7a08da14e56257%7Cbb932f15ef3842ba91fcf3c59d5dd1f1%7C0%7C1%7C637845272695458770%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=3lwAHPrQyr2PkOWXRiyDadxRoRLLub7hC4%2FYRG61RmQ%3D&reserved=0>

...not sure if you need combined.weights = FALSE option added to the svrepdesign() call, but it looks like your complex survey design should look roughly like this?

hsls09_design <- svrepdesign( data = data_frame_with_hsls09 , type="BRR", weights = ~w1student , repweights="w1student[0-9]+" )

from there, you could look to the examples posted on the ?svyfactanal help page and use your design=hsls09_design rather than the example dataset design=dclus1












On Fri, Apr 1, 2022 at 4:14 AM Lybrya Kebreab <Lybrya.Kebreab using ucf.edu<mailto:Lybrya.Kebreab using ucf.edu>> wrote:
Hello,


I am a doctoral student, completing my dissertation using the public HSLS2009 survey data. I am interested in running an exploratory factor analysis (EFA) and need to apply both the child weight and replicate weights. I found some information on applying weights in EFA (https://r-survey.r-forge.r-project.org/survey/html/svyfactanal.html<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fr-survey.r-forge.r-project.org%2Fsurvey%2Fhtml%2Fsvyfactanal.html&data=04%7C01%7CLybrya.Kebreab%40ucf.edu%7C5e98bbea7fef4b603c7a08da14e56257%7Cbb932f15ef3842ba91fcf3c59d5dd1f1%7C0%7C1%7C637845272695458770%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=gXuKjEGIzQDGmgeUDnnJFywgICCRGXhpeqDTLuSf0WE%3D&reserved=0>), however I have not found information on how to apply multiple replicate weights. Can anyone please help me with a resource that can assist?

Thank you kindly,

Lybrya Kebreab
Doctoral Candidate
Education-Mathematics Education Track
School of Teacher Education
College of Community Innovation and Education
University of Central Florida


        [[alternative HTML version deleted]]

______________________________________________
R-help using r-project.org<mailto:R-help using r-project.org> mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-help&data=04%7C01%7CLybrya.Kebreab%40ucf.edu%7C5e98bbea7fef4b603c7a08da14e56257%7Cbb932f15ef3842ba91fcf3c59d5dd1f1%7C0%7C1%7C637845272695458770%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=XCBHuW1VvQIXx3vwFrfuncLd%2F6T8iYWxFORwHl5WKTM%3D&reserved=0>
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html<https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.r-project.org%2Fposting-guide.html&data=04%7C01%7CLybrya.Kebreab%40ucf.edu%7C5e98bbea7fef4b603c7a08da14e56257%7Cbb932f15ef3842ba91fcf3c59d5dd1f1%7C0%7C1%7C637845272695458770%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=H4qg5FZ2cOS8638OwyV26UBk1UtFV9JjMd2CkccaKFM%3D&reserved=0>
and provide commented, minimal, self-contained, reproducible code.

	[[alternative HTML version deleted]]



More information about the R-help mailing list