<resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4.1/metadata.xsd"><identifier identifierType="DOI">10.18710/JXSM22</identifier><creators><creator><creatorName nameType="Personal">Bauger, Lars</creatorName><givenName>Lars</givenName><familyName>Bauger</familyName><nameIdentifier SchemeURI="https://orcid.org/" nameIdentifierScheme="ORCID">0000-0001-7993-3281</nameIdentifier><affiliation>https://ror.org/05ecg5h20</affiliation></creator></creators><titles><title>R scripts for: Social Belonging, Mattering and NEET Status: Understanding Loneliness in Emerging Adulthood in Norway</title></titles><publisher>DataverseNO</publisher><publicationYear>2026</publicationYear><subjects><subject>Medicine, Health and Life Sciences</subject><subject>Social Sciences</subject><subject>Emerging adulthood</subject><subject>Loneliness</subject><subject>NEET</subject><subject>Mattering</subject><subject>R script</subject></subjects><contributors><contributor contributorType="ContactPerson"><contributorName nameType="Personal">Lars Bauger</contributorName><givenName>Lars</givenName><familyName>Bauger</familyName><affiliation>University of South-Eastern Norway</affiliation></contributor><contributor contributorType="Producer"><contributorName nameType="Organizational">University of South-Eastern Norway</contributorName><affiliation>Department of Health, Social, and Welfare studies</affiliation></contributor><contributor contributorType="Distributor"><contributorName nameType="Organizational">University of South-Eastern Norway</contributorName></contributor></contributors><dates><date dateType="Submitted">2026-05-26</date><date dateType="Updated">2026-06-01</date></dates><resourceType resourceTypeGeneral="Dataset"/><relatedIdentifiers/><sizes><size>16384</size><size>10135</size><size>27107</size></sizes><formats><format>text/plain</format><format>type/x-r-syntax</format><format>type/x-r-syntax</format></formats><version>1.0</version><rightsList><rights rightsURI="info:eu-repo/semantics/openAccess"/><rights rightsURI="http://creativecommons.org/publicdomain/zero/1.0">CC0 1.0</rights></rightsList><descriptions><description descriptionType="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)</description></descriptions><geoLocations/></resource>