Social services for the elderly: a multivariate perspective study

Introduction Today’s society is aware that healthy aging favors quality of life in the future, even more so as life expectancy increases in populations such as Europe. As in countries such as Japan, it is necessary for institutions to provide social services to support the elderly, with the aim of achieving an optimal quality of life for these people. The aim of this study is to analyze the different types of social services and activities that certain institutions provide to the elderly in order to find areas for improvement or to propose relationships between them that will benefit both users and institutions. Methods Official data from Junta de Castilla y León (Spain) on social services for the elderly in the 9 provinces of the autonomous community of Castilla y León from 2007 to 2021 were analysed using multivariate statistical techniques. Results Throughout the period under analysis, there is an association between the number of places in public and private non-profit residential centers for the elderly and the number of places in day-care centers or the number of students in the Inter-University Experience Programme. The variables associated with the telecare programme are related to the number of people under guardianship. On the other hand, three well-differentiated clusters of provinces of Castilla y León were observed. Discussion Our findings have implications for the quality of life of the elderly, as the differences in social services in the areas analysed have a direct impact on the health of the elderly.


Introduction
In the current aging landscape, all countries have been experiencing an increase in the proportion of older people in the population.Life expectancy has increased considerably in recent years, with life expectancy now at or above 60 years for most of the population (World Health Organization [WHO], 2022).Regarding the Spanish data, it is estimated that the population pyramid between 2018 and 2033 will experience a significant decrease in birth and death rates, so it is important to prepare the elderly to stay active, which will allow them to continue contributing to society and, at the same time, benefit from the development of today's society (Martínez et al., 2021).In the face of this demographic 10.3389/fpsyg.2023.1297349change, Ochoa-Vázquez et al. (2018) point out the importance of preparing society by giving a multidisciplinary approach to old age and aging, being important to consider the different stages of old age and to prepare for active and healthy aging.This is one of the reasons why the United Nations General Assembly has declared the period 2021-2030 as the Decade for Healthy Aging.It is a global collaborative project led by the World Health Organization (WHO) that aims to unite the efforts of governments, civil society, international agencies, professionals, academia, the media, and the private sector to implement actions, which can achieve the goals of the 2030 Agenda for Sustainable Development and the United Nations Sustainable Development Goals.
The promotion of active and healthy aging is a challenge that we must take up in today's society.The WHO at the end of the 20th century adopted the term active aging as: the process of optimizing opportunities for health, security and participation, with the aim of improving the quality of life as people age, indicating that it is the process that enhances the potential for physical, mental and social well-being throughout this life cycle.It also promotes the participation of older people in society according to their needs, capabilities and wishes, while providing them with adequate security, protection and care when needed (World Health Organization [WHO], 2002).
To be able to count on more years of life and the restructuring of society not only has implications for the individual person, but also for the community in which you live.Being aware of the sociodemographic changes that are coming, it is possible to plan to make the most out of life (Asamblea Mundial de la Salud, 2016).
Aging is understood as a natural and inevitable process, with old age being a stage of the life cycle influenced by biology but also a social and historical construction, due to the different ways in which the aging process is understood and experienced by different communities (Andrade and Silva, 2016).The aim is not only to live longer, but for people who reach this last stage of life to do so with the highest possible quality of life.
The reality for older people is that there is a high prevalence of unhealthy lifestyles.Sedentary lifestyles are present in 83% of this population group, overweight and obesity in more than 50%, and between 20 and 25% have diabetes (Andrade and Silva, 2016).The prevalence of mental illnesses such as dementia and cognitive impairment is a serious public health problem, being the cause of partial or total alterations in intellectual functions (Arconada et al., 2023).The research carried out by Alonso et al. (2004) on the prevalence of mental disorders in people over 65 years of age indicated that 5.8% had suffered from a mental disorder in the last year.On the other hand, the results of the European study by Andreas et al. (2017) indicate that 47% of older people had experienced a mental disorder in their lifetime, 35.2% in the last year and 23.3% suffered from it at the time the study was carried out.The most frequent mental disorders are anxiety disorders, affective disorders and substance use disorders.
Given this reality, it is necessary to promote active and healthy aging (Palmero Cámara et al., 2014).In this sense, active aging is understood by society as a social right, but it requires compensation strategies to delay the loss of functional capacities, both physical and psychological, which are associated with aging.
As we have already pointed out, some of the problems are sedentary lifestyles, overweight, obesity and psychological problems, so it is necessary to promote healthy habits in the elderly and promote policies to prepare the population for active aging (Martínez et al., 2021).It is necessary to take into account aspects related to physical, psychological and social health so that a better quality of life is possible.
Physical activity is an important aspect, Pinillos (2016) points out that for the development of quality of life in old age, the practice of physical exercise is essential to improve the health of older people.Continuously practicing physical activity improves physical fitness, which has a positive impact on the health and quality of life of older people (Herranz et al., 2013;Medina et al., 2013;Zhao et al., 2013;Enríquez-Reyna et al., 2019).
Relationships are another important aspect, as the older we get, the greater the number of people living alone in their homes.As the years go by, the number of older people living alone, especially women, will increase as a consequence of greater longevity (Pardal et al., 2017;Chen and While, 2019).In Spain, according to data from the Spanish Statistical Office for 2018, there are more than two million people over-65s living alone, which represents almost half of the 4.7 million single-person households.If the marital status of older people is taken into account, the results of the research by Parra-Rizo and Sanchís-Soler (2023) show that widowed and divorced people have a greater/higher frequency of social relationships than married or single people, with widowed people having the most social relationships and single people the least.In terms of satisfaction with social relationships, married people are more satisfied than single, widowed and divorced people, with widowers being more satisfied than single people.These results are in line with those reported by Rondón et al. (2018), which indicate that social relationships, whether due to the frequency of contacts or the size of the social network, are determinant in the health of older people and in the way they manage the illnesses.Recent studies establish a relationship between health status and social relationships (Tsaras et al., 2022).
Taking into account this panorama of the elderly reality, we thought it would be interesting to analyze what is happening in the Autonomous Community of Castilla y León, because according to data from the Spanish Statistical Office [INE] (2022) it is the second autonomous community in Spain with the highest percentage of people over 65 years of age (26.12%), surpassed only by the Principality of Asturias (27.03%).Against this background, it is necessary to analyze the resources available to the autonomous community to meet the needs of this population group.
For the development and support of the elderly, the Community of Castilla y León has a variety of resources which are described in the "Guía para mejorar tu vida" (Guide to improve your life) elaborated by the Consejería de Sanidad y Bienestar Social -Gerencia de Servicios Sociales (Regional Ministry of Health and Social Welfare -Social Services Management) (Junta de Castilla y León, 2003).These resources are related to different areas and adapted to the needs of users, including leisure, culture and participation area, family and community resources, and residential care.
Programmes for non-dependent elderly people include: The travel programme for senior citizens of the 60 Club's Programme for seniors includes three modalities and a wide offer that allows seniors to travel to 29 destinations.The Inter-University Experience Programme, an initiative of the Junta de Castilla y León in collaboration with all the public and private universities in the region, co-financed by the Management of Social Services, the universities, and the students themselves.It is part of the active ageing and lifelong learning programmes and aims to give older people the possibility of accessing culture and science as a formula for personal growth and social interaction.
The Integral Programme for Active Ageing includes activities and services for the prevention of dependency, which are carried out by the public administrations of Castilla y León and private entities financed totally or partially with public funds.It is a unique programme, coordinated and governed by the principles of optimization and rationalization of actions to promote personal autonomy, knowledge of reality and committed participation, among others.
The Intergenerational Rapprochement Programme consists of activities in which both older people and young university students participate through agreements among the Social Services Management, the Universities of Burgos, León, Salamanca and Valladolid, and the Town Councils of Burgos, Palencia, Salamanca, Segovia, Soria and Valladolid.
Thermalism Programme, whose objective is to promote health care with the knowledge of the cultural and landscape environment of each spa that participates in the programme.
Programmes and/or aids for dependent and/or disabled people are aids specifically aimed at people who are in a permanent situation of dependency.This dependency may be due to age, illness or disability, and means that they need constant help from another person in their daily life.
Dependency Law offers services and benefits for dependent people and their family environment.After submitting an application to the Social Services of Castilla y León, it is possible to access the following services and benefits: 1. Services to prevent dependency situations.2. Promotion of personal autonomy.Rehabilitation and assistance to promote independence.3. Home help.Professional assistance for home cleaning, personal hygiene, etc. 4. Financial benefit for care in the family environment.
Aid for the carer.This is recognized within the Individual Care Programme.5. Financial aid for personal assistance.For the hiring of a personal assistance service that facilitates the beneficiary's access to education and work.6. Benefit linked to the purchase of a service.In order to receive the recognized benefit, it is necessary to justify the acquisition of the service.7. Financial aid for carer's rest.The Junta de Castilla y León covers part of the cost of a dependent person's stay in a residential center for 1 month a year.8. Aid for the elderly.People over 65 years of age can apply for a series of aid and services, and in some cases being necessary to have a recognized degree of dependency.9. Permanent stays in rest homes.Personalized and uninterrupted care for dependent people with low resources.
10. Day centers.Support for family carers.They provide day care and promote the autonomy of the elderly.11. "A gusto en casa" (At ease at home) Project.
Initiatives to provide personalized care at home for the elderly in rural areas.12. "Viviendas en Red" (Networked Housing) Project.
Municipally-owned housing adapted for the elderly.Residents will pay a symbolic rent and will be able to share a flat if they wish.The aim is to foster a community.
2 Materials and methods

