Description Usage Arguments Value See Also Examples

View source: R/testscontrasteshipotesis.R

Under the assumption that the data come from a Normal distribution, it makes the hypothesis testing and the confidence interval for the mean with known population variance.

1 2 |

`x` |
a (non-empty) numeric vector of data values. |

`mu` |
a number indicating the true value of the mean - Null hypothesis. |

`sd` |
numerical value indicating the population standard deviation assumed to be known (mandatory). |

`alternative` |
a character string specifying the alternative hypothesis, must be one of |

`conf.level` |
confidence level of the interval. |

`...` |
further arguments to be passed to or from methods. |

A list with class `"htest"`

l containing the following components:

`statistic` |
the value of the test statistic. |

`parameter` |
sample length, population standard deviation and sample standard deviation. |

`p.value` |
the p-value for the test. |

`conf.int` |
a confidence interval for the mean appropriate to the specified alternative hypothesis. |

`estimate` |
the estimated mean. |

`null.value` |
the specified hypothesized value of the mean. |

`alternative` |
a character string describing the alternative hypothesis. |

`method` |
a character string indicating what type of statistical test was performed. |

`data.name` |
a character string giving the name of the data. |

1 2 3 4 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.