2438_es-ES
Personalizar cuantilesHola JMPers,
¿Hay alguna forma de cambiar los cuantiles en el informe de histograma?
Gracias,Re: Personalizar cuantiles¿Estás tratando de hacer algo como esto?
style="font-size: 10pt; font-family: "Courier New"; color: black;">dt
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Abrir
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"$SAMPLE_DATA/fitness.jmp"
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">nw
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Nuevo
Ventana
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
(
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"Resumen"
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
dist
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
dt
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
Distribución (
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
Pila (
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
frecuencia (
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">:
style="font-size: 10pt; font-family: "Courier New"; color: black;">Peso
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
Continuo
Distribución (
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Columna
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">:
style="font-size: 10pt; font-family: "Courier New"; color: black;">Oxy
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
cuantiles (
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
Momentos (
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">0
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
Parte aislada
diagrama de caja (
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">0
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
Contar
Eje (
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
Espectáculo
porcentajes (
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
Espectáculo
cuenta (
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
Por (
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">:
style="font-size: 10pt; font-family: "Courier New"; color: black;">Sexo
)
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
rdist
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
dist
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Informe
style="font-size: 10pt; font-family: "Courier New"; color: black;">()
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Resumir
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
grupos
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
por (
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">:
style="font-size: 10pt; font-family: "Courier New"; color: black;">Sexo
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
reflines
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Media
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">:
style="font-size: 10pt; font-family: "Courier New"; color: black;">Oxy
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
P95
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Cuantil
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">:
style="font-size: 10pt; font-family: "Courier New"; color: black;">Oxy
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">0,95
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
norte
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">N
Elementos
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
grupos )
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Para
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">j
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">1
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">j
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;"><=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
norte
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">j
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">++,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
rdist [
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">j
style="font-size: 10pt; font-family: "Courier New"; color: black;">][
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"Quantiles"
style="font-size: 10pt; font-family: "Courier New"; color: black;">]
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
Eliminar
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
( rdist [
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">j
style="font-size: 10pt; font-family: "Courier New"; color: black;">][
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"Oxy"
style="font-size: 10pt; font-family: "Courier New"; color: black;">])
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
adjuntar (
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Contorno
Caja
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"Quantiles"
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Tabla
Caja
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">String
Col Caja
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">""
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
{
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"95.0%"
style="font-size: 10pt; font-family: "Courier New"; color: negro;">}
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Número
Col Caja
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">""
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
{ P95 [
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">j
style="font-size: 10pt; font-family: "Courier New"; color: black;">]}
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
)
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
)
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
rdist [
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">j
style="font-size: 10pt; font-family: "Courier New"; color: black;">][
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">][
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">][
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">][
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">][
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">][
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">][
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">][
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">]
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
añadir línea de referencia (
reflines [
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">j
style="font-size: 10pt; font-family: "Courier New"; color: black;">]
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
sólido
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"Red"
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;Re: Personalizar cuantilesYa no estoy seguro de lo que estás tratando de hacer. Sin embargo, la declaración "P95 = Cuantil (: Oxy, 0.95);"
debiera ser
P95 = Cuantil Col(:Oxy, 0.95);
ser sintácticamente correcto.Re: Personalizar cuantilesHola,
Aquí está el script que tengo, verifique cómo puedo obtener el P95.
Muchas gracias por el tiempo y el esfuerzo.
==========================================
dt = Abrir ("$SAMPLE_DATA/fitness.jmp");
nw = Nueva ventana (("Resumen"),
Biv = dt << Distribución( Pila(1),
Frecuencia(:Peso),
Distribución continua (
Columna( :Oxi ),
Cuantiles (1),
Momentos (0),
Diagrama de caja de valores atípicos (0),
Contar eje( 1 ),
Mostrar porcentajes ( 1 ),
Mostrar recuentos ( 1 ),
), Por( :Sexo ));
rbiv = Biv << Informe();
Resumir( grupos = por( :Sexo ), reflines = Media( :Oxy ));
n = N elementos (grupos);
Para( j = 1, j <= n, j++,
rbiv[1][1][1][1][1][1][1][1] <<
añadir línea de referencia (reflines, rojo sólido" ));
rdist = Informe (Biv);
rdist["Cuantiles"]<
P95 = Cuantil(:Oxy,0.95);
(rdist["Oxy"])<Cuadro de contorno ("Cuantiles",
Cuadro de tabla (Cuadro de columna de cadena ("",{"95.0%",}),
Cuadro de columna de número ("",P95)
))));Re: Personalizar cuantilesEl resumen no parecía respetar una columna con el rol de frecuencia para los cuantiles cuando lo probé, aunque lo hace para las medias. Tal vez debería decir que los resultados que obtuve usando el resumen en una columna donde existía otra columna con un rol de frecuencia diferían de los resultados que obtuve usando el resumen en la tabla expandida. Es posible que las diversas funciones de cuantiles en JMP no utilicen todas el mismo algoritmo para tratar los empates. Si el tiempo lo permite, volveré a verificar usando el resumen, ya que sería preferible.
Ok, esto es lo que probé. Abrí los datos de condición física y ejecuté el Resumen de edad, que me dio una tabla de edades y sus frecuencias (filas N a las que renombré Freq). Le di a Freq el rol de frecuencia. Ejecuté Summary for Age en la tabla original y lo ejecuté nuevamente en la tabla de resumen. Elegí varios cuantiles. Encontré que los cuantiles 25 y 75 no estaban de acuerdo, aunque las medias sí lo estaban. Los cuantiles de la tabla de resumen eran los mismos que si no hubiera especificado una columna de frecuencia.
El mensaje fue editado por: mpbRe: Personalizar cuantiles¿Resumen no te da lo que quieres?Re: Personalizar cuantilesProbablemente haya una forma inteligente de hacer esto, pero aquí está el esquema de un método de fuerza bruta. La idea es simplemente crear una versión matricial de la tabla que contenga cada valor tantas veces como lo indique la columna de frecuencia y luego calcular los cuantiles deseados a partir de esa matriz. Algo como este código se combinaría con el ejemplo anterior en este hilo.
style="font-size: 10pt; font-family: "Courier New"; color: green;">/*
Supone una tabla con primero
columna como Y y segunda columna como Freq
style="font-size: 10pt; font-family: "Courier New"; color: green;">
estilo="">
Expande la columna Y a una sola
matriz columna con cada Y original
style="font-size: 10pt; font-family: "Courier New"; color: green;">
estilo="">
valor repetido Freq veces */
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
style="font-size: 10pt; font-family: "Courier New"; color: black;">dt
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Actual
Tabla de datos
style="font-size: 10pt; font-family: "Courier New"; color: black;">()
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">A
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
dt
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
obtener como matriz
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: verde;">//Mostrar(
A );
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">expandA
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
[]
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Para
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
i
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">1
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
i
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;"><=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">N
Filas
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
dt )
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
i
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">++,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
yval
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
A [ i
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">]
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
frecuencia
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
A [ i
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">2
style="font-size: 10pt; font-family: "Courier New"; color: black;">]
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
style="font-size: 10pt; font-family: "Courier New"; color: verde;">//Mostrar(
yval,
frecuencia);
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
expandirA
style="font-size: 10pt; font-family: "Courier New"; color: navy;">|/=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">J
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
frecuencia
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">1
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
yval )
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: verde;">//Mostrar(
expandirA);
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">minQ
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Cuantil
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">0.0
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
expandirA )
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">medQ
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Cuantil
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">0.5
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
expandirA )
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">maxQ
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Cuantil
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">1.0
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
expandirA )
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">mostrar
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">minQ
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">medQ
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">maxQ )Re: Personalizar cuantilesMPB,
Gracias por el guión. ¡¡¡Funciona!!! Muchísimas gracias,
Tengo otra preocupación. En el histograma, tengo datos de frecuencia además de la columna.
Intenté agregar la frecuencia en el script pero no funcionó.
Gracias,Re: Personalizar cuantilesDe ninguna manera incorporada que yo sepa. Sin embargo, puede eliminar el segmento Cuantiles predeterminado y reemplazarlo por uno personalizado que muestre los cuantiles que le interesan. El siguiente ejemplo básico sugiere cómo se podría hacer esto.
dt
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Abrir
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"$SAMPLE_DATA/fitness.jmp"
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">dist
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
Distribución (
Distribución Continua (
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Columna
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">:
style="font-size: 10pt; font-family: "Courier New"; color: black;">Oxy
)
)
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">rdist
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Informe
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
dist )
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">rdist [
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"Quantiles"
style="font-size: 10pt; font-family: "Courier New"; color: black;">]
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
Eliminar
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">maxQ
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Col
cuantil
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">:
style="font-size: 10pt; font-family: "Courier New"; color: black;">Oxy
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">medQ
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Col
cuantil
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">:
style="font-size: 10pt; font-family: "Courier New"; color: black;">Oxy
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">0.5
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">minQ
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Col
cuantil
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">:
style="font-size: 10pt; font-family: "Courier New"; color: black;">Oxy
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">0
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">rdist [
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"Oxy"
style="font-size: 10pt; font-family: "Courier New"; color: black;">])
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
adjuntar (
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Contorno
Caja
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"Quantiles"
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Tabla
Caja
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">String
Col Caja
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">""
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
{
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"100.0%"
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"50%"
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"0.0%"
style="font-size: 10pt; font-family: "Courier New"; color: negro;">}
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Número
Col Caja
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">""
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
{ maxQ
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
MedQ
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
minQ }
)
)
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
)
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; color: black;">