[R] prop.trend.test

Ebert,Timothy Aaron tebert @end|ng |rom u||@edu
Thu Sep 7 18:03:12 CEST 2023


The example is the example in the documentation for the method. There were no details. https://www.rdocumentation.org/packages/stats/versions/3.6.2/topics/prop.trend.test
More documentation would be useful. Answering questions like what are these numbers?

As shown, I see a cluster of three values in the 70-90 and an outlier at 129. The pattern repeats for patients, with very slightly different numbers. Is the outlier real or a data error? Are these values real or just some values stuffed into an example to show that I can get numbers back out?


Tim

-----Original Message-----
From: R-help <r-help-bounces using r-project.org> On Behalf Of Michael Dewey
Sent: Thursday, September 7, 2023 11:52 AM
To: Thomas Subia <tgs77m using yahoo.com>; R. Mailing List <r-help using r-project.org>
Subject: Re: [R] prop.trend.test

[External Email]

Dear Thomas

Are you looking for more than

smokers / patients

Michael

On 07/09/2023 14:23, Thomas Subia via R-help wrote:
>
> Colleagues
>
>   Consider
> smokers  <- c( 83, 90, 129, 70 )
> patients <- c( 86, 93, 136, 82 )
>
>   prop.trend.test(smokers, patients)
>
>   Output:
>
>       Chi-squared Test for Trend inProportions
>
>   data:  smokers out of patients ,
>
> using scores: 1 2 3 4
>
> X-squared = 8.2249, df = 1, p-value = 0.004132
>
>   # trend test for proportions indicates proportions aretrending.
>
>   How does one identify the direction of trending?
>   # prop.test indicates that the proportions are unequal but doeslittle to indicate trend direction.
> All the best,
> Thomas Subia
>
>
>       [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using 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.
>

--
Michael
http://www.dewey.myzen.co.uk/home.html

______________________________________________
R-help using 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.



More information about the R-help mailing list