ismt_scores {ismtchile}R Documentation

Cálculos finales de ISMT – ISMT final calculations

Description

Ejecuta los cálculos finales de ISMT. Define los grupos socioeconómicos por unidad territorial y los cuantifica en varias categorías. || || Executes the final ISMT calculations. Defines the socio-economic groups and quantifies them in several categories.

Usage

ismt_scores(df, r, ismt_score = "ismt_pn", grouping = "geocode")

Arguments

df

objeto data.frame. Asume que la base de datos ha pasado por cleanup(), precalc(), y get_pca(). || || data.frame object. Assumes the database has been through cleanup(), precalc(), and get_pca().

r

integer. Número de la región de trabajo. Acepta valores entre 1 y 16; si r = 99, se utilizan valores a nivel nacional. || || integer. Number of the working region. Accepts values between 1 and 16; if r = 99, national-level values will be used.

ismt_score

string. Nombre del campo del puntaje ISMT, calculado desde get_pca(). Default es ismt_pn. || || string. Name of the ISMT sscore field, as calculated from get_pca()]. Default is ismt_pn.

grouping

string. Nombre del campo con la variable de la unidad espacial agrupadora. Default es geocode. || || string. Name of the field with the spacial grouping unit variable. Default is geocode.

Value

objeto data.frame agrupado por la unidad espacial especificada con información de ISMT. || || data.frame object grouped by the specified spatial unit with ISMT information.

Examples

 data(c17_example)
 clean <- c17_example |> literalize(2017) |> cleanup() |> precalc() |> get_pca() |> ismt_scores(10)

[Package ismtchile version 2.1.5 Index]