datos_originales <- readr::read_delim(
ruta, delim=delimitador, trim_ws=TRUE, show_col_types=FALSE,
name_repair="minimal", col_types=readr::cols(.default=readr::col_character())
)
## Carga exitosa: 47.501 registros y 56 variables.
valores_txt <- stringr::str_squish(as.character(datos_originales[[columna_tvd]]))
valores_txt[toupper(valores_txt) %in% c("", "NA", "N/A", "NULL")] <- NA
valores_limpios <- gsub(",", "", valores_txt)
Variable <- suppressWarnings(as.numeric(valores_limpios))
n_total <- length(Variable)
n_nulos <- sum(is.na(Variable))
Variable <- Variable[!is.na(Variable)]
N <- length(Variable)
n_ceros <- sum(Variable == 0)
if (N == 0L) stop("No hay registros válidos de True Vertical Depth.")
Minimo_real <- min(Variable)
Maximo_real <- max(Variable)
cat("Variable analizada: True Vertical Depth, ft | Unidad: pies (ft)\n")
## Variable analizada: True Vertical Depth, ft | Unidad: pies (ft)
cat("Observaciones útiles (N):", fmt_entero(N), "| Nulos omitidos:", fmt_entero(n_nulos), "| Valores en 0:", fmt_entero(n_ceros), "\n")
## Observaciones útiles (N): 47.496 | Nulos omitidos: 5 | Valores en 0: 14.726
cat("Mínimo:", fmt_num(Minimo_real, 0), "| Máximo:", fmt_num(Maximo_real, 0), "pies\n")
## Mínimo: 0 | Máximo: 11953 pies
Escala: la profundidad vertical verdadera es cuantitativa continua de escala de razón (el 0 ft indica ausencia de profundidad). El conjunto incluye 14.726 pozos con valor 0 ft (31.00%), que se mantienen en el análisis.
| VARIABLE | TIPO | ESCALA DE MEDICIÓN | UNIDAD DE MEDIDA | UNIDAD DE ANÁLISIS | REGISTROS VÁLIDOS (N) |
|---|---|---|---|---|---|
| TRUE VERTICAL DEPTH (Profundidad vertical verdadera, ft) | Cuantitativa continua | Razón | Pies (ft) | Pozo regulado | 47.496 |
R_sturges <- Maximo_real - Minimo_real
k_sturges <- ceiling(1 + 3.322 * log10(N))
Amplitud_sturges <- R_sturges / k_sturges
cortes_sturges <- Minimo_real + (0:k_sturges) * Amplitud_sturges
cortes_sturges[k_sturges + 1] <- Maximo_real # evita errores de redondeo en el extremo
Li_sturges <- cortes_sturges[1:k_sturges]
Ls_sturges <- cortes_sturges[2:(k_sturges + 1)]
MC_sturges <- (Li_sturges + Ls_sturges) / 2
inter_sturges <- cut(Variable, breaks=cortes_sturges, include.lowest=TRUE, right=FALSE)
ni_sturges <- as.vector(table(inter_sturges))
hi_sturges <- ni_sturges / N
TDF_Sturges <- data.frame(Li=Li_sturges, Ls=Ls_sturges, MC=MC_sturges,
ni=ni_sturges, hi=hi_sturges, hi_perc=hi_sturges * 100)
stopifnot(sum(TDF_Sturges$ni) == N)
cat("Número de intervalos (k):", k_sturges, "\n")
## Número de intervalos (k): 17
cat("Amplitud exacta de clase:", round(Amplitud_sturges, 4), "\n")
## Amplitud exacta de clase: 703.1176
tabla_sturges <- data.frame(
"LÍM. INF (ft)"=fmt_num(TDF_Sturges$Li, 3),
"LÍM. SUP (ft)"=fmt_num(TDF_Sturges$Ls, 3),
"MARCA DE CLASE (xᵢ)"=fmt_num(TDF_Sturges$MC, 3),
"FRECUENCIA ABSOLUTA (nᵢ)"=fmt_entero(TDF_Sturges$ni),
"FRECUENCIA RELATIVA (hᵢ)"=sprintf("%.4f", TDF_Sturges$hi),
"FRECUENCIA RELATIVA PORCENTUAL (%)"=sprintf("%.2f%%", TDF_Sturges$hi_perc),
check.names=FALSE
)
tabla_sturges <- rbind(tabla_sturges, data.frame(
"LÍM. INF (ft)"="TOTAL", "LÍM. SUP (ft)"="", "MARCA DE CLASE (xᵢ)"="",
"FRECUENCIA ABSOLUTA (nᵢ)"=fmt_entero(sum(TDF_Sturges$ni)),
"FRECUENCIA RELATIVA (hᵢ)"="1.0000", "FRECUENCIA RELATIVA PORCENTUAL (%)"="100.00%",
check.names=FALSE
))
cat(crear_cuadro(tabla_sturges, 1,
paste0("Distribución de frecuencias de la profundidad vertical verdadera (ft) — Regla de Sturges, límites exactos, Nueva York, 1860 - 2026 (k = ", k_sturges, ")"),
align=c("c","c","c","r","r","r")))
| LÍM. INF (ft) | LÍM. SUP (ft) | MARCA DE CLASE (xᵢ) | FRECUENCIA ABSOLUTA (nᵢ) | FRECUENCIA RELATIVA (hᵢ) | FRECUENCIA RELATIVA PORCENTUAL (%) |
|---|---|---|---|---|---|
| 0.000 | 703.118 | 351.559 | 16.247 | 0.3421 | 34.21% |
| 703.118 | 1406.235 | 1054.676 | 11.354 | 0.2391 | 23.91% |
| 1406.235 | 2109.353 | 1757.794 | 9.633 | 0.2028 | 20.28% |
| 2109.353 | 2812.471 | 2460.912 | 3.136 | 0.0660 | 6.60% |
| 2812.471 | 3515.588 | 3164.029 | 2.161 | 0.0455 | 4.55% |
| 3515.588 | 4218.706 | 3867.147 | 2.607 | 0.0549 | 5.49% |
| 4218.706 | 4921.824 | 4570.265 | 1.501 | 0.0316 | 3.16% |
| 4921.824 | 5624.941 | 5273.382 | 311 | 0.0065 | 0.65% |
| 5624.941 | 6328.059 | 5976.500 | 92 | 0.0019 | 0.19% |
| 6328.059 | 7031.176 | 6679.618 | 65 | 0.0014 | 0.14% |
| 7031.176 | 7734.294 | 7382.735 | 88 | 0.0019 | 0.19% |
| 7734.294 | 8437.412 | 8085.853 | 34 | 0.0007 | 0.07% |
| 8437.412 | 9140.529 | 8788.971 | 42 | 0.0009 | 0.09% |
| 9140.529 | 9843.647 | 9492.088 | 91 | 0.0019 | 0.19% |
| 9843.647 | 10546.765 | 10195.206 | 76 | 0.0016 | 0.16% |
| 10546.765 | 11249.882 | 10898.324 | 33 | 0.0007 | 0.07% |
| 11249.882 | 11953.000 | 11601.441 | 25 | 0.0005 | 0.05% |
| TOTAL | 47.496 | 1.0000 | 100.00% |
Fuente: Oil, Gas & Other Regulated Wells: Beginning 1860.
Los límites exactos de Sturges (Cuadro N° 1) son poco prácticos, por lo que se redondean a múltiplos de 10 manteniendo el mismo número de clases (k).
BASE <- 10
min_int <- floor(Minimo_real / BASE) * BASE
max_int <- ceiling(Maximo_real / BASE) * BASE
k_int_sug <- k_sturges # se mantiene el mismo k obtenido en el paso 1 (Sturges)
Rango_int <- max_int - min_int
Amplitud_int <- ceiling((Rango_int / k_int_sug) / BASE) * BASE
if (Amplitud_int == 0) Amplitud_int <- BASE
cortes_int <- seq(from=min_int, by=Amplitud_int, length.out=k_int_sug + 1)
if (max(cortes_int) < Maximo_real) cortes_int <- c(cortes_int, max(cortes_int) + Amplitud_int)
while (length(cortes_int) > 2 && cortes_int[length(cortes_int) - 1] >= Maximo_real) {
cortes_int <- cortes_int[-length(cortes_int)]
}
K_real <- length(cortes_int) - 1
inter_int <- cut(Variable, breaks=cortes_int, include.lowest=TRUE, right=FALSE)
ni_int <- as.vector(table(inter_int))
hi_int_unit <- ni_int / N
hi_int_perc <- hi_int_unit * 100
TDF_Enteros <- data.frame(
Li = cortes_int[1:K_real],
Ls = cortes_int[2:(K_real + 1)],
MC = (cortes_int[1:K_real] + cortes_int[2:(K_real + 1)]) / 2,
ni = ni_int,
hi_unit = hi_int_unit,
hi_perc = hi_int_perc,
Ni_asc = cumsum(ni_int),
Ni_desc = rev(cumsum(rev(ni_int))),
Hi_asc_perc = cumsum(hi_int_perc),
Hi_desc_perc = rev(cumsum(rev(hi_int_perc)))
)
stopifnot(sum(TDF_Enteros$ni) == N)
cat("Clases ajustadas (k), consistentes con Sturges:", K_real, "\n")
## Clases ajustadas (k), consistentes con Sturges: 17
cat("Amplitud ajustada:", Amplitud_int, "pies\n")
## Amplitud ajustada: 710 pies
tabla_final <- data.frame(
"LÍM. INF (ft)"=fmt_num(TDF_Enteros$Li, 0),
"LÍM. SUP (ft)"=fmt_num(TDF_Enteros$Ls, 0),
"MARCA DE CLASE (xᵢ)"=fmt_num(TDF_Enteros$MC, 1),
"nᵢ"=fmt_entero(TDF_Enteros$ni),
"hᵢ"=sprintf("%.4f", TDF_Enteros$hi_unit),
"hᵢ (%)"=sprintf("%.2f", TDF_Enteros$hi_perc),
"Nᵢ (↑)"=fmt_entero(TDF_Enteros$Ni_asc),
"Nᵢ (↓)"=fmt_entero(TDF_Enteros$Ni_desc),
"Hᵢ (% ↑)"=sprintf("%.2f", TDF_Enteros$Hi_asc_perc),
"Hᵢ (% ↓)"=sprintf("%.2f", TDF_Enteros$Hi_desc_perc),
check.names=FALSE
)
tabla_final <- rbind(tabla_final, data.frame(
"LÍM. INF (ft)"="TOTAL", "LÍM. SUP (ft)"="", "MARCA DE CLASE (xᵢ)"="",
"nᵢ"=fmt_entero(sum(TDF_Enteros$ni)), "hᵢ"="1.0000", "hᵢ (%)"="100.00",
"Nᵢ (↑)"="", "Nᵢ (↓)"="", "Hᵢ (% ↑)"="", "Hᵢ (% ↓)"="", check.names=FALSE
))
cat(crear_cuadro(tabla_final, 2,
"Distribución de frecuencias de los pozos regulados según la profundidad vertical verdadera (ft), límites enteros, Nueva York, 1860 - 2026",
desplazamiento=(K_real > 15L), align=c("c","c","c",rep("r",7))))
| LÍM. INF (ft) | LÍM. SUP (ft) | MARCA DE CLASE (xᵢ) | nᵢ | hᵢ | hᵢ (%) | Nᵢ (↑) | Nᵢ (↓) | Hᵢ (% ↑) | Hᵢ (% ↓) |
|---|---|---|---|---|---|---|---|---|---|
| 0 | 710 | 355.0 | 16.277 | 0.3427 | 34.27 | 16.277 | 47.496 | 34.27 | 100.00 |
| 710 | 1420 | 1065.0 | 11.558 | 0.2433 | 24.33 | 27.835 | 31.219 | 58.60 | 65.73 |
| 1420 | 2130 | 1775.0 | 9.509 | 0.2002 | 20.02 | 37.344 | 19.661 | 78.63 | 41.40 |
| 2130 | 2840 | 2485.0 | 3.106 | 0.0654 | 6.54 | 40.450 | 10.152 | 85.17 | 21.37 |
| 2840 | 3550 | 3195.0 | 2.179 | 0.0459 | 4.59 | 42.629 | 7.046 | 89.75 | 14.83 |
| 3550 | 4260 | 3905.0 | 2.670 | 0.0562 | 5.62 | 45.299 | 4.867 | 95.37 | 10.25 |
| 4260 | 4970 | 4615.0 | 1.404 | 0.0296 | 2.96 | 46.703 | 2.197 | 98.33 | 4.63 |
| 4970 | 5680 | 5325.0 | 253 | 0.0053 | 0.53 | 46.956 | 793 | 98.86 | 1.67 |
| 5680 | 6390 | 6035.0 | 94 | 0.0020 | 0.20 | 47.050 | 540 | 99.06 | 1.14 |
| 6390 | 7100 | 6745.0 | 66 | 0.0014 | 0.14 | 47.116 | 446 | 99.20 | 0.94 |
| 7100 | 7810 | 7455.0 | 82 | 0.0017 | 0.17 | 47.198 | 380 | 99.37 | 0.80 |
| 7810 | 8520 | 8165.0 | 33 | 0.0007 | 0.07 | 47.231 | 298 | 99.44 | 0.63 |
| 8520 | 9230 | 8875.0 | 50 | 0.0011 | 0.11 | 47.281 | 265 | 99.55 | 0.56 |
| 9230 | 9940 | 9585.0 | 93 | 0.0020 | 0.20 | 47.374 | 215 | 99.74 | 0.45 |
| 9940 | 10650 | 10295.0 | 67 | 0.0014 | 0.14 | 47.441 | 122 | 99.88 | 0.26 |
| 10650 | 11360 | 11005.0 | 38 | 0.0008 | 0.08 | 47.479 | 55 | 99.96 | 0.12 |
| 11360 | 12070 | 11715.0 | 17 | 0.0004 | 0.04 | 47.496 | 17 | 100.00 | 0.04 |
| TOTAL | 47.496 | 1.0000 | 100.00 |
Fuente: Oil, Gas & Other Regulated Wells: Beginning 1860.
Interpretación: el intervalo de profundidad con mayor concentración de pozos es [0 – 710) pies, con 16.277 pozos (34.27% de los 47.496 registros válidos). Hasta los 1420 pies se acumula al menos el 50 % de los pozos.
ggplot2::ggplot(tabla_graf, ggplot2::aes(x=intervalo, y=ni, fill=intervalo)) +
ggplot2::geom_col(width=.72, color="#244861", linewidth=.36) +
ggplot2::geom_text(ggplot2::aes(label=fmt_entero(ni)), vjust=-.48,
size=4.5, fontface="bold", color="#15364C") +
ggplot2::scale_fill_manual(values=colores) +
ggplot2::scale_y_continuous(limits=c(0, limite_ni_local), labels=fmt_entero,
expand=ggplot2::expansion(mult=c(0,0))) +
ggplot2::coord_cartesian(clip="off") +
ggplot2::labs(title="Gráfica N° 1: Frecuencia absoluta (nᵢ) local",
x="Profundidad vertical verdadera (ft)", y="Frecuencia absoluta (nᵢ)", caption=fuente_graficas) +
tema_barras
ggplot2::ggplot(tabla_graf, ggplot2::aes(x=intervalo, y=ni)) +
ggplot2::geom_col(fill=color_barras, color="#244861", width=.72, linewidth=.36) +
ggplot2::geom_text(ggplot2::aes(label=fmt_entero(ni)), vjust=-.48,
size=4.5, fontface="bold", color="#15364C") +
ggplot2::scale_y_continuous(limits=c(0, limite_ni_global), labels=fmt_entero,
expand=ggplot2::expansion(mult=c(0,0))) +
ggplot2::coord_cartesian(clip="off") +
ggplot2::labs(title="Gráfica N° 2: Frecuencia absoluta (nᵢ) global",
x="Profundidad vertical verdadera (ft)", y="Frecuencia absoluta (nᵢ)", caption=fuente_graficas) +
tema_barras
ggplot2::ggplot(tabla_graf, ggplot2::aes(x=intervalo, y=hi_unit, fill=intervalo)) +
ggplot2::geom_col(width=.72, color="#244861", linewidth=.36) +
ggplot2::geom_text(ggplot2::aes(label=sprintf("%.2f%%", hi_perc)), vjust=-.48,
size=4.3, fontface="bold", color="#15364C") +
ggplot2::scale_fill_manual(values=colores) +
ggplot2::scale_y_continuous(limits=c(0, limite_hi_local), labels=etiqueta_pct,
expand=ggplot2::expansion(mult=c(0,0))) +
ggplot2::coord_cartesian(clip="off") +
ggplot2::labs(title="Gráfica N° 3: Frecuencia relativa (hᵢ) local",
x="Profundidad vertical verdadera (ft)", y="Frecuencia relativa (%)", caption=fuente_graficas) +
tema_barras
ggplot2::ggplot(tabla_graf, ggplot2::aes(x=intervalo, y=hi_unit)) +
ggplot2::geom_col(fill=color_barras, color="#244861", width=.72, linewidth=.36) +
ggplot2::geom_text(ggplot2::aes(label=sprintf("%.2f%%", hi_perc)), vjust=-.48,
size=4.3, fontface="bold", color="#15364C") +
ggplot2::scale_y_continuous(limits=c(0, limite_hi_global), breaks=seq(0, 1, by=.2),
labels=etiqueta_pct, expand=ggplot2::expansion(mult=c(0,0))) +
ggplot2::coord_cartesian(clip="off") +
ggplot2::labs(title="Gráfica N° 4: Frecuencia relativa (hᵢ) global",
x="Profundidad vertical verdadera (ft)", y="Frecuencia relativa (%)", caption=fuente_graficas) +
tema_barras
col_grid <- "#DDE6ED"
eje_x <- pretty(Variable, n=8)
par(mar=c(7, 5, 4, 2))
plot(NULL, xlim=range(eje_x), ylim=c(0.4, 1.6), axes=FALSE, xlab="", ylab="",
main="Gráfica N° 5: Diagrama de caja de la profundidad vertical verdadera")
abline(v=eje_x, col=col_grid, lty="dotted") # cuadrícula detrás de la caja
boxplot(Variable, horizontal=TRUE, at=1, add=TRUE, axes=FALSE, col=color_barras,
border="#15364C", medlwd=3, outline=TRUE, outcol=color_outlier,
boxwex=0.5, frame.plot=FALSE)
axis(1, at=eje_x, labels=fmt_entero(eje_x), las=2, cex.axis=0.9)
mtext("Profundidad vertical verdadera (ft)", side=1, line=5.5)
ojiva_df <- data.frame(
x = c(TDF_Enteros$Ls, TDF_Enteros$Li),
y = c(TDF_Enteros$Hi_asc_perc, TDF_Enteros$Hi_desc_perc),
tipo = rep(c("Ascendente", "Descendente"), each=K_real)
)
ggplot2::ggplot(ojiva_df, ggplot2::aes(x=x, y=y, color=tipo, group=tipo)) +
ggplot2::geom_line(linewidth=1.2) +
ggplot2::geom_point(size=2.8) +
ggplot2::scale_color_manual(values=c(Ascendente=color_ojiva1, Descendente=color_ojiva2)) +
ggplot2::scale_x_continuous(labels=fmt_entero) +
ggplot2::scale_y_continuous(labels=function(x) paste0(x, "%"), limits=c(0, 105),
expand=ggplot2::expansion(mult=c(0, 0))) +
ggplot2::labs(title="Gráfica N° 6: Ojivas ascendente y descendente",
x="Profundidad vertical verdadera (ft)", y="Frecuencia acumulada (%)", color=NULL,
caption=fuente_graficas) +
tema_barras +
ggplot2::theme(legend.position="bottom",
legend.text=ggplot2::element_text(size=13),
axis.text.x=ggplot2::element_text(angle=0, hjust=.5),
panel.grid.major.x=ggplot2::element_line(color="#DDE6ED", linewidth=.35))
Profundidad vertical verdadera es cuantitativa continua de escala de razón (sección 3): se calculan tendencia central, dispersión, forma y valores atípicos.
media <- mean(Variable)
mediana <- median(Variable)
moda_val <- TDF_Enteros$MC[which.max(TDF_Enteros$ni)] # marca de clase de la clase modal
varianza <- var(Variable)
sd_val <- sd(Variable)
CV <- (sd_val / abs(media)) * 100
asim <- e1071::skewness(Variable, type=2)
kurt <- e1071::kurtosis(Variable) # curtosis en exceso (normal = 0)
Q1 <- quantile(Variable, 0.25); Q3 <- quantile(Variable, 0.75); IQR_val <- Q3 - Q1
outliers_data <- Variable[Variable < (Q1 - 1.5*IQR_val) | Variable > (Q3 + 1.5*IQR_val)]
num_out <- length(outliers_data)
out_txt <- if (num_out > 0) {
paste0(fmt_entero(num_out), " [", fmt_num(min(outliers_data), 0), "; ", fmt_num(max(outliers_data), 0), "]")
} else "0 [Sin outliers]"
ind <- data.frame(
"Variable"="Profundidad vertical verdadera (ft)",
"Rango"=paste0("[", fmt_num(min(Variable),0), "; ", fmt_num(max(Variable),0), "]"),
"Media (X̄)"=fmt_num(media, 2), "Mediana (Me)"=fmt_num(mediana, 2), "Moda (Mo)"=fmt_num(moda_val, 2),
"Varianza (S²)"=fmt_num(varianza, 2), "Desv. Est. (S)"=fmt_num(sd_val, 2),
"C.V. (%)"=fmt_num(CV, 2),
"Asimetría (As)"=fmt_num(asim, 4), "Curtosis (K)"=fmt_num(kurt, 4),
"Outliers [Intervalo]"=out_txt, check.names=FALSE
)
k <- knitr::kable(ind, format="html", escape=TRUE, align=c("l", rep("c", 10))) |>
kableExtra::kable_styling(bootstrap_options=c("striped","condensed"),
full_width=TRUE, position="center") |>
kableExtra::add_header_above(c("Variable"=2, "Tendencia central"=3,
"Dispersión"=3, "Forma"=2, "Valores atípicos"=1), bold=TRUE, background="#dddfe2") |>
kableExtra::row_spec(0, bold=TRUE, background="#f1f2f4")
cat('<div class="cuadro indicadores">',
'<div class="cuadro-titulo">Cuadro N° 3: Indicadores estadísticos de Profundidad vertical verdadera (ft), Nueva York, 1860 - 2026</div>',
as.character(k),
'<p class="cuadro-nota"><strong>Registros válidos (N):</strong> ', fmt_entero(N),
' | <strong>Clases (k):</strong> ', K_real,
' | <strong>Amplitud:</strong> ', Amplitud_int, ' pies',
' | <strong>Q1:</strong> ', fmt_num(Q1,0),
' | <strong>Q3:</strong> ', fmt_num(Q3,0), '.</p>',
'<p class="cuadro-nota">La moda se calcula como la marca de clase del intervalo de mayor frecuencia. La curtosis se expresa en exceso respecto a la normal (K = 0).</p>',
'<p class="cuadro-fuente">Fuente: Oil, Gas & Other Regulated Wells: Beginning 1860.</p></div>', sep="")
| Variable | Rango | Media (X̄) | Mediana (Me) | Moda (Mo) | Varianza (S²) | Desv. Est. (S) | C.V. (%) | Asimetría (As) | Curtosis (K) | Outliers [Intervalo] |
|---|---|---|---|---|---|---|---|---|---|---|
| Profundidad vertical verdadera (ft) | [0; 11953] | 1427.78 | 1252.00 | 355.00 | 2224402.30 | 1491.44 | 104.46 | 1.8150 | 6.0626 | 927 [4851; 11953] |
Registros válidos (N): 47.496 | Clases (k): 17 | Amplitud: 710 pies | Q1: 0 | Q3: 1940.
La moda se calcula como la marca de clase del intervalo de mayor frecuencia. La curtosis se expresa en exceso respecto a la normal (K = 0).
Fuente: Oil, Gas & Other Regulated Wells: Beginning 1860.
Las profundidades verticales verdaderas de los pozos regulados de Nueva York fluctúan entre 0 y 11953 pies y giran en torno a 1252.00 pies (mediana), con una media de 1427.78 pies y una desviación estándar de 1491.44, lo que da un conjunto de datos heterogéneo (C.V. = 104.46%). La distribución es asimétrica positiva (cola hacia las profundidades altas) (As = 1.8150) y leptocúrtica (más concentrada que la normal) (K = 6.0626), y presenta 927 valores atípicos (entre 4851 y 11953 pies). El intervalo con más pozos es [0 – 710) pies, con 34.27% de los registros válidos, lo que muestra que la actividad de perforación se concentra en determinadas franjas de profundidad. Cabe señalar que 14.726 pozos (31.00%) registran profundidad 0 ft y que 5 registros sin dato fueron excluidos del análisis.
Autor: Estalin Echeverría | Grupo 5 | Análisis Estadístico — Oil, Gas & Other Regulated Wells - NY State