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