Study design
Social services in Spain serve more than four million elderly people (Instituto de Mayores y Servicios Sociales, 2021).Among the most in-demand services are those that allow people to remain in their homes and avoid uprooting from their usual environment.For this reason, a descriptive, exploratory, and longitudinal study was designed to analyze the different types of social services and activities that certain institutions provide to the elderly in order to find areas for improvement that would benefit both users and institutions.

Study setting
In Spain, the number of people aged 65 and over is 9797098, which represents 20.26% of the entire population (data from 1 July 2023) according to the Spanish Statistical Office [INE] (2023).The public social services system is organized as a network to work on coordination, collaboration, and dialogue among all those involved in the process of caring for people.
The management of social services is attributed to the competent bodies of each Autonomous Community and to the Provincial Directorates of the Institute for the Elderly and Social Services, using the resources aimed at the elderly to improve their quality of life through the unified and coordinated development of actions that enable their personal autonomy, guaranteeing the prevention of dependency and care for dependent elderly people.Thus, the Community of Castilla y León has exclusive competence in matters of social assistance, social services, and community development, in accordance with the provisions of Article 70.1.10of the Statute of Autonomy of Castilla y León, which includes the social rights of the elderly (Ministerio de la Presidencia, Relaciones con las Cortes y Memoria Democrática, 2007).
The setting of this study is the Spanish autonomous community of Castilla y León, one of the largest regions in Europe with 94226 km 2 and located in the northwestern part of the plateau of the Iberian Peninsula.It is made up of 9 provinces: Ávila, Burgos, León, Palencia, Salamanca, Segovia, Soria, Valladolid, and Zamora, with certain differences among them. 10.3389/fpsyg.2023.1297349

