Login  Register

Re: testing statistical dfference between medians of a sample and a subsample extracted from the sample

Posted by Zuluaga, Juan on Aug 22, 2012; 1:29pm
URL: http://spssx-discussion.165.s1.nabble.com/testing-statistical-dfference-between-medians-of-a-sample-and-a-subsample-extracted-from-the-sample-tp5714777p5714799.html

Perhaps it is just an exercise to understand the properties of such methods, useful to convince ourselves of the theoretical appropriateness of it.
:)
BEGIN PROGRAM R.
# read dataset, suppose it is called column x
mydata <- spssdata.GetDataFromSPSS()
fullsample <- mydata$x
median.fullsample <- median(fullsample)
# loop if you want some kind of bootstraping
subsample <- subset( [whatever condition], fullsample)
#
t.test(subsample,mu=median.fullsample)
END PROGRAM.

-----Original Message-----
From: vini [mailto:[hidden email]]
Sent: Tuesday, August 21, 2012 3:49 AM
Subject: testing statistical dfference between medians of a sample and a subsample extracted from the sample

HI all !

In a data analysis I am required to perform a statistical test (parametric) to know the statistical  difference(if significant) between median of 2 sample where one is full sample and another is sub sample extracted from the full sample based on a given characteristics (e.g. respondents belonging to certain age group).

Can anyone suggest how togo about it in spss ?

regards
vini



--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/testing-statistical-dfference-between-medians-of-a-sample-and-a-subsample-extracted-from-the-sample-tp5714777.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD