<?xml version='1.0' encoding='UTF-8'?><codeBook xmlns="ddi:codebook:2_5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="ddi:codebook:2_5 https://ddialliance.org/Specification/DDI-Codebook/2.5/XMLSchema/codebook.xsd" version="2.5"><docDscr><citation><titlStmt><titl>R scripts for: Social Belonging, Mattering and NEET Status: Understanding Loneliness in Emerging Adulthood in Norway</titl><IDNo agency="DOI">doi:10.18710/JXSM22</IDNo></titlStmt><distStmt><distrbtr source="archive">DataverseNO</distrbtr><distDate>2026-06-01</distDate></distStmt><verStmt source="archive"><version date="2026-06-01" type="RELEASED">1</version></verStmt><biblCit>Bauger, Lars, 2026, "R scripts for: Social Belonging, Mattering and NEET Status: Understanding Loneliness in Emerging Adulthood in Norway", https://doi.org/10.18710/JXSM22, DataverseNO, V1</biblCit></citation></docDscr><stdyDscr><citation><titlStmt><titl>R scripts for: Social Belonging, Mattering and NEET Status: Understanding Loneliness in Emerging Adulthood in Norway</titl><IDNo agency="DOI">doi:10.18710/JXSM22</IDNo></titlStmt><rspStmt><AuthEnty affiliation="https://ror.org/05ecg5h20">Bauger, Lars</AuthEnty></rspStmt><prodStmt><producer affiliation="Department of Health, Social, and Welfare studies" abbr="USN">University of South-Eastern Norway</producer></prodStmt><distStmt><distrbtr source="archive">DataverseNO</distrbtr><distrbtr abbr="USN" URI="https://dataverse.no/dataverse/usn">University of South-Eastern Norway</distrbtr><contact affiliation="University of South-Eastern Norway" email="lars.bauger@usn.no">Lars Bauger</contact><depositr>Bauger, Lars</depositr><depDate>2026-05-26</depDate></distStmt><holdings URI="https://doi.org/10.18710/JXSM22"/></citation><stdyInfo><subject><keyword xml:lang="en">Medicine, Health and Life Sciences</keyword><keyword xml:lang="en">Social Sciences</keyword><keyword>Emerging adulthood</keyword><keyword>Loneliness</keyword><keyword>NEET</keyword><keyword>Mattering</keyword><keyword>R script</keyword></subject><abstract>This dataset contains two R scripts used for data preparation and statistical analysis in the study "Social Belonging, Mattering and NEET Status: Understanding Loneliness in Emerging Adulthood in Norway" (Bauger, in press). The scripts reproduce all descriptive statistics, LOESS figures, correlation matrices, and regression models reported in the manuscript. Analyses are based on data from the Norwegian Counties Public Health Survey (NCPHS, 2021) among respondents aged 18–29 (N = 3,933; regression model N = 3,783). The underlying survey data are not included and must be obtained separately through a formal application to the Norwegian Institute of Public Health (NIPH/FHI)</abstract><sumDscr/></stdyInfo><method><dataColl><sources/></dataColl><anlyInfo/></method><dataAccs><setAvail/><useStmt/><notes type="DVN:TOU" level="dv">&lt;a href="http://creativecommons.org/publicdomain/zero/1.0">CC0 1.0&lt;/a></notes></dataAccs><othrStdyMat><relPubl><citation><titlStmt><titl>Bauger, L. &amp; Hagen, S. (in press). Social Belonging, Mattering and NEET
  Status: Understanding Loneliness in Emerging Adulthood in Norway.
  International Journal of Adolescence and Youth. DOI: [DOI OF ARTICLE]</titl></titlStmt><biblCit>Bauger, L. &amp; Hagen, S. (in press). Social Belonging, Mattering and NEET
  Status: Understanding Loneliness in Emerging Adulthood in Norway.
  International Journal of Adolescence and Youth. DOI: [DOI OF ARTICLE]</biblCit></citation></relPubl></othrStdyMat></stdyDscr><otherMat ID="f277500" URI="https://dataverse.no/api/access/datafile/277500" level="datafile"><labl>00_README.txt</labl><txt>documentation file</txt><notes level="file" type="DATAVERSE:CONTENTTYPE" subject="Content/MIME Type">text/plain</notes></otherMat><otherMat ID="f277499" URI="https://dataverse.no/api/access/datafile/277499" level="datafile"><labl>01_data_preparation.R</labl><txt>R script for data cleaning and construction of composite scale scores.
    Must be run before 02_analysis.R. Reads fhus_vtfk.sav (not included)
    and writes data/df_clean.Rda</txt><notes level="file" type="DATAVERSE:CONTENTTYPE" subject="Content/MIME Type">type/x-r-syntax</notes></otherMat><otherMat ID="f277501" URI="https://dataverse.no/api/access/datafile/277501" level="datafile"><labl>02_analysis.R</labl><txt> R script for all analyses, figures, and tables reported in the
    manuscript. Reads data/df_clean.Rda produced by 01_data_preparation.R.
    Writes regression and correlation output files to the results/ subfolder.
    Plot output (ggsave) calls are commented out and must be enabled manually.
</txt><notes level="file" type="DATAVERSE:CONTENTTYPE" subject="Content/MIME Type">type/x-r-syntax</notes></otherMat></codeBook>