View source: R/ifr-ts-paired-ttest.R
| ifr_ts_paired_ttest | R Documentation | 
ifr_ts_paired_ttest tests that two samples have the
same mean, assuming paired data.
ifr_ts_paired_ttest(
  data,
  x,
  y,
  confint = 0.95,
  alternative = c("both", "less", "greater", "all")
)
| data | a  | 
| x | numeric; column in  | 
| y | numeric; column in  | 
| confint | confidence level | 
| alternative | a character string specifying the alternative hypothesis, must be one of "both" (default), "greater", "less" or "all". You can specify just the initial letter. | 
ifr_ts_paired_ttest returns an object of class "ifr_ts_paired_ttest".
An object of class "ifr_ts_paired_ttest" is a list containing the
following components:
| Obs | number of observations | 
| b | mean, standard deviation and standard error of  | 
| tstat | t statistic | 
| p_lower | lower one-sided p-value | 
| p_upper | upper one-sided p-value | 
| p_two_tail | two sided p-value | 
| corr | Correlation of  | 
| corsig | p-value of correlation test | 
| conf_int1 | confidence interval for mean of  | 
| conf_int2 | confidence interval for mean of  | 
| conf_int_diff | confidence interval for mean of difference of  | 
| df | degrees of freedom | 
| confint | confidence level | 
| alternative | alternative hypothesis | 
| var_names | names of  | 
| xy | string used in printing results of the test | 
infer_ts_paired_ttest() has been deprecated. Instead use
ifr_ts_paired_ttest().
Sheskin, D. J. 2007. Handbook of Parametric and Nonparametric Statistical Procedures, 4th edition. : Chapman & Hall/CRC.
t.test
# lower tail
ifr_ts_paired_ttest(hsb, read, write, alternative = 'less')
# upper tail
ifr_ts_paired_ttest(hsb, read, write, alternative = 'greater')
# both tails
ifr_ts_paired_ttest(hsb, read, write, alternative = 'both')
# all tails
ifr_ts_paired_ttest(hsb, read, write, alternative = 'all')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.