[R] prop.trend.test

Thomas Subia tg@77m @end|ng |rom y@hoo@com
Thu Sep 7 15:23:32 CEST 2023


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]]



More information about the R-help mailing list