readICILS {EdSurvey} | R Documentation |
Connect to ICILS Data
Description
Opens a connection to an ICILS data file residing
on the disk and returns an edsurvey.data.frame
with
information about the file and data.
Usage
readICILS(
path,
countries,
dataSet = c("student", "teacher"),
forceReread = FALSE,
verbose = TRUE
)
Arguments
path |
a character value to the full directory path to the ICILS extracted SPSS (.sav) set of data |
countries |
a character vector of the country/countries to include using
the three-digit ISO country code.
A list of country codes can be found on Wikipedia at
https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes
or other online sources. Consult the ICILS User Guide
to help determine what countries
are included within a specific testing year of ICILS.
To select all countries, use a wildcard value of |
dataSet |
a character value of either |
forceReread |
a logical value to force rereading of all processed data.
The default value of |
verbose |
a logical value to either print or suppress status message output.
The default value is |
Details
Reads in the unzipped files downloaded from the ICILS international dataset(s) using the IEA Study Data Repository. Data files require the SPSS data file (.sav) format using the default filenames.
Value
an edsurvey.data.frame
for a single specified country or an
edsurvey.data.frame.list
if multiple countries specified
Author(s)
Tom Fink and Jeppe Bundsgaard (updated for 2018 and 2023)
See Also
readNAEP
, readTIMSS
, and getData
Examples
## Not run:
pol <- readICILS("~/ICILS/2013", countries = "pol", dataSet = "student")
gg <- getData(data=pol, varnames=c("idstud", "cil", "is1g18b"))
head(gg)
edsurveyTable(formula=cil ~ is1g18b, pol)
## End(Not run)