Util_Invalsi_filter {SchoolDataIT} | R Documentation |
Filter the Invalsi data by subject, school grade and year.
Description
This function filters the database of Invalsi scores (see Get_Invalsi_IS
) by school year, education grade and subject and returns a dataframe in wide format.
Each row corresponds to one territorial unit (either municipality or province); the numerical variables are three (the mean score, the score's standard deviation and the students coverage percentage) for each selected subject.
Usage
Util_Invalsi_filter(
data = NULL,
subj = c("ELI", "ERE", "ITA", "MAT"),
grade = 8,
level = "LAU",
WLE = FALSE,
Year = 2023,
verbose = TRUE,
autoAbort = FALSE
)
Arguments
data |
Object of class |
subj |
Character. The school subject(s) to include, among |
grade |
Numeric. The school grade to chose. Either |
level |
Character. The level of aggregation of Invalsi census data. Either |
WLE |
Logical. Whether the variable to choose should be the average WLE score rather that the percentage of sufficient tests, if both are available. |
Year |
Numeric or character value. Reference school year for the data (last available is 2022/23).
Available in the formats: |
verbose |
Logical. If |
autoAbort |
Logical. In case any data must be retrieved, whether to automatically abort the operation and return NULL in case of missing internet connection or server response errors. |
Value
An object of class tbl_df
, tbl
and data.frame
. For all subjects and school grades, the variables indicate:
-
M
The mean score, either WLE or percentage of sufficient tests -
S
The standard deviation of the score -
C
The students coverage percentage (expressed in the scale 1 - 100)
Examples
Util_Invalsi_filter(subj = c("Italian", "Mathematics"), grade = 5, level = "NUTS-3", Year = 2023,
WLE = FALSE, data = example_Invalsi23_prov)
Util_Invalsi_filter(subj = c("Italian", "Mathematics"), grade = 5, level = "NUTS-3", Year = 2023,
WLE = TRUE, data = example_Invalsi23_prov)
Invalsi23_high <- Util_Invalsi_filter(subj = "Italian", grade = c(10,13), level = "NUTS-3",
Year = 2023, data = example_Invalsi23_prov)
summary(Invalsi23_high)