Skip to content

Commit 64bd2e5

Browse files
authored
Merge pull request #1467 from dbetebenner/master
Update of RLI meta-data
2 parents c3a3966 + 2eff3d9 commit 64bd2e5

File tree

9 files changed

+21
-18
lines changed

9 files changed

+21
-18
lines changed

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ authors:
1111
- family-names: "Shang"
1212
given-names: "Yi"
1313
title: "SGP: Student Growth Percentiles & Percentile Growth Trajectories"
14-
version: 2.2-1.3
14+
version: 2.2-1.95
1515
doi: 10.5281/zenodo.13921157
16-
date-released: 2025-1-28
16+
date-released: 2025-3-14
1717
url: "https://sgp.io"

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: SGP
22
Type: Package
33
Title: Student Growth Percentiles & Percentile Growth Trajectories
4-
Version: 2.2-1.3
5-
Date: 2025-1-28
4+
Version: 2.2-1.95
5+
Date: 2025-3-14
66
Authors@R: c(person(given=c("Damian", "W."), family="Betebenner", email="[email protected]", role=c("aut", "cre"), comment=c(ORCID = "0000-0003-0476-5599")),
77
person(given=c("Adam", "R."), family="Van Iwaarden", email="[email protected]", role="aut"),
88
person(given="Ben", family="Domingue", email="[email protected]", role="aut"),

R/rliSGP.R

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
function(sgp_object,
33
additional.data=NULL,
44
state=NULL,
5-
content_areas=c("MATHEMATICS", "MATHEMATICS_SPANISH", "READING", "READING_SPANISH", "READING_UNIFIED", "EARLY_LITERACY", "EARLY_LITERACY_SPANISH"),
5+
content_areas=c('MATHEMATICS', 'MATHEMATICS_SPANISH', 'READING', "READING_SPANISH", "READING_UNIFIED", "EARLY_LITERACY", "EARLY_LITERACY_SPANISH"),
66
testing.window=NULL, ### FALL, WINTER, SPRING
7+
testing.window.type=NULL, ### FALL: FF, WSF/SF; WINTER: SFW/FW; SPRING: FWS/WS, SS, FS
78
eow.or.update="UPDATE", ### UPDATE or EOW
89
update.save.shell.only=FALSE,
910
configuration.year=NULL,
@@ -41,9 +42,6 @@ function(sgp_object,
4142

4243
if (!score.type %in% c("RASCH", "STAR")) stop("\tNOTE: 'score.type argument must be set to either RASCH or STAR.'")
4344

44-
if (score.type=="STAR") content_areas <- setdiff(content_areas, c("EARLY_LITERACY_SPANISH", "MATHEMATICS_SPANISH", "READING_SPANISH", "READING_UNIFIED"))
45-
46-
4745
### Utility functions
4846

4947
convertToBaseline <- function(baseline_matrices) {
@@ -85,10 +83,11 @@ function(sgp_object,
8583
}
8684
}
8785

88-
getRLIConfig <- function(content_areas, configuration.year, testing.window, score.type) {
86+
getRLIConfig <- function(content_areas, configuration.year, testing.window, testing.window.type, score.type) {
8987
tmp.list <- list()
9088
for (i in content_areas) {
9189
tmp.list[[i]] <- SGPstateData$RLI$SGP_Configuration$sgp.config.function$value(configuration.year, i, testing.window, score.type)
90+
if (!is.null(testing.window.type)) tmp.list[[i]] <- tmp.list[[i]][grep(testing.window.type, names(tmp.list[[i]]))]
9291
}
9392
if (score.type=="RASCH") setattr(tmp.list, "names", paste(names(tmp.list), "RASCH", sep="_"))
9493
return(unlist(tmp.list, recursive=FALSE))
@@ -222,7 +221,7 @@ function(sgp_object,
222221
fix.duplicates=fix.duplicates,
223222
get.cohort.data.info=get.cohort.data.info,
224223
parallel.config=parallel.config,
225-
sgp.config=getRLIConfig(content_areas, configuration.year, testing.window, score.type))
224+
sgp.config=getRLIConfig(content_areas, configuration.year, testing.window, testing.window.type, score.type))
226225

227226
if (!is.null(update.ids)) {
228227
assign(update.shell.name, sgp_object)
@@ -278,7 +277,7 @@ function(sgp_object,
278277
sgp.percentiles.calculate.sgps=eow.calculate.sgps,
279278
get.cohort.data.info=get.cohort.data.info,
280279
parallel.config=parallel.config,
281-
sgp.config=getRLIConfig(content_areas, configuration.year, testing.window, score.type))
280+
sgp.config=getRLIConfig(content_areas, configuration.year, testing.window, testing.window.type, score.type))
282281

283282
### Create and save new UPDATE_SHELL
284283

@@ -299,7 +298,8 @@ function(sgp_object,
299298
new.matrices <-convertToBaseline(sgp_object@SGP$Coefficient_Matrices[grep(configuration.year, names(sgp_object@SGP$Coefficient_Matrices))])
300299
old.matrix.label <- paste0(paste(state, "SGPt_Baseline_Matrices", sep="_"), "$", tail(sort(names(get(paste(state, "SGPt_Baseline_Matrices", sep="_")))), 1L))
301300
old.matrices <- eval(parse(text=old.matrix.label))
302-
if (score.type=="RASCH") tmp.content_areas <- paste0(c("EARLY_LITERACY", "EARLY_LITERACY_SPANISH", "MATHEMATICS", "MATHEMATICS_SPANISH", "READING", "READING_SPANISH", "READING_UNIFIED"), "_RASCH.BASELINE") else tmp.content_areas <- paste0(c("EARLY_LITERACY", "MATHEMATICS", "READING"), ".BASELINE")
301+
tmp.content_areas <- c("EARLY_LITERACY", "EARLY_LITERACY_SPANISH", "MATHEMATICS", "MATHEMATICS_SPANISH", "READING", "READING_SPANISH", "READING_UNIFIED")
302+
if (score.type=="RASCH") tmp.content_areas <- paste0(tmp.content_areas, "_RASCH.BASELINE") else tmp.content_areas <- paste0(tmp.content_areas, ".BASELINE")
303303
year.to.replace <- head(sort(unique(sapply(lapply(sapply(names(old.matrices[["READING_RASCH.BASELINE"]]), strsplit, '[.]'), '[', 2:3), paste, collapse="."))), 1L)
304304
for (content_area.iter in tmp.content_areas) {
305305
old.matrices[[content_area.iter]][grep(year.to.replace, names(old.matrices[[content_area.iter]]))] <- NULL

R/zzz.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function(libname, pkgname) {
3535

3636
# Define a friendly startup message
3737
message_text <- paste0(
38-
magenta(bold("\uD83C\uDF89 SGP v", installed.version, sep="")), " - ", toOrdinal::toOrdinalDate("2025-1-28"), "\n",
38+
magenta(bold("\uD83C\uDF89 SGP v", installed.version, sep="")), " - ", toOrdinal::toOrdinalDate("2025-3-14"), "\n",
3939
strrep("\u2501", 40), "\n",
4040
bold("\U1F4E6 CRAN: "), cran.version, "\n",
4141
bold("\U1F527 Dev: "), dev.version, "\n",

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ SGP
55
[![R-CMD-check](https://github.com/CenterForAssessment/SGP/workflows/R-CMD-check/badge.svg)](https://github.com/CenterForAssessment/SGP/actions)
66
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/centerforassessment/SGP?branch=master&svg=true)](https://ci.appveyor.com/project/centerforassessment/SGP)
77
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/SGP)](https://cran.r-project.org/package=SGP)
8-
[![Development Version](https://img.shields.io/badge/devel-2.2--1.3-brightgreen.svg)](https://github.com/CenterForAssessment/SGP)
8+
[![Development Version](https://img.shields.io/badge/devel-2.2--1.95-brightgreen.svg)](https://github.com/CenterForAssessment/SGP)
99
[![Rstudio mirror downloads](https://cranlogs.r-pkg.org/badges/grand-total/SGP)](https://github.com/metacran/cranlogs.app)
1010
[![License](https://img.shields.io/badge/license-GPL%203-brightgreen.svg?style=flat)](https://github.com/CenterForAssessment/SGP/blob/master/LICENSE.md)
1111
[![Join the chat at https://gitter.im/CenterForAssessment/SGP](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/CenterForAssessment/SGP?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

data/SGPstateData.rda

2.85 KB
Binary file not shown.

inst/CITATION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ bibentry(
99
person(given = c("Yi"), family = "Shang")
1010
),
1111
year = "2025",
12-
note = "R package version 2.2-1.3",
12+
note = "R package version 2.2-1.95",
1313
url = "https://sgp.io",
1414
textVersion = paste(
1515
"Damian W. Betebenner, Adam R. Van Iwaarden, Benjamin Domingue and Yi Shang (2025).",
1616
"SGP: Student Growth Percentiles & Percentile Growth Trajectories.",
17-
"(R package version 2.2-1.3)",
17+
"(R package version 2.2-1.95)",
1818
"URL: https://sgp.io"
1919
)
2020
)

man/SGP-package.Rd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ growth projections to be calculated across assessment transitions by equating th
1919
\tabular{ll}{
2020
Package: \tab SGP\cr
2121
Type: \tab Package\cr
22-
Version: \tab 2.2-1.3\cr
23-
Date: \tab 2025-1-28\cr
22+
Version: \tab 2.2-1.95\cr
23+
Date: \tab 2025-3-14\cr
2424
License: \tab GPL-3\cr
2525
LazyLoad: \tab yes\cr
2626
}

man/rliSGP.Rd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ rliSGP(
1414
"READING_SPANISH", "READING_UNIFIED", "EARLY_LITERACY",
1515
"EARLY_LITERACY_SPANISH"),
1616
testing.window,
17+
testing.window.type=NULL,
1718
eow.or.update="UPDATE",
1819
update.save.shell.only=FALSE,
1920
configuration.year,
@@ -50,6 +51,8 @@ rliSGP(
5051
}
5152
\item{testing.window}{Argument indicating testing window being analyzed. Either 'FALL', 'WINTER', 'SPRING' indicating what testing window's data is being analyzed.
5253
}
54+
\item{testing.window.type}{Argument indicating testing window type being analyzed. Either 'FF', 'SF', 'FW', 'WS', 'SS', 'FS' indicating what testing window's data is being analyzed. Default is NULL indicating all testing windows types are being analyzed in that testing window.
55+
}
5356
\item{eow.or.update}{Argument indicating whether end-of-window or within-window updates are being done. Either 'EOW' (end of window) or 'UPDATE' (within window).
5457
}
5558
\item{update.save.shell.only}{Boolean argument indicating whether End of Window processing should only produce/save RLI_SGP_UPDATE_SHELL and bypass coefficient matrix production.

0 commit comments

Comments
 (0)