Subscribe Bookmark RSS Feed

Error bar (standard error of mean) on x,y graph

morbad

Community Member

Joined:

Apr 26, 2012

Hi everybody,

I have a insolvable problem in JMP 10.

I want to put on a x ,y graph (two numeric continuous variables) with linear adjustement, an error bar which represents standard error of mean of my y variable  (that I calculate in my database).


Surprisingly,
there is no easy way to do that (or I ignore it). So I create a script with the graph builder where I added an element Bar in "interval " style using two variables "lower" and "upper" corresponding to my y variable +- standard error (script find on this forum, thx).

My graph result is good but the error bar design is bad quality. Help please!

Thanks

Result:

1956_régression_capture.PNG

Script (in english and french, sorry)

Constructeur de graphiques(

    Show control Panel( 0 ),

    Variables(

        X( :Name( "(1-B7/B6)" ) ),

        Y( :lower ),

        Y( :upper, Position( 1 ),  ),

        Y( :malbios, Position( 1 ),  ) ),

    Éléments(

        Droite d'ajustement(

            X,

            Y(3),

            Confiance de l'ajustement( 1 ),

            Degré( "Linéaire" ),

            Racine de l'erreur quadratique moyenne( 1 )

        ),

        Barre(

            X,

            Y( 1 ),

            Y( 2 ),

            Y( 3 ),

            Style de barre( "Intervalle" ),

        ),

    ),

    Envoyer au rapport(

   

        Répartir(

            {},

            "400",

            ScaleBox,

            {Legend Model(

                2,

                Properties( 0, {Couleur de ligne( 0 )} ),

                Properties( 1, {Couleur de ligne( 0 ), Marqueur( "Cercle plein" )} )

            )}

        ),

        Répartir( {}, "Y title", TextEditBox, {Définir le texte( "malbios" )} ),

        Répartir( {}, "Graph Builder", FrameBox, {Taille du marqueur( 2 )} )

    )

);