Data
To test the established hypotheses, we selected as target population elderly people (65 and over) living in the autonomous community of Castilla y León (Spain).We worked with the annual information provided by the autonomous community of Castilla y León, which details the official data on social services for the care of the elderly in the 9 provinces of the autonomous community during the last years (2007)(2008)(2009)(2010)(2011)(2012)(2013)(2014)(2015)(2016)(2017)(2018)(2019)(2020)(2021).
The data has been provided through the web services offered by the Junta de Castilla y León from the portal "Datos abiertos de Castilla y León" (Open Data of Castilla y León).As indicated in its web portal, open data represents a philosophy and practice that aims to make certain data freely available to all people who require it, without restrictions of copyright, patents or other control mechanisms.This data must be published in its original, unprocessed form, well organized and in recognizable formats that facilitate its reuse.In this sense, the public sector generates a wide range of valuable information for citizens, businesses and research groups, ranging from social, economic, geographic, statistical and meteorological data to tourism and business information, as well as data on education.This information has characteristics that make it particularly attractive to the digital content sector, as it is complete, reliable and of high quality.The openness of public sector data allows any person or organization to build on them new ideas that generate additional data, knowledge, process improvements, added value to existing ones or even the creation of new services.
In this sense, we have used and processed the data corresponding to the social services (Junta de Castilla y León, 2022) belonging to the Gerencia de Servicios Sociales -Consejería de Familia e Igualdad de Oportunidades.The data can be downloaded in XLS and CSV format, so that they can be exported in their entirety to different computer tools for subsequent processing.The file with which we have worked offers statistical data on the main variables of the community's social services that have been delimited to the target age groups of our study, such as those over 65 years of age.
It should be noted that the file contains raw data that had to be filtered to extract the variables necessary for our study, for which different routines were used to select the information we considered relevant and export it to a format that was readable and understandable by the analysis software used.
Table 1 presents the variables analysed in the study together with their assigned codes.
In addition, official data on life expectancy at birth from the European Statistical Office (Eurostat) 1 and the Spanish Statistical Office (INE) 2 were used to show the situation of older people.According to the United Nations, life expectancy is defined as "the number of years a newborn can expect to live if the age-specific mortality patterns prevailing at the time of birth remained the same throughout life." 1 https://ec.europa.eu/eurostat 2 https://www.ine.es/index.htmAnd, to find out about the possible benefits that currently exist for the elderly in the region under study, data from the Ministry of Social Rights and Agenda 20303 were analyzed.

