Summarize student scale scores, proficiency levels and student growth percentiles according to user specified summary group variables
Utility function used to produce summary tables using long formatted data that contain student growth percentiles. An exemplar is provided from the successive execution of prepareSGP
, analyzeSGP
and combineSGP
.
summarizeSGP(sgp_object, state, years, content_areas, sgp.summaries=NULL, summary.groups=NULL, confidence.interval.groups=NULL, produce.all.summary.tables=FALSE, summarizeSGP.baseline=NULL, projection.years.for.target=NULL, save.old.summaries=FALSE, highest.level.summary.grouping="STATE", parallel.config=NULL)
sgp_object |
An object of class SGP containing long formatted data in the |
||||||||||||||||||||||
state |
Acronym indicating state associated with the summaries for access to assessment program information embedded in |
||||||||||||||||||||||
years |
A character vector indicating year(s) in which to produce summary tables associated with student growth percentile and percentile growth trajectory/projection analyses. If missing the function will use the data to calculate years and produce summaries for the most recent three years. |
||||||||||||||||||||||
content_areas |
A character vector indicating content area(s) in which to produce student growth percentiles and/or student growth projections/trajectories. If missing the function will use the data to infer the content area(s) available for analyses. |
||||||||||||||||||||||
sgp.summaries |
A list giving the summaries requested for each group analyzed based upon the
NOTE: The internal function |
||||||||||||||||||||||
summary.groups |
A list consisting of 8 elements indicating the types of groups across which all summaries are taken (Inclusion means that summaries will be calculated for levels of the
associated variable). For state data, if the list is not explicitly provided, the function will attempt to determine levels based upon meta data supplied in the
All group slots MUST be included in the list, although |
||||||||||||||||||||||
confidence.interval.groups |
A list consisting of information used to calculate group confidence intervals:
For |
||||||||||||||||||||||
produce.all.summary.tables |
A Boolean variable, defaults to FALSE, indicating whether the function should produce ALL possible summary table. By default, a set of approximately 70 tables are produced that are used in other parts of the packages (e.g., bubblePlots). |
||||||||||||||||||||||
summarizeSGP.baseline |
A Boolean variable, defaults to FALSE, indicating whether the function should utilize baseline sgp for summary table production. By default, a set of approximately 100 tables are produced that are used in other parts of the packages (e.g., bubblePlots). |
||||||||||||||||||||||
projection.years.for.target |
An integer/NULL argument (defaults to NULL) indicating |
||||||||||||||||||||||
save.old.summaries |
A Boolean argument, defaults to FALSE, indicating whether to save the |
||||||||||||||||||||||
highest.level.summary.grouping |
A character vector indicating the highest level for summary groups, defaults to 'STATE'. |
||||||||||||||||||||||
parallel.config |
A named list with, at a minimum, two elements indicating 1) the BACKEND package to be used for parallel computation and 2) the WORKERS list to specify the number of processors to be used in each major analysis. The BACKEND element can be set = to TYPE is a third element of the The WORKERS element is a list with SUMMARY specifying the number of processors (nodes) desired or available. For example, SUMMARY=2 may be used on a dual core machine to use both cores available. (NOTE: choice of the number of cores is a balance between the number of processors available and the amount of RAM a system has; each system will be different and may require some adjustment). Default is FOREACH as the back end, TYPE=NA and WORKERS=1, which produces summary tables sequentially: 'list(BACKEND="FOREACH", TYPE=NA, WORKERS=list(SUMMARY=1))' Example parallel use cases are provided below. |
Function makes use of the foreach
package to parallel process summary tables of student data. The proper choice of parallel backend is dependent upon the user's operating system, software and system memory capacity. Please see the foreach
documentation for details. By default, the function will process the summary tables sequentially.
Function returns lists containing the summary tables as data.table objects in the @Summary
slot of the SGP data object. Each institution
has a slot in the @Summary
list.
Damian W. Betebenner dbetebenner@nciea.org and Adam Van Iwaarden vaniwaarden@colorado.edu
## Not run: ## summarizeSGP is Step 4 of 5 of abcSGP Demonstration_SGP <- sgpData_LONG Demonstration_SGP <- prepareSGP(Demonstration_SGP) Demonstration_SGP <- analyzeSGP(Demonstration_SGP) Demonstration_SGP <- combineSGP(Demonstration_SGP) Demonstration_SGP <- summarizeSGP(Demonstration_SGP) ### Example uses of the parallel.config argument ## Windows users must use the parallel package and R version >= 2.13: # Note the number of workers is 8, and PSOCK type cluster is used. # This example is would be good for a single workstation with 8 cores. . . . parallel.config=list( BACKEND="PARALLEL", TYPE="PSOCK", WORKERS=list(SUMMARY=2)) . . . # doParallel package - only available with R 2.13 or newer . . . parallel.config=list( BACKEND="FOREACH", TYPE="doParallel", WORKERS=list(SUMMARY=6)) . . . ## parallel package - only available with R 2.13 or newer # Note the number of workers is 50, and MPI is used, # suggesting this example is for a HPC cluster usage. . . . parallel.config=list( BACKEND="PARALLEL", TYPE="MPI"), WORKERS=list(SUMMARY=50)) . . . # NOTE: This list of parallel.config specifications is NOT exhaustive. # See examples in analyzeSGP documentation for some others. ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.