In a word: Yes.
We discussed this about 2w ago. Basically, the lm() fits a local Linear
Probability Model and the coef to "score" gives you the direction of the effect.
In the same thread it was discussed (well, readable between the lines, maybe)
that if you change the lm() to a Gaussian glm()
Colleagues,
The code for prop.trend.test is given by:
function (x, n, score = seq_along(x))
{
method <- "Chi-squared Test for Trend in Proportions"
dname <- paste(deparse1(substitute(x)), "out of",
deparse1(substitute(n)),
",\n using scores:", paste(score, collapse = " "))
x
2 matches
Mail list logo