[R] test hypothesis in R

ruipbarradas at sapo.pt ruipbarradas at sapo.pt
Thu Mar 24 00:21:31 CET 2016


Sorry, but in your original post you said that " Null Hypothesis (H0)  
is that the error produces by model A is not lower than model B".
If now is that model A produces less error change to  
alternative="less". The relevant part in the help page ?t.test is

alternative = "greater" is the alternative that x has a larger mean than y.

Rui Barradas
 

Citando Eliza Botto <eliza_botto at outlook.com>:

> 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: ruipbarradas at sapo.pt
> To: eliza_botto at outlook.com
> CC: r-help at r-project.org
> Subject: Re: [R] test hypothesis in R

> 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