Analysis
First, the aging trend in Castilla y León (Spain) was analysed to determine the exact situation of the elderly in the region.For this purpose, a descriptive analysis was carried out.Official data on the elderly population, life expectancy and basic services for the elderly were studied, both at the European level and in the Spanish region to be analysed.Subsequently, the evolution over time of social services for the elderly in Castilla y León was analysed.This was carried out by means of frequency distribution tables and line diagrams, representing on the X axis the period and on the Y axis the quantitative value of the variable corresponding to each social service.
To analyze the common structure of social services for the elderly from 2007 to 2021, the STATIS method (Escoufier, 1973;Des Plantes, 1976) was applied.It is a suitable exploratory technique for three-way data analysis, in this case, information on social services for the elderly from 2007 to 2021 for the 9 provinces of the region studied.This method comprises three stages: the interstructure, the analysis of the compromise, and the intrastructure.For this paper, we will focus only on the first two.
The first stage is the study of interstructure.It is the analysis of the configuration of k points that correspond to the k matrices in a graphical representation of one or more flat Euclidean images of projection of k points for the study of the relation between different matrices, in our case representing different years, where similarity (positive correlations are visualized by small acute angles between variables) indicate that the variables of the social services maintain a stable behavior with respect to the provinces of the region during the study period.A matrix is built of scalar products between tables (the vector covariance matrix), where the element in row k and column l is Cov = (X k ,X l ) = tr (X t k D n X l D p ), where X k is the kth table of the sequence, and D p and D n are the two metrics for the columns and rows, respectively.This way, we can determine if the matrices have similar structures.
The second stage is the analysis of the compromise.It is the closest matrix to configurations of k matrices, where a linear transformation of each data table is performed so that each matrix becomes a column vector, stacking their variables one on top of another.This matrix combines the consensus structure of the k data tables representing the common structure of the variables in these tables.So, through the application of a factorial analysis with the principal components method to this matrix, we can plot the structure to interpret the representation of the averages for the variables.
To study the relationships between social services for the elderly in the provinces of Castilla y León each year, an HJ-biplot analysis was applied (Galindo, 1986).Biplots (Gabriel, 1971) are statistical exploratory multidimensional techniques that represent the joint structure of the individuals (provinces) and variables (social services) of a multivariate data matrix X.We applied HJbiplot because offers a representation in a low dimensional space of a matrix X nxp .Let X = UDV t be the usual singular value decomposition (SVD) of X with U and V orthogonal matrices and D = diag (λ 1 , ..., λ p ) containing the singular values.Let J and H be the matrices of the first two columns of UD and VD, respectively.This method allows, by the suitable selection of markers, j i = (j i ,...,j n ) for its rows and h j = (h j ,...,h n ) for its columns, to represent simultaneously in the same Euclidean space the rows and columns with the highest quality of representation.For its interpretation, we have to keep several guidelines going, so row markers (provinces) are represented as points and column markers (social services variables) as vectors.In this way, we can visualize a set of provinces with similar behaviors, interpreting the distance between points as similarity, so that provinces closer to other provinces present similar profiles.To describe the relationships between social services for the elderly, acute angles between vectors are associated with a high positive correlation.And, to classify the provinces in reference to social services, we can order the different province in relation to each variable with the orthogonal projections of the points (provinces) on the vectors (social services variables).Remember that the interpretation is subject to the quality of representation of the elements in the observed subspace.
Finally, to analyze the social services for the elderly in the different provinces, the normality of the data was tested using the Shapiro-Wilk test.All the variables did not have a normal distribution, except for participants in thermalism trips of the 60's Club (see auxiliary table).So, to compare the quantitative variables of the social services for the elderly, the Kruskal-Wallis test was applied.And to identify differences between provinces, a posteriori pairwise comparisons were performed.

