cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-235574%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E95%20%25-Konfidenzintervalle%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-235574%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%20zusammen%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIch%20versuche%2C%20eine%20Zusammenfassung%20aus%20einer%20Datentabelle%20zu%20erhalten.%20Ich%20m%C3%B6chte%20den%20Mittelwert%20einer%20Variablen%20l10t%2C%20den%20Standardfehler%20und%20ein%2095%20%25-Konfidenzintervall.%20Es%20schien%20alles%20ziemlich%20einfach%20zu%20sein%2C%20aber%20ich%20habe%20Probleme%20mit%20den%2095%20%25-Konfidenzintervallen%2C%20habe%20verschiedene%20Methoden%20ausprobiert%2C%20ohne%20Erfolg%2C%20habe%20ich%20derzeit%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edt2%26lt%3B%26lt%3B%20Summary(%0A%20Group(%20%3ASample%20)%2C%0A%20Mean(%20%3Adilution%20factor%2C%20%3Al10t%20)%2C%0A%20Freq(%20%22None%22%20)%2C%0A%20Weight(%20%22None%22%20)%2C%0A%20Output%20Table(%20%22log10t%22%20)%2C%0A%20Std%20Err(%20%3Al10t%20)%2C%0A%20Confidence%20Interval(%20%3Al10t%2C%200.95)%2C%0A%20Link%20to%20original%20data%20table(0)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EIch%20mache%20offensichtlich%20etwas%20falsch.%20Kann%20mir%20jemand%20einen%20Rat%20geben%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETausend%20Dank%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-236420%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%2095%20%25-Konfidenzintervalle%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-236420%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%20mzwald%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIch%20habe%20Folgendes%20verwendet%20und%20es%20hat%20wunderbar%20funktioniert%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENew%20Column(%20%22Lower%2095%25%20CI%22%2C%20Numeric%2C%20Continuous%2C%20Formula%20(%20Round(%3AName%20(%22Mean(l10t)%22)%20-%20(%3AName(%22Std%20Err(l10t)%22)%20*%20t%20Quantile%20(0.975%2C23))%2C%204)))%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Ewenn%20ich%20Folgendes%20verwendet%20habe%2C%20um%20eine%20Variable%20zu%20erstellen%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edt2%26lt%3B%26lt%3B%20Summary(%0A%20Group(%20%3ASample%20)%2C%0A%20Mean(%20%3Adilution%20factor%2C%20%3Al10t%20)%2C%0A%20Freq(%20%22None%22%20)%2C%0A%20Weight(%20%22None%22%20)%2C%0A%20Output%20Table(%20%22log10t%22%20)%2C%0A%20Std%20Err(%20%3Al10t%20)%2C%0A%20Link%20to%20original%20data%20table(0)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Eund%20ich%20m%C3%B6chte%20die%20Variable%20Mean(l10t)%20auf%20vier%20Dezimalstellen%20runden.%20K%C3%B6nnen%20Sie%20das%20mit%20dem%20obigen%20Syntaxblock%20machen%3F%3F%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDanke%3C%2FP%3E%3CP%3EMickyboy%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-235992%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%2095%20%25-Konfidenzintervalle%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-235992%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ENun%2C%20es%20sieht%20so%20aus%2C%20als%20ob%20Summary%20derzeit%20keine%20CIs%20unterst%C3%BCtzt%2C%20aber%20Sie%20k%C3%B6nnen%20jederzeit%20selbst%20eine%20Formel%20daf%C3%BCr%20erstellen.%3CBR%20%2F%3E%20Die%20Formeln%20f%C3%BCr%20ein%2095%20%25-Konfidenzintervall%20(unter%20der%20Annahme%20einer%20Normalverteilung)%20w%C3%A4ren%3A%3CBR%20%2F%3E%20Oberer%2095CI%20%3D%20Mittelwert%20%2B%201%2C96*Standardabweichung%3CBR%20%2F%3E%20Unterer%2095CI%20%3D%20Mittelwert%20%E2%80%93%201%2C96*Standardabweichung%3CBR%20%2F%3E%20Sie%20k%C3%B6nnen%20diese%20beiden%20Spalten%20aus%20den%20von%20der%20Summary-Plattform%20zur%C3%BCckgegebenen%20Feldern%20generieren.%20Mit%20diesen%20Formeln%20kommen%20Sie%20dem%2C%20was%20Sie%20suchen%2C%20ziemlich%20nahe.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-235848%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%2095%20%25-Konfidenzintervalle%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-235848%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%20mzwald%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EVielen%20Dank%20f%C3%BCr%20Ihre%20Hilfe%20und%20Ihren%20Vorschlag%2C%20ich%20habe%20diesen%20Code%20ausprobiert%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Eplatform%20%3D%20dt2%20%26lt%3B%26lt%3B%20Oneway(%0A%20Y(%20%3Al10t%20)%2C%0A%20X(%20%3Afold%20dilution%20)%2C%0A%20Means%20and%20Std%20Dev(%201%20)%2C%0A%20Box%20Plots(%201%20)%2C%0A%20Mean%20Diamonds(%201%20)%2C%0A%20Mean%20Error%20Bars(%201%20)%2C%0A%20Std%20Dev%20Lines(%201%20)%2C%0A%20Connect%20Means(%201%20)%2C%0A%20Points%20Jittered(%201%20)%2C%0A%20Grand%20Mean(%200%20)%0A)%3B%0AWait(%200%20)%3B%0AReport(%20platform%20)%5BOutline%20Box(%20%22Oneway%20Analysis%20of%20height%20By%20sex%22%20)%5D%5B%0AOutline%20Box(%20%22Means%20and%20Std%20Deviations%22%20)%5D%5BTable%20Box(%201%20)%5D%20%26lt%3B%26lt%3B%20Make%20Into%20Data%20Table%3B%0AReport(%20platform%20)%20%26lt%3B%26lt%3B%20Close%20Window%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Eund%20erhielt%20die%20folgende%20Fehlermeldung%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ECannot%20subscript%20Display%20Box%20in%20access%20or%20evaluation%20of%20'Report(platform)%5BOutline%20Box(%22Oneway%20Analysis%20of%20height%20By%20sex%22)%5D'%20%2C%20Report(%20platform%20)%5B%2F*%23%23%23*%2FOutline%20Box(%20%22Oneway%20Analysis%20of%20height%20By%20sex%22%20)%5D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EIch%20bin%20jedoch%20fast%20am%20Ziel%2C%20was%20ich%20damit%20f%C3%BCr%20meine%20Datentabelle%20erreichen%20m%C3%B6chte.%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edt2%26lt%3B%26lt%3B%20Summary(%0A%20Group(%20%3ASample%20)%2C%0A%20Mean(%20%3Adilution%20factor%2C%20%3Al10t%20)%2C%0A%20Freq(%20%22None%22%20)%2C%0A%20Weight(%20%22None%22%20)%2C%0A%20Output%20Table(%20%22log10t%22%20)%2C%0A%20Std%20Err(%20%3Al10t%20)%2C%0A%20Confidence%20Interval(%20%3AName%20(%22Mean(l10t)%22))%2C%0A%20Link%20to%20original%20data%20table(0)%0A)%3B%0A%0ALoq%20%3D%20Data%20Table(%20%22log10t%22%20)%3B%0A%0ALoq%20%26lt%3B%26lt%3B%20New%20Column(%20%22Back%20T'sform%20Mean%22%2C%20Numeric%2C%20Continuous%2C%20Formula(%20Round(10%5E%3AName%20(%22Mean(l10t)%22)%2C0)))%3B%0A%0ALoq%20%26lt%3B%26lt%3B%20New%20Column(%20%22Back%20T'sform%20Std%20error%22%2C%20Numeric%2C%20Continuous%2C%20Formula(10%5E%3AName%20(%22Std%20Err(l10t)%22)%2C%20Format(%20%22fixed%20dec%22%2C%206%2C%200%20)%20)%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3Egib%20mir%20das%2C%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Data%20Table.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Data%20Table.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Data%20Table.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F20411iBA2DCCE33FDA71D1%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Data%20Table.PNG%22%20alt%3D%22Data%20Table.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3EDa%20ich%20es%20fast%20geschafft%20habe%2C%20hatte%20ich%20gehofft%2C%20dass%20die%20Konfidenzintervalle%20aus%20einer%20einzigen%20einfachen%20Codezeile%20bestehen%20w%C3%BCrden.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDanke%3C%2FP%3E%3CP%3EMickyboy%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-235590%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%2095%20%25-Konfidenzintervalle%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-235590%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ESie%20k%C3%B6nnen%20etwas%20%C3%84hnliches%20wie%20folgt%20erreichen%3A%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0Aplatform%20%3D%20dt%20%26lt%3B%26lt%3B%20Oneway(%0A%20Y(%20%3Aheight%20)%2C%0A%20X(%20%3Asex%20)%2C%0A%20Means%20and%20Std%20Dev(%201%20)%2C%0A%20Box%20Plots(%201%20)%2C%0A%20Mean%20Diamonds(%201%20)%2C%0A%20Mean%20Error%20Bars(%201%20)%2C%0A%20Std%20Dev%20Lines(%201%20)%2C%0A%20Connect%20Means(%201%20)%2C%0A%20Points%20Jittered(%201%20)%2C%0A%20Grand%20Mean(%200%20)%0A)%3B%0AWait(%200%20)%3B%0AReport(%20platform%20)%5BOutline%20Box(%20%22Oneway%20Analysis%20of%20height%20By%20sex%22%20)%5D%5B%0AOutline%20Box(%20%22Means%20and%20Std%20Deviations%22%20)%5D%5BTable%20Box(%201%20)%5D%20%26lt%3B%26lt%3B%20Make%20Into%20Data%20Table%3B%0AReport(%20platform%20)%20%26lt%3B%26lt%3B%20Close%20Window%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EPlatzieren%20Sie%20Ihre%20Gruppenvariable%20in%20der%20Rolle%20X().%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Mickyboy
Level V

95% confidence intervals

Hi All,

 

l am trying to get a summary from a data table, l would like the mean of a variable l10t, the standard error, and 95% confidence interval. It all seemed fairly straight forward, but am having trouble with the 95% confidence intervals, have tried different ways to no avail, currently have 

dt2<< Summary(
	Group( :Sample ),
	Mean( :dilution factor, :l10t ),
	Freq( "None" ),
	Weight( "None" ),
	Output Table( "log10t" ),
	Std Err( :l10t ),
	Confidence Interval( :l10t, 0.95),
	Link to original data table(0)

l am obviously doing something incorrectly, can anyone offer some advice.

 

Thanks Heaps

4 REPLIES 4

Re: 95% confidence intervals

You can accomplish something similar like this:

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
platform = dt << Oneway(
	Y( :height ),
	X( :sex ),
	Means and Std Dev( 1 ),
	Box Plots( 1 ),
	Mean Diamonds( 1 ),
	Mean Error Bars( 1 ),
	Std Dev Lines( 1 ),
	Connect Means( 1 ),
	Points Jittered( 1 ),
	Grand Mean( 0 )
);
Wait( 0 );
Report( platform )[Outline Box( "Oneway Analysis of height By sex" )][
Outline Box( "Means and Std Deviations" )][Table Box( 1 )] << Make Into Data Table;
Report( platform ) << Close Window;

Place your group variable in the X() role.

Mickyboy
Level V

Re: 95% confidence intervals

Hi mzwald,

 

Thanks very much for your help and your suggestion, i tried this code

platform = dt2 << Oneway(
	Y( :l10t ),
	X( :fold dilution ),
	Means and Std Dev( 1 ),
	Box Plots( 1 ),
	Mean Diamonds( 1 ),
	Mean Error Bars( 1 ),
	Std Dev Lines( 1 ),
	Connect Means( 1 ),
	Points Jittered( 1 ),
	Grand Mean( 0 )
);
Wait( 0 );
Report( platform )[Outline Box( "Oneway Analysis of height By sex" )][
Outline Box( "Means and Std Deviations" )][Table Box( 1 )] << Make Into Data Table;
Report( platform ) << Close Window;

and received the following error message

Cannot subscript Display Box in access or evaluation of 'Report(platform)[Outline Box("Oneway Analysis of height By sex")]' , Report( platform )[/*###*/Outline Box( "Oneway Analysis of height By sex" )]

however, l am almost there as to what i want to achieve for my data table with this,

dt2<< Summary(
	Group( :Sample ),
	Mean( :dilution factor, :l10t ),
	Freq( "None" ),
	Weight( "None" ),
	Output Table( "log10t" ),
	Std Err( :l10t ),
	Confidence Interval( :Name ("Mean(l10t)")),
	Link to original data table(0)
);

Loq = Data Table( "log10t" );

Loq << New Column( "Back T'sform Mean", Numeric, Continuous, Formula( Round(10^:Name ("Mean(l10t)"),0)));

Loq << New Column( "Back T'sform Std error", Numeric, Continuous, Formula(10^:Name ("Std Err(l10t)"), Format( "fixed dec", 6, 0 ) ) );

giving me this,

Data Table.PNG so l am almost there, l was hoping the confidence intervals would be a single simple line of code.

 

Thanks

Mickyboy

Re: 95% confidence intervals

Well it looks like Summary doesn't currently support CI's, but you can always make a formula for them yourself.
The formulas for a 95% confidence interval (assuming a normal distribution) would be:
Upper95CI = mean + 1.96*stdev
Lower95CI = mean - 1.96*stdev
You can generate those two columns from the fields returned by the Summary platform. Those formulas will get you pretty close to what you are looking for.

Mickyboy
Level V

Re: 95% confidence intervals

Hi mzwald,

 

i have used the following and has worked a treat

New Column( "Lower 95% CI", Numeric, Continuous, Formula ( Round(:Name ("Mean(l10t)") - (:Name("Std Err(l10t)") * t Quantile (0.975,23)), 4)));

if i have used the following to create a variable

dt2<< Summary(
	Group( :Sample ),
	Mean( :dilution factor, :l10t ),
	Freq( "None" ),
	Weight( "None" ),
	Output Table( "log10t" ),
	Std Err( :l10t ),
	Link to original data table(0)
);

and i would like to round the variable Mean(l10t), to four decimal places, can you do that from the above block of syntax???

 

thanks

Mickyboy

Recommended Articles