This folder contains the master script used for the specification curve analysis, it's underlying functions, and the corresponding codebook. The third file 'Scale_Construction_CFA' contains the code for the CFAs and the corresponding codebook.
It may be easier to download the whole 'Contact_Social_Change_Code_and_Data'.zip, and unzip to local hard drive. This maintains the file structure, the data, and the corresponding codebooks. Within the file structure are .R script files to reproduce the CFAs, specification curve analyses, and the cross-validation.