2438_fr-FR
Personnaliser les quantilesBonjour JMPers,
Existe-t-il un moyen de modifier les quantiles dans le rapport d'histogramme ?
Merci,Re : Personnaliser les quantilesEssayez-vous de faire quelque chose comme ça?
style="font-size: 10pt; font-family: "Courier New"; color: black;">dt
style="font-size: 10pt; font-family: "Courier New"; color: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Ouvrir
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: marine;">;
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: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Nouveau
Fenêtre
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;">"Résumé"
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
distance
style="font-size: 10pt; font-family: "Courier New"; color: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
dt
style="font-size: 10pt; font-family: "Courier New"; color: marine;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
Distribution (
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
Empiler (
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
Fréq (
style="font-size: 10pt; font-family: "Courier New"; color: marine;"> :
style="font-size: 10pt; font-family: "Courier New"; color: black;">Poids
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
Continu
Distribution (
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Colonne
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: marine;"> :
style="font-size: 10pt; font-family: "Courier New"; color: black;">Oxy
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
Quantiles (
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
Des moments (
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">0
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
Valeur aberrante
Boîte à moustaches (
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">0
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
Compter
Axe (
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
Spectacle
Pourcentages (
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
Spectacle
Comptes (
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
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="">
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
Par (
style="font-size: 10pt; font-family: "Courier New"; color: marine;"> :
style="font-size: 10pt; font-family: "Courier New"; color: black;">Sexe
)
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
rdiste
style="font-size: 10pt; font-family: "Courier New"; color: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
distance
style="font-size: 10pt; font-family: "Courier New"; color: marine;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Rapport
style="font-size: 10pt; font-family: "Courier New"; color: black;">()
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Résumer
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
groupes
style="font-size: 10pt; font-family: "Courier New"; color: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
par (
style="font-size: 10pt; font-family: "Courier New"; color: marine;"> :
style="font-size: 10pt; font-family: "Courier New"; color: black;">Sexe
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
reflines
style="font-size: 10pt; font-family: "Courier New"; color: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Moyenne
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: marine;"> :
style="font-size: 10pt; font-family: "Courier New"; color: black;">Oxy
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
P95
style="font-size: 10pt; font-family: "Courier New"; color: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Quantile
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: marine;"> :
style="font-size: 10pt; font-family: "Courier New"; color: black;">Oxy
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">0.95
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
n
style="font-size: 10pt; font-family: "Courier New"; color: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; couleur: rgb(0, 0, 221);">N
Articles
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
groupes )
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Pour
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"; couleur: rgb(0, 0, 221);">j
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">1
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; couleur: rgb(0, 0, 221);">j
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: marine;"><=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
n
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; couleur: rgb(0, 0, 221);">j
style="font-size: 10pt; font-family: "Courier New"; color: marine;">++,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
rdist [
style="font-size: 10pt; font-family: "Courier New"; couleur: 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: marine;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
effacer
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
( rdist [
style="font-size: 10pt; font-family: "Courier New"; couleur: 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: marine;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
ajouter (
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Contour
Boîte
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: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Table
Boîte
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);">Chaîne
Col Boîte
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: marine;">,
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: black;">}
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Number
Col Boîte
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: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
{ P95 [
style="font-size: 10pt; font-family: "Courier New"; couleur: 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;">
style="">
)
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
rdist [
style="font-size: 10pt; font-family: "Courier New"; couleur: rgb(0, 0, 221);">j
style="font-size: 10pt; font-family: "Courier New"; color: black;">][
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">][
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">][
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">][
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">][
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">][
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">][
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">][
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">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: marine;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
ajouter une ligne de référence (
reflines [
style="font-size: 10pt; font-family: "Courier New"; couleur: rgb(0, 0, 221);">j
style="font-size: 10pt; font-family: "Courier New"; color: black;">]
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
solide
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"Rouge"
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
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: marine;">;Re : Personnaliser les quantilesJe ne sais plus vraiment ce que vous essayez de faire. Cependant l'instruction "P95 = Quantile(:Oxy,0.95);"
devrait être
P95 = Col Quantile(:Oxy, 0,95);
être syntaxiquement correct.Re : Personnaliser les quantilesSalut,
Voici le script que j'ai, veuillez vérifier comment puis-je obtenir le P95.
Merci beaucoup pour le temps et les efforts.
=========================================
dt = Ouvrir ("$SAMPLE_DATA/fitness.jmp");
nw = Nouvelle fenêtre (("Résumé"),
Biv = dt << Répartition( Pile(1),
Fréq(:Poids),
Distribution continue(
Colonne( :Oxy ),
Quantiles (1),
Instants (0),
Boîte à moustaches (0),
Compter l'axe (1),
Afficher les pourcentages( 1 ),
Afficher les comptes (1),
), Par( :Sexe ));
rbiv = Biv << Rapport();
Summarize( groups = by( :Sex ), reflines = Mean( :Oxy ));
n = N éléments (groupes);
Pour( j = 1, j <= n, j++,
biv[1][1][1][1][1][1][1][1] <<
ajouter une ligne de référence (reflines, solide, "Rouge" ));
rdist = Report(Biv);
rdist["Quantiles"]<
P95 = Quantile(:Oxy,0.95);
(rdist["Oxy"])<Boîte de contour ("Quantiles",
Zone de table (chaîne Col Box ("",{"95.0%",}),
Numéro Col Boîte ("", P95)
))));Re : Personnaliser les quantilesLe résumé ne semblait pas honorer une colonne avec le rôle de fréquence pour les quantiles lorsque je l'ai essayé, bien que ce soit le cas pour les moyens. Peut-être devrais-je dire que les résultats que j'ai obtenus en utilisant le résumé sur une colonne où une autre colonne avec un rôle de fréquence existait différaient des résultats que j'ai obtenus en utilisant le résumé sur le tableau développé. Il est possible que les différentes fonctions quantiles de JMP n'utilisent pas toutes le même algorithme pour traiter les liens. Si le temps le permet, je revérifierai en utilisant le résumé car ce serait préférable.
Ok voici ce que j'ai essayé. J'ai ouvert les données de forme physique et exécuté Summary for Age qui m'a donné un tableau des âges et de leurs fréquences (N Rows que j'ai renommé Freq). J'ai donné à Freq le rôle de fréquence. J'ai exécuté Summary for Age dans le tableau d'origine et l'ai exécuté à nouveau dans le tableau récapitulatif. J'ai choisi plusieurs quantiles. J'ai constaté que les 25e et 75e quantiles ne concordaient pas, contrairement aux moyennes. Les quantiles du tableau récapitulatif étaient les mêmes que si je n'avais pas spécifié de colonne de fréquence.
Le message a été modifié par : mpbRe : Personnaliser les quantilesLe résumé ne vous donne-t-il pas ce que vous voulez ?Re : Personnaliser les quantilesIl existe probablement une manière astucieuse de procéder, mais voici les grandes lignes d'une méthode de force brute. L'idée est simplement de créer une version matricielle du tableau qui contient chaque valeur autant de fois qu'indiqué par la colonne de fréquence, puis de calculer les quantiles souhaités à partir de cette matrice. Quelque chose comme ce code serait combiné avec l'exemple précédent dans ce fil.
style="font-size: 10pt; font-family: "Courier New"; color: green;">/*
Suppose une table avec d'abord
colonne comme Y et deuxième colonne comme Freq
style="font-size: 10pt; font-family: "Courier New"; color: green;">
style="">
Développe la colonne Y en un seul
matrice de colonnes avec chaque Y d'origine
style="font-size: 10pt; font-family: "Courier New"; color: green;">
style="">
valeur répétée Freq fois */
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 10pt; font-family: "Courier New"; color: black;">dt
style="font-size: 10pt; font-family: "Courier New"; color: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Actuel
Tableau de données
style="font-size: 10pt; font-family: "Courier New"; color: black;">()
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
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: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
dt
style="font-size: 10pt; font-family: "Courier New"; color: marine;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
obtenir comme matrice
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: green;">//Show(
UN );
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: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
[]
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Pour
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
je
style="font-size: 10pt; font-family: "Courier New"; color: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">1
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
je
style="font-size: 10pt; font-family: "Courier New"; color: marine;"><=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; couleur: rgb(0, 0, 221);">N
Lignes
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: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
je
style="font-size: 10pt; font-family: "Courier New"; color: marine;">++,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
yval
style="font-size: 10pt; font-family: "Courier New"; color: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
UN [ je
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">]
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
valeur de fréquence
style="font-size: 10pt; font-family: "Courier New"; color: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
UN [ je
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">2
style="font-size: 10pt; font-family: "Courier New"; color: black;">]
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 10pt; font-family: "Courier New"; color: green;">//Show(
yval,
freqval );
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
développerA
style="font-size: 10pt; font-family: "Courier New"; color: marine;">|/=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; couleur: 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;">
valeur de fréquence
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">1
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
yval )
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
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: marine;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: green;">//Show(
développerA );
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: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Quantile
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: sarcelle;">0.0
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
développerA )
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
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: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Quantile
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: sarcelle;">0.5
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
développerA )
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
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: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Quantile
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: sarcelle;">1.0
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
développerA )
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
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);">show
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: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">medQ
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">maxQ )Re : Personnaliser les quantilesmpb,
Merci pour le scénario. Ça marche!!! Merci beaucoup,
J'ai un autre souci. Dans l'histogramme, j'ai des données de fréquence en dehors de la colonne,
J'ai essayé d'ajouter la fréquence dans le script mais cela n'a pas fonctionné.
Merci,Re : Personnaliser les quantilesAucun moyen intégré à ce que je sache. Cependant, vous pouvez supprimer le segment Quantiles par défaut et le remplacer par un segment personnalisé qui affiche les quantiles qui vous intéressent. L'exemple simple suivant suggère comment cela pourrait être fait.
dt
style="font-size: 10pt; font-family: "Courier New"; color: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Ouvrir
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: marine;">;
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: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
Distribution (
Distribution continue (
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Colonne
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: marine;"> :
style="font-size: 10pt; font-family: "Courier New"; color: black;">Oxy
)
)
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
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: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Rapport
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
distance )
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
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: marine;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
effacer
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
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: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Col
quantile
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: marine;"> :
style="font-size: 10pt; font-family: "Courier New"; color: black;">Oxy
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">1
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
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: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Col
quantile
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: marine;"> :
style="font-size: 10pt; font-family: "Courier New"; color: black;">Oxy
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">0.5
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
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: marine;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Col
quantile
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: marine;"> :
style="font-size: 10pt; font-family: "Courier New"; color: black;">Oxy
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: sarcelle;">0
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">;
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: marine;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
ajouter (
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Contour
Boîte
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: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Table
Boîte
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);">Chaîne
Col Boîte
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: marine;">,
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: marine;">,
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: marine;">,
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: black;">}
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Number
Col Boîte
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: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
{ maxQ
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
médQ
style="font-size: 10pt; font-family: "Courier New"; color: marine;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
Q min }
)
)
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">
)
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; color: black;">