Thnx Rui,
Just one point though
Should it be alternative="greater" or "less"? Since alternative hypothesis is 
that model A produced less error.
regards,
Eliza

Date: Wed, 23 Mar 2016 20:44:20 +0000
From: ruipbarra...@sapo.pt
To: eliza_bo...@outlook.com
CC: r-help@r-project.org
Subject: Re: [R] test hypothesis in R








Hello,



Try



?t.test

t.test(mA, mB, alternative = "greater")



Hope this helps,



Rui Barradas

 

Citando Eliza Botto <eliza_bo...@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@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]]

______________________________________________
R-help@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.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to