[R] test hypothesis in R
ruipbarradas at sapo.pt
ruipbarradas at sapo.pt
Wed Mar 23 21:44:20 CET 2016
Hello,
Try
?t.test
t.test(mA, mB, alternative = "greater")
Hope this helps,
Rui Barradas
Citando Eliza Botto <eliza_botto at outlook.com>:
> Dear All,
> I want to test a hypothesis in R by using student' t-test (P-values).
> The hypothesis is that model A produces lesser error than model B at
> ten stations. Obviously, Null Hypothesis (H0) is that the error
> produces by model A is not lower than model B.
> The error magnitudes are
>
> #model A
>> dput(mA)
>
> c(36.1956086452583, 34.9996207622861, 36.435733025221,
> 37.2003157636202, 36.1318687775115, 37.164132533536,
> 35.2028759357069, 36.7719835944373, 38.3861425339751,
> 37.4174132119744)
> #model B
>> dput(mB)
>
> c(39.7655211768704, 40.1730916643841, 39.3699055738618,
> 39.401619831763, 41.1218634441457, 39.1968630742826,
> 40.5265825061639, 40.4674956975404, 40.5954427072364,
> 41.4875529130543)
>
> Now can I test my hypothesis in R?
> Thankyou very much in Advance,
> Eliza
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.htmland provide commented,
> minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help
mailing list