HI ,
I am trying to find differences between p-trend and np-trend especially for testing trend of a continuous variable across an ordinal group. I have read the stata page "http://www.stata.com/support/faqs/statistics/test-for-trend/" but still have some questions and was hoping to see if any members might help me.
p-trend is a user written(by Patrick Royston).
np-trend is a inbuilt stata command.
Question:
=======
Can p-trend be used to test the trend for a continuous variable(such as mean systolic blood pressure) across an ordinal group.
The help file says that it calculates proportions of the categorical variable across an ordinal variable.
I am aware that np-trend can be used to test trend for (continuous or an ordinal variable) across another ordinal variable.
But the beauty of p-trend test is that it gives two statistics .
---First test statistic(chi2 for trend):tests if there is a association.
---Second test statistic(chi2 for departure) tests if there is departure from linearity.
Where as in np-test: we get only one test statistics: which tests for association/trend. We cannot test if the trend is linear OR non-linear.
I thank you again for your time.
Thank you,
Lucas
I am trying to find differences between p-trend and np-trend especially for testing trend of a continuous variable across an ordinal group. I have read the stata page "http://www.stata.com/support/faqs/statistics/test-for-trend/" but still have some questions and was hoping to see if any members might help me.
p-trend is a user written(by Patrick Royston).
np-trend is a inbuilt stata command.
Question:
=======
Can p-trend be used to test the trend for a continuous variable(such as mean systolic blood pressure) across an ordinal group.
The help file says that it calculates proportions of the categorical variable across an ordinal variable.
I am aware that np-trend can be used to test trend for (continuous or an ordinal variable) across another ordinal variable.
But the beauty of p-trend test is that it gives two statistics .
---First test statistic(chi2 for trend):tests if there is a association.
---Second test statistic(chi2 for departure) tests if there is departure from linearity.
Where as in np-test: we get only one test statistics: which tests for association/trend. We cannot test if the trend is linear OR non-linear.
I thank you again for your time.
Thank you,
Lucas
Comment