Re: test for trend



raoulreulen@xxxxxxxxxxx wrote:
> Hi,
>
> How do I perform a test for linear trend of a variable that is coded as
> a dummy variable in a logistic regression analysis? Is it as simple as
> dropping the dummy variable, and using an ordinal variable instead?
> Will the p-value of the ordinal variable give me the test for trend?
>
> an example:
>
> let's say I have the variable age which is categorized into 4 groups. I
> use the lowest category as the reference catogory.
>
> My model looks like this:
>
> log(odds) = constant + age1 + age2 +age3 (age is a dummy in which age0
> is used a  reference category)
>
>
>
> Would the following model give me the p-value for the test for linear
> trend in the variable age?
>
> log(odds)=constant +age (age is coded as 1,2,3,4)
>
> thanks
>
> Raoul

Use echelon coding: grp  age1 age2 age3
                     0     0    0    0
                     1     1    0    0
                     2     1    1    0
                     3     1    1    1

If the coefficients of age1, age2, and age3 are all positive and
significant then you can conclude that log(odds) increases with age.

.



Relevant Pages

  • Re: test for trend
    ... a linear trend, quadratic, cubic... ... pointed out, after the analysis, that the "linear component" ... the sample N and total effect is large enough that the "non-linear" ... If you just want a test for "generally it's a linear trend" across ...
    (sci.stat.consult)
  • RE: Trendlines to ignore empty cells
    ... That function could then be substituted for the TREND ... If the data covers only five points, the linear trend will return ... >> chart is to be placed “Test”. ... >> Assume the letter “a” starts in cell A2. ...
    (microsoft.public.excel.charting)
  • Re: Edward Prescott, Idiot
    ... REAL GDP GROWTH IS MEAN REVERTING. ... Most time series methods used ... shows a linear trend. ... trend stationary with a break. ...
    (sci.econ)
  • test for trend
    ... How do I perform a test for linear trend of a variable that is coded as ... let's say I have the variable age which is categorized into 4 groups. ... use the lowest category as the reference catogory. ...
    (sci.stat.consult)

Loading