Situation of older people
In recent years, life expectancy in Europe has been increasing, with a value of 79.8 years in 2010, 80.8 years in 2014, and 81.3 years in 2019, although in 2020 there was a decrease with a life expectancy value of 80.4 years (Eurostat, 2023).For the year 2048, life expectancy is estimated at 82.3 years (World Health Organization [WHO], 2023).In Castilla y León, the same trend in life expectancy has also been observed over the last few years, as shown in Table 2.This is due to demographic ageing as a result of the evolution of the birth rate and the decrease in mortality (Gerencia de Servicios Sociales, 2017).
According to the Social Services portal, in a few years Spain will have 19.7 million people over the age of 64 and the number of centenarians will be almost double what it is today.
Among the basic services aimed at the elderly are: information and guidance, home help, living unit, alternative accommodation or prevention and insertion.The most recent data on the elderly (2021) show a majority use (61.9%) of the information and guidance service, followed by the home help service (17.8%) (Ministerio de Derechos Sociales y Agenda 2030, 2021).At the beginning of the period analysed there was an increasing trend in the total costs (in euros) of the telecare programme in Castilla y León.In the province of Salamanca, a maximum of 1411092 euros was observed in 2009, but thereafter there was a sharp drop until 2014 when it started to stabilize.However, the province of León had a relative minimum in 2009 (954412 euros) which managed to increase the following 2 years, although from 2011 to 2013 it suffered a steep decline.The average cost of the telecare programme in Valladolid was 833049 euros during the time period studied, with relative peaks above one million euros; however, in 2013 and 2017 there were very serious decreases.The provinces of Ávila, Burgos, Palencia, Segovia, Soria, and Zamora show more stable trends, with few variations and costs that in no case exceed 470000 euros over these years.Since 2017 in all the provinces of Castilla y León, there has been a slight increase in these costs or at least a stabilization, with the exception of León which had a small decrease until 2020 but then showed an increase of 77208 euros the following year.

Telecare for the elderly
The number of people using the telecare service in Castilla y León has also varied over the period analysed (see Figure 1).From 2009 onward, there was a slight decrease in the number of users of this service in all provinces, with the exception of Zamora, Frontiers in Psychology 06 frontiersin.orgwhich was maintained and in 2013 stands out with a maximum of 3191 people.In León, Salamanca, Valladolid and Zamora, the number of users clearly decreased until 2015.Subsequently, as in the rest of the provinces, there was a gradual increase in the number of users, except in Valladolid and Salamanca, which had large increases (3984 and 1981 more people the following year, respectively).

Old age and illness
Figure 2 shows how since 2007 the annual amount of old age and sickness pensions, in euros, has decreased in all the provinces analysed.This decline was very pronounced in 2008.In 2015 and 2018 there was also a slight drop and since then it has been maintained.The same trend can be observed in the number of people benefiting from old age and sickness benefits.
The number of older people under guardianship since 2007 has been increasing, although in a specific year the amount decreases (for example, the year 2020), it is observed that the following year it increases again (see Table 3).The largest number of people under guardianship is observed in the province of Valladolid, followed by Salamanca and Burgos with more than 1030 people.

60's club
The trend of seniors choosing to become members of the 60's Club is increasing, as shown in the graph on the right of Figure 3. Regarding participation in spa trips, although there was an increase in 2012, it has declined and continues to decline (graph on the left of Figure 3).However, the participation of those over 60 years of age has undergone slight ups and downs with an increasing trend, taking into account that from 2019 to 2020 there were no trips due to the COVID-19 pandemic (graph in the middle of Figure 3).

Residential centers for the elderly
Over the last few years, the number of places in residential centers for the elderly has remained fairly constant.Public places suffered a drop in 2008 but rebounded in the following year and have remained stable since then.A slight increase was only observed in 2013 in the province of Burgos, in 2016 in Soria and recently in León.Moreover, the highest number of public places is observed in León, followed by Salamanca and Burgos, while the lowest number is observed in Segovia, Palencia, Soria, and Ávila.Private places, both for-profit and not-profit, also remained stable throughout the last years, but   Burgos, or Valladolid than in the rest of the provinces (see Figure 4).

Associations and programmes for the elderly
Figure 5 shows in the evolution in recent years of the number of the Inter-University Programme of Experience students, as well as the associations for older people in Castilla y León.It is interesting to note the increasing trend in the number of students in the Inter-University Programme of Experience and the clear decrease in 2019 and 2020 in all provinces.In 2011, the slight increase in Burgos and León and the decrease in Salamanca and Zamora are noteworthy.Throughout the period studied, the number of associations of elderly people in Castilla y León has been constant, only slightly increased in 2013.The province with the largest number of associations is Salamanca and the one with the fewest is Soria.

