Skip to contents

Builds a count matrix (age x region) and the row-normalised proportion matrix of unique-individual placements for one fiscal year, optionally filtered by gender.

Usage

morie_otis_rplace(
  df,
  year,
  sex = NULL,
  id_col = "unique_individual_id",
  age_col = "age_category",
  region_col = "region_at_time_of_placement",
  year_col = "end_fiscal_year",
  gender_col = "gender"
)

Arguments

df

data.frame of OTIS placement records.

year

Integer fiscal year (e.g. 2024 for FY 2023/24).

sex

Optional gender filter ("Male" / "Female"); NULL = all.

id_col, age_col, region_col, year_col, gender_col

Column names.

Value

morie_otis_result list.

Examples

if (FALSE) { # \dontrun{
  df <- morie_otis_load()
  morie_otis_rplace(df, year = 2024)
} # }