2.13.2.2 rowttestpair (Pro)
Menu Information
Statistics: Hypothesis Testing: Pair-Sample t-test on Rows.
Brief Information
Perform a pair-sample t-test on rows
Additional Information
Minimum Origin Version Required: Origin 2015 SR0
Command Line Usage
1. rowttestpair irng1:=(1,2,3) irng2:=(4,5,6);
2. rowttestpair irng1:=(1,2,3) irng2:=(4,5,6) prob:=1;
3. rowttestpair irng1:=(1,2,3) irng2:=(4,5,6) sig:=wcol(7);
X-Function Execution Options
Please refer to the page for additional option switches when accessing the x-function from script
Variables
Display Name
|
Variable Name
|
I/O and Type
|
Default Value
|
Description
|
1st Data Range
|
irng1
|
Input
Range
|
<unassigned>
|
Specify data range(multiple columns) of the first sample. Each row represents a data variable.
|
2nd Data Range
|
irng2
|
Input
Range
|
<unassigned>
|
Specify data range(multiple columns) of the second sample. Each row represents a data variable.
|
Test Mean
|
mean
|
Input
double
|
0
|
Hypothetical difference between the means of the two samples
|
Alternate Hypothesis
|
tail
|
Input
int
|
0
|
Specify the alternative hypothesis of the t-test.
Option list:
- two:Mean1 - Mean2 <> 0
- Specify the alternative hypothesis is that if the means of the two samples are equal or not.
- upperl:Mean1 - Mean2 > 0
- Specify the alternative hypothesis is that if the mean of the sample 1 is greater than the mean of sample 2.
- lower:Mean1 - Mean2 < 0
- Specify the alternative hypothesis is that if the mean of the sample 1 is less than the mean of sample 2.
|
T-statistic
|
statistic
|
Output
vector
|
<new>
|
Select to output the t-statistic, and you can specify the column for the values. Each row represents the t-statistic of the data in the row.
|
Degree of Freedom
|
df
|
Output
vector
|
<new>
|
Select to output the degree of freedom, and you can specify the column for the values. Each row represents the degree of freedom of the data in the row.
|
P-value
|
prob
|
Output
vector
|
<new>
|
Select to output the p-value, and you can specify the column for the values. Each row represents the p-value of the data in the row.
|
Significant
|
sign
|
Output
vector
|
<new>
|
Select to output the flag of decision and specify the column for the values. the value equals to 1 indicates that the difference of the means is significant at the 0.05 level, 0 indicates that the means are not significant different at the 0.05 level
|
Description
The pair-sample t-test analysis tests whether or not the means of two paired (or related, matched) samples from a normal distribution are equal or whether they differ by a given value.
This function performs pair-sample t-test for the rows. The data of both samples is set in one row to perform the pair-sample t-test of this row.
More Information
More Information
For more information, please refer to our User Guide.
Related X-Functions
rowttest2, ttest1, ttest2, ttestpair
|