prop.trend.test

0th

Percentile

Test for trend in proportions

Performs chi-squared test for trend in proportions, i.e., a test asymptotically optimal for local alternatives where the log odds vary in proportion with score. By default, score is chosen as the group numbers.

Keywords
htest
Usage
prop.trend.test(x, n, score = seq_along(x))
Arguments
x
Number of events
n
Number of trials
score
Group score
Value

  • An object of class "htest" with title, test statistic, p-value, etc.

Note

This really should get integrated with prop.test

See Also

prop.test

Aliases
  • prop.trend.test
Examples
library(stats) smokers <- c( 83, 90, 129, 70 ) patients <- c( 86, 93, 136, 82 ) prop.test(smokers, patients) prop.trend.test(smokers, patients) prop.trend.test(smokers, patients, c(0,0,0,1))
Documentation reproduced from package stats, version 3.3, License: Part of R 3.3

Community examples

Looks like there are no examples yet.