Skip to content

Commit acc35cd

Browse files
authored
Merge pull request CenterForAssessment#1469 from dbetebenner/master
Updating RLI meta-data including configurations
2 parents 3f0fa17 + d251994 commit acc35cd

File tree

10 files changed

+29
-21
lines changed

10 files changed

+29
-21
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.96
14+
version: 2.2-1.98
1515
doi: 10.5281/zenodo.13921157
16-
date-released: 2025-3-18
16+
date-released: 2025-4-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.96
5-
Date: 2025-3-18
4+
Version: 2.2-1.98
5+
Date: 2025-4-14
66
Authors@R: c(person(given=c("Damian", "W."), family="Betebenner", email="dbetebenner@nciea.org", role=c("aut", "cre"), comment=c(ORCID = "0000-0003-0476-5599")),
77
person(given=c("Adam", "R."), family="Van Iwaarden", email="avaniwaarden@nciea.org", role="aut"),
88
person(given="Ben", family="Domingue", email="ben.domingue@gmail.com", role="aut"),

R/outputSGP.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -825,11 +825,11 @@ function(sgp_object,
825825
CONTENT_AREA=unlist(strsplit(names.iter, "[.]"))[1],
826826
YEAR=getTableNameYear(names.iter),
827827
sgp_object@SGP[["SGProjections"]][[names.iter]], key=c("VALID_CASE", "CONTENT_AREA", "YEAR", "ID"))
828-
tmp.index <- tmp.table[,c("VALID_CASE", "CONTENT_AREA", "YEAR", "ID"), with=FALSE]
828+
tmp.index <- tmp.table[,c("VALID_CASE", "CONTENT_AREA", "YEAR", "ID", "GRADE"), with=FALSE]
829829

830830
if (any(c("CATCH_UP_KEEP_UP_STATUS_INITIAL_CURRENT", "MOVE_UP_STAY_UP_STATUS_INITIAL_CURRENT") %in% names(slot.data))) {
831831
sgp_object@SGP[["SGProjections"]][[names.iter]] <-
832-
tmp.table[,intersect(names(slot.data), c("CATCH_UP_KEEP_UP_STATUS_INITIAL_CURRENT", "MOVE_UP_STAY_UP_STATUS_INITIAL_CURRENT")) := slot.data[tmp.index][,
832+
tmp.table[,intersect(names(slot.data), c("CATCH_UP_KEEP_UP_STATUS_INITIAL_CURRENT", "MOVE_UP_STAY_UP_STATUS_INITIAL_CURRENT")) := slot.data[tmp.index, on=c("VALID_CASE", "CONTENT_AREA", "YEAR", "ID", "GRADE"),
833833
intersect(names(slot.data), c("CATCH_UP_KEEP_UP_STATUS_INITIAL_CURRENT", "MOVE_UP_STAY_UP_STATUS_INITIAL_CURRENT")), with=FALSE]][,!c("VALID_CASE", "CONTENT_AREA", "YEAR"), with=FALSE]
834834
}
835835
output.column.order <- SGP::SGPstateData[['RLI']][['SGP_Configuration']][['output.column.order']][['SGProjection']]

R/rliSGP.R

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ function(sgp_object,
1717
simulate.sgps=FALSE,
1818
save.intermediate.results=FALSE,
1919
coefficient.matrices=NULL,
20+
coefficient.matrices.year=NULL,
2021
goodness.of.fit.print=FALSE,
2122
return.updated.shell=FALSE,
2223
fix.duplicates="KEEP.ALL",
@@ -158,16 +159,20 @@ function(sgp_object,
158159
if (length(find.package("RLImatrices", quiet=TRUE))==0) stop("Package RLImatrices required from GitHub.")
159160
if (is.null(coefficient.matrices)) {
160161
eval(parse(text="require(RLImatrices)"))
161-
matrix.years <- getRLIMatrixYears(score.type)
162-
tmp.configuration.year <- paste(configuration.year, match(testing.window, c("FALL", "WINTER", "SPRING")), sep=".")
163-
tmp.data.last.year <- tail(sort(unique(additional.data[['YEAR']])), 1L)
164-
if (!tmp.configuration.year %in% matrix.years) {
165-
messageSGP(paste0("\tNOTE: ", tmp.configuration.year, " indicated in the configuration has no matrices in ", paste(state, "SGPt_Baseline_Matrices", sep="_")))
166-
if (tmp.data.last.year > tail(matrix.years, 1L)) tmp.matrix.year <- tail(matrix.years, 1L)
167-
if (tmp.data.last.year < head(matrix.years, 1L)) tmp.matrix.year <- head(matrix.years, 1L)
168-
if (!exists("tmp.matrix.year")) tmp.matrix.year <- tmp.configuration.year
162+
if (is.null(coefficient.matrices.year)) {
163+
matrix.years <- getRLIMatrixYears(score.type)
164+
tmp.configuration.year <- paste(configuration.year, match(testing.window, c("FALL", "WINTER", "SPRING")), sep=".")
165+
tmp.data.last.year <- tail(sort(unique(additional.data[['YEAR']])), 1L)
166+
if (!tmp.configuration.year %in% matrix.years) {
167+
messageSGP(paste0("\tNOTE: ", tmp.configuration.year, " indicated in the configuration has no matrices in ", paste(state, "SGPt_Baseline_Matrices", sep="_")))
168+
if (tmp.data.last.year > tail(matrix.years, 1L)) tmp.matrix.year <- tail(matrix.years, 1L)
169+
if (tmp.data.last.year < head(matrix.years, 1L)) tmp.matrix.year <- head(matrix.years, 1L)
170+
if (!exists("tmp.matrix.year")) tmp.matrix.year <- tmp.configuration.year
171+
} else {
172+
tmp.matrix.year <- tmp.configuration.year
173+
}
169174
} else {
170-
tmp.matrix.year <- tmp.configuration.year
175+
tmp.matrix.year <- coefficient.matrices.year
171176
}
172177
matrix.label <- paste0(paste(state, "SGPt_Baseline_Matrices", sep="_"), "$", paste(state, "SGPt_Baseline_Matrices", tmp.matrix.year, sep="_"))
173178
messageSGP(paste0("\tNOTE: rliSGP using matrices ", paste(state, "SGPt_Baseline_Matrices", tmp.matrix.year, sep="_")))

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-3-18"), "\n",
38+
magenta(bold("\uD83C\uDF89 SGP v", installed.version, sep="")), " - ", toOrdinal::toOrdinalDate("2025-4-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.96-brightgreen.svg)](https://github.com/CenterForAssessment/SGP)
8+
[![Development Version](https://img.shields.io/badge/devel-2.2--1.98-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

-884 Bytes
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.96",
12+
note = "R package version 2.2-1.98",
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.96)",
17+
"(R package version 2.2-1.98)",
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.96\cr
23-
Date: \tab 2025-3-18\cr
22+
Version: \tab 2.2-1.98\cr
23+
Date: \tab 2025-4-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
@@ -27,6 +27,7 @@ rliSGP(
2727
simulate.sgps=FALSE,
2828
save.intermediate.results=FALSE,
2929
coefficient.matrices=NULL,
30+
coefficient.matrices.year=NULL,
3031
goodness.of.fit.print=FALSE,
3132
return.updated.shell=FALSE,
3233
fix.duplicates="KEEP.ALL",
@@ -81,6 +82,8 @@ analysis. Default is NULL, no ID replacement is performed.
8182
}
8283
\item{coefficient.matrices}{List of baseline matrices to be used for analyses (overrides what exists in \code{SGPstateData}). Defaults to NULL (use those in \code{SGPstateData}).
8384
}
85+
\item{coefficient.matrices.year}{Year associated with coefficient matrices to be used for analyses. Defaults to NULL which will use the most recent matrices calculated before the year provided in the data.
86+
}
8487
\item{goodness.of.fit.print}{Boolean argument passed to \code{\link{updateSGP}} indicating whether to print goodness of fit plots associated with outcome. Default is FALSE.
8588
}
8689
\item{return.updated.shell}{Boolean argument (defaults to FALSE) indicating whether to return \code{sgp_object} as part of call to \code{rliSGP}.

0 commit comments

Comments
 (0)