Common structure of social services for the elderly from 2007 to 2021: STATIS method
The interstructure analysis (Figure 6) indicates that the data matrices corresponding to the period of time studied have similar structures.The year 2008 presents a larger acute angle with the other years, suggesting instability or certain differences in social services for the elderly in that year with respect to the rest.This also occurs with the periods 2020 and 2021.
The compromise presents strong relationships among the various social services for the elderly in Castilla y León. Figure 6 shows a strong relationship between the number of public and private non-profit places in residential centers for the elderly, the number of places in Day Care Centers for the elderly and the number of students in the Inter-University Programme of Experience over the period studied (2007)(2008)(2009)(2010)(2011)(2012)(2013)(2014)(2015)(2016)(2017)(2018)(2019)(2020)(2021), and in turn, with the number of associations for the elderly in Castilla y León.The rest of the social services: the annual amount of old age and sickness pensions (in euros), the number of people benefiting from old age and sickness benefits, the number of participants in thermalism trips of the 60's Club, the total cost of the telecare programme (in euros), the number of users of the telecare service, the number of members of the 60's Club, the total cost of the telecare programme (in euros), the number of users of the telecare service, the number of members of the 60's Club, and the number of users of the telecare service, the number of members of the 60's Club, the number of participants in 60's Club trips and the number of places in residential centers for the elderly (private for profit) are highly correlated over the period 2007-2021, showing a weaker association with the number of elderly people under guardianship.

Social services for the elderly each year: HJ-biplot
In order to have an overall view of the relationships of the variables on social services for the elderly in the 9 provinces of Frontiers in Psychology 09 frontiersin.orgInterstructure and compromise of social services for the elderly from 2007 to 2021.
Castilla y León, an HJ-biplot analysis was applied to the data sets for each year.
For a correct application of this technique, it is necessary to show the explained variance values and the relative contribution of the factor to the element, which will indicate the position of the axes and their subsequent interpretation; both are shown in Tables 4, 5.
In Figure 7 and Figure 8, the points of each biplot correspond to the provinces of Castilla y León and the vectors refer to the variables associated with social services for the elderly.Thus, those vectors that form acute angles correspond to positive correlations and the points with a similar position in the plane correspond to similar values in the different vectors.Provinces close to or in orthogonal projection to the end of the vector will indicate high scores in that social service.
In the first 2 years (2007 and 2008), the number of associations of elderly people in Castilla y León was closely related to the number of public places in residential centers for the elderly.However, this association decreased slightly in the following years and in 2019 they were closely related to the number of students at the Inter-University Programme of Experience.These services are independent of the number of elderly people under guardianship in Castilla y León, which in 2015 and 2016 were found to be highly related to the costs of the telecare service for elderly people.
Although the rest of variables on social services are closely related to each other, two groups of variables with very strong correlations can be observed up to 2010.The first is formed by the number of places in residential centers for the elderly (private for profit), the number of members of the 60's Club, the number of participants in thermalism trips of the 60's Club and the number of participants in trips of the 60's Club.The second is formed by the annual amount of pensions for old age and illness, the number of beneficiaries of old age and illness benefits, the total cost of the telecare programme and the number of students at the Interuniversity Programme of Experience.In 2011, 2012 and 2013 the variables of both groups are highly correlated with each other, and no groups are distinguished.However, in 2014 and 2015 the first group of variables is observed to be more differentiated.HJ-biplots of the social services for the elderly of Castilla y León in each year (2007)(2008)(2009)(2010)(2011)(2012)(2013)(2014).
As of 2016, the number of places in Day Care Centers for the Elderly, the number of students in the Inter-University Programme of Experience and the number of places in residential centers for the elderly (private non-profit and public) are highly correlated and, in turn, related to the number of associations for the elderly in Castilla y León.In 2021, the independence between the number of associations of elderly people in Castilla y León and the number of participants in trips of the 60's Club stands out.The elderly in the provinces of Salamanca and León have more associations, many public places in residential centers and have participated a lot in the Inter-University Programme of Experience.
Valladolid is the province with more people under guardianship and from 2015 it has had very high costs in telecare, unlike provinces such as Zamora or Segovia.Social services for the elderly in Valladolid have been very high over time, with the number of members of the 60's Club standing out in 2021.
In addition, taking into account the time period analysed (from 2007 to 2021), statistically significant differences (p < 0.001) are also observed among the number of users of the telecare service, the annual amount of old age and sickness pensions (in euros), the number of participants in 60's Club trips (including thermal trips), the number of people benefiting from old age and sickness benefits, and the number of elderly people under guardianship.
The main differences in the telecare service are observed between the years 2007 and 2008 with the rest of the years analysed, highlighting greater inequalities from 2016 onward (p < 0.001).Differences in participation in the 60's Club trips are observed in the last years (p < 0.001), although in terms of thermal trips they also extend to 2019 and highlights 2012 with the period from 2014 to 2019 (p < 0.05).

