Code covered by the BSD License  

Highlights from
powerStudent

3.0

3.0 | 4 ratings Rate this file 34 Downloads (last 30 days) File Size: 2.25 KB File ID: #2907

powerStudent

by Antonio Trujillo-Ortiz

 

04 Jan 2003 (Updated 11 Mar 2009)

Approximate power estimation of a performed Student's t test about mean(s).

| Watch this File

File Information
Description

Estimates the approximate statistical power of a performed Student's t test about mean(s). Here, according to Zar (1999) we use the approximation of power by the central cumulative distribution function. It recalls you the statistical result of the test you should have arrived. This power estimation is considered biased, for it is underestimated. However, it is presented for all those interested people.

You can find the exact power estimation on the extpowerStudent m-file.

Inputs:
t - Student's t statistic
df - degrees of freedom
c - specified testing direction [1 = one-tailed(default);2 = two-tailed]
alpha - significance level (default = 0.05)

Outputs:
- Specified direction test
(Statistical result of the test you should have arrived)
- Power

Required Products Statistics Toolbox
MATLAB release MATLAB 5.3 (R11)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
10 Sep 2007 florabel cuaya  
29 Oct 2007 Linda Seltzer

It seems that the power is being computed based on the t cumulative distribution function. However, if the null hypothesis is false, isn't the distribution noncentral, with the need to compute a noncentrality parameter? This means that operating curves have to be computed. Is there a Matlab routine somewhere that computes operating curves

30 Oct 2007 auto promotion

Do you think others don't see what you are doing?

23 Nov 2007 Brahim HAMADICHAREF

function [Power] = powerStudent(t,df,c,a)
rather than
function [powerStudent] = powerStudent(t,df,c,a)

Please login to add a comment or rating.
Updates
22 Apr 2003

It was added an appropriate format to cite this file.

28 May 2008

Text was improved.

10 Jul 2008

Revised file.

05 Mar 2009

MATLAB Central Update Test

11 Mar 2009

Text was improved.

Tag Activity for this File
Tag Applied By Date/Time
statistics Antonio Trujillo-Ortiz 22 Oct 2008 06:55:47
probability Antonio Trujillo-Ortiz 22 Oct 2008 06:55:47
students t test Antonio Trujillo-Ortiz 22 Oct 2008 06:55:47
hypothesis testing Antonio Trujillo-Ortiz 22 Oct 2008 06:55:47
t distribution Antonio Trujillo-Ortiz 22 Oct 2008 06:55:47

Contact us at files@mathworks.com