Dear all,
I'm struggeling how to deal with the Wilcoxon signed rank test. I have a baseline dataset which contains about 50 persons. Variables height, weight and age were measured and all measurements turned out to be non-parametric. As I need a subgroup of the baseline dataset, I would like to check if the variables (height weight and so on) of the small subgroup do not statistically differ from the baseline 50 persons dataset.
I figured I had to make a new variable, to distinguish persons belonging to the subgroup and persons from the baseline datset. The new variable was called 'subgroup' and I used the command
to place the right persons in the subgroup.
After finishing this selection, I tried using the command
, but this code does not result into a reliable Prob > |z| score. I placed brackets and "" at different positions, but this did not help me out either.
Who can give me some advice on how to compare a subgroup to a total group when using a non parametric test as the wilcoxon rank?
Thanks so much,
Mariska
I'm struggeling how to deal with the Wilcoxon signed rank test. I have a baseline dataset which contains about 50 persons. Variables height, weight and age were measured and all measurements turned out to be non-parametric. As I need a subgroup of the baseline dataset, I would like to check if the variables (height weight and so on) of the small subgroup do not statistically differ from the baseline 50 persons dataset.
I figured I had to make a new variable, to distinguish persons belonging to the subgroup and persons from the baseline datset. The new variable was called 'subgroup' and I used the command
Code:
replace subgroup =1 if patientnumber == "xxx"
After finishing this selection, I tried using the command
Code:
signrank age=(age if subgroup ==1)
Who can give me some advice on how to compare a subgroup to a total group when using a non parametric test as the wilcoxon rank?
Thanks so much,
Mariska
Comment