Discussion
This study analyzes the different types of social services for the elderly in one of the main regions of Spain, the autonomous community of Castilla y León, in order to find areas for improvement.To our knowledge, it is the first to apply the STATIS method to have a global and common vision over the years.
The analysis of social services for the elderly from 2007 to the present shows some instability in 2008, which may be due to the economic crisis suffered at that time.Variations were also observed in the last years (2020 and 2021), which may be due to the postpandemic recovery.This study indicates the existence of a strong association between the number of public and private non-profit places in residential centers for the elderly, the number of places in Day Care Centers for the elderly and the number of students in the Inter-University Programme of Experience throughout the period studied, and in turn, with the number of associations for the elderly in Castilla y León.The rest of the social services are strongly related throughout the period, showing a weaker association with the number of older people under guardianship.And significant inequalities were observed in the social services for the elderly among the provinces studied.
Regarding the telecare programme for the elderly, Art. 15 of Law 39/2006, of December 14, on the Promotion of Personal Autonomy and Care for Dependent Persons, establishes the social services for the promotion of personal autonomy and care for dependency, among which the telecare service is contemplated, with the aim of providing assistance to the beneficiaries by means of communication and information technologies, with the support of the necessary personal means, in immediate response to emergency situations, or situations of insecurity, loneliness and isolation (BOE, 2006).The evolution of this programme in Castilla y León, in general terms, has been increasing since 2017 or has stabilized.The telecare service provided by the Spanish Red Cross in Castilla y León, as Fermoso et al. (2011) point out, is a fairly efficient resource because of how its organizational structure is designed and the available human resources that manage to minimize the total costs of the service per user, by using the Queuing Theory methodology.
The Spanish population pyramid is experiencing a significant decrease in birth rate and mortality since 2018 and the forecasts are that it will follow this same line until 2033, this is going to see an increase in the number of people over 65 years of age and, therefore, it is going to increase diseases and mental disorders in this population group.On the other hand, the number of pensions due to this cause will also increase, the data analysed with respect to these variables reflect a decrease in the annual amount since 2007, in all the provinces of the Community of Castilla y León.In the coming years, the trend is that the provinces of Valladolid, Salamanca and Burgos will need more resources to cover the demand.
Although the number of senior citizens who are members of the 60's Club has fluctuated slightly over the years, the trend is growing, the offer of these activities and the destinations are very varied both nationally and internationally.Taking part in activities that facilitate social relations is an important aspect of active aging, favoring a better promotion of the health of this group.
Intergenerational programmes encourage participation in the community, promote healthier aging in all generations involved in the programmes (Butts and Chana, 2007).Older people benefit from these programmes, they exercise more, facilitating the burning of calories, they are more active, they suffer fewer falls, they are more independent and dependence on other people is delayed.In relation to young people, they learn from the experiences of older people, they know and share their life habits, sharing time and space that facilitates the improvement and quality of life and social relations (Maccallum et al., 2006;Pinazo and Kaplan, 2007).
Older people who participate in intercollegiate programmes of experience, benefit from active aging and lifelong learning, it is a possibility to access culture and science that enhances personal growth and social interaction.Alsubaie et al. (2019), point out that social support acts positively in the face of stressful life situations and promotes mental health, it plays an essential role in the quality of life, as it collaborates with the feeling of being appreciated and connected to the environment.It has a high impact on people with depression and it can be concluded that both its presence and absence are determinant in mental health issues (Zabala, 2021).Continuing to promote these programmes in the Community of Castilla y León is important and necessary for the elderly population.Knowles et al. (2001) point out that "the need to know influences motivation to learn, learning outcomes and subsequent motivation to take advantage of learning." As a consequence of a longer-lived and aging population in Castilla y León, it is necessary not to neglect health care, especially primary care and other services for the elderly, which are increasingly in demand, largely due to the difficulties of assistance and care by the intergenerational family support network.This has resulted in a greater increase in the number of people living alone in this autonomous community.Modino and Fanjul (2020) point out that this population group, as they get older, are a more vulnerable population, so they increasingly need community care services provided at home, which would delay the need to leave the home to enter nursing homes.Resources such as home help, to assist in the performance of household chores and other basic activities in the daily life of the elderly, such as personal hygiene, companionship or telecare to facilitate communication in the event of an emergency, proximity services (meals at home or laundry service, pharmacy, food supply or financial services), especially necessary for the elderly in rural areas, as well as day centers, which facilitate social interaction and relationships with other people of generation.In addition to facilitating other necessary services such as sociocultural animation, physiotherapy, occupational therapy or cognitive stimulation, among others, it would delay or avoid admission to nursing homes.
We conclude that providing quality social services for the elderly is of great importance.Our study shows clear associations between some of the services, which could be used to implement better action strategies.However, we have observed large differences in social services for the elderly among the provinces studied.We observed two well differentiated groups: one formed by Valladolid, Salamanca, León and Burgos, with more resources in terms of social services for the elderly.And another group formed by Zamora, Palencia, Ávila, Segovia and Soria, with much more limited resources.Therefore, appropriate strategies 10.3389/fpsyg.2023.1297349should be proposed to reduce these great inequalities between the provinces of the same region.
This study has several strengths, but also limitations.One advantage is the use of multivariate statistical methods that provide a global view of the formation of various data sets in a simple way.In addition, another strength is the study of social services from 2007 to the present, allowing the analysis of the evolution of the various services for the elderly.We have also worked with official data from the reference agencies.Although a limitation of the research is that it does not make any projections, it is only a descriptive and exploratory study.In the future, the study could be extended to other regions.

Figure 1
Figure1presents the evolution since 2007 of the costs and the number of users of the telecare programme in the region under study by province.At the beginning of the period analysed there was an increasing trend in the total costs (in euros) of the telecare programme in Castilla y León.In the province of Salamanca, a maximum of 1411092 euros was observed in 2009, but thereafter there was a sharp drop until 2014 when it started to stabilize.However, the province of León had a relative minimum in 2009 (954412 euros) which managed to increase the following 2 years, although from 2011 to 2013 it suffered a steep decline.The average cost of the telecare programme in Valladolid was 833049 euros during the time period studied, with relative peaks above one million euros; however, in 2013 and 2017 there were very serious decreases.The provinces of Ávila, Burgos, Palencia, Segovia, Soria, and Zamora show more stable trends, with few variations and costs that in no case exceed 470000 euros over these years.Since 2017 in all the provinces of Castilla y León, there has been a slight increase in these costs or at least a stabilization, with the exception of León which had a small decrease until 2020 but then showed an increase of 77208 euros the following year.The number of people using the telecare service in Castilla y León has also varied over the period analysed (see Figure1).From 2009 onward, there was a slight decrease in the number of users of this service in all provinces, with the exception of Zamora,

FIGURE 1
FIGURE 1Evolution of costs and number of users of the telecare programme in Castilla y León from 2007 to 2021.

FIGURE 2
FIGURE 2Evolution of pensions and beneficiaries for old age and illness in Castilla y León from 2007 to 2021.

FIGURE 3
FIGURE 3 Evolution of participation in the Castilla y León 60's Club from 2007 to 2021.

FIGURE 4
FIGURE 4Evolution of vacancies in residential centers for the elderly in Castilla y León from 2007 to 2021.

FIGURE 5
FIGURE 5Evolution of the number of students in the Inter-University Programme of Experience and associations for the elderly in Castilla y León from 2007 to 2021.

FIGURE 8 HJ
FIGURE 8 HJ-biplots of the social services for the elderly of Castilla y León in each year (2015-2021).

TABLE 1
List of codes and variables related to social services for the elderly.Total Cost TelecareTotal cost of the telecare programme (in euros).
DayCareCentresNumber of places in day-care centres for elderly people.ResPrivProfitNumber of places in residential centres for the elderly (Private for profit).ResPrivNon-Profit Number of places in residential care homes for the elderly (Private non-profit).ResPublicNumber of places in residential centres for the elderly (Public).Members60ClubNumber of members of the 60's Club.

TABLE 2
Life expectancy at birth by province in recent years, separated by sex.
Distribution of elderly people under guardianship in Castilla y León from 2007 to 2021.

TABLE 4
Eigenvalues and explained variance in each year.Relative contribution of the factor to the element in each year.