Hello Dear All:
Do you have any idea how I can have mean median mode st.dev for a variable using multiple data set ..I need to compare these values.I am using add files but I don't know how I can get mean median mode and etc.. for a variable. Thank you Behnaz _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ |
Behnaz,
Your question is hard to understand and I don't know if this will help. As I understand you, you have multiple datasets. Apparently each dataset has the same variable in it. You want standard descriptive statistics for that variable. You say you need to compare 'these values'. Are you aware that statistical comparisons can be done for means or medians but not modes or standard deviations (SD)? (Other readers: Am I correct that spss has no comparisons for modes or SDs??) You have done an Add files. Do you have a variable that identifies each component dataset once they have been added? If not, you should have one. Look at the In subcommand of the Add files command. You specify an 'in' variable for each dataset. You can then use those variables to make a new variable that identifies each dataset. Or, you could add a new variable to each component dataset before the add files. The variable added has the same name in each component dataset but has a value of 1 for the first dataset, 2 for the second, etc. Once the files have been added you can use the Split files command to compute descriptives statistics for each dataset. Medians can be compared using the Median subcommand of the Npar procedure and means can be compared using, for instanct, oneway. Does this even get close to what you want? Gene Maguin |
In reply to this post by behnaz shirazi-2
Thank you Gene.That was very helpful I appreciated that.Just one more thing
I need to split them by gender or sex also.There are some unreported or missing values.How can I get rid of them? SORT CASES BY DISTINCT SEX. SPLIT FILES BY DISTINCT SEX. FREQUENCIES ageyr/STATISTICS MEAN MEDIAN MODE STDDEV. SPLIT FILES OFF. Best Regards, Behnaz >From: "Gene Maguin" <[hidden email]> >To: "'behnaz shirazi'" <[hidden email]> >Subject: RE: mean median mode st.dev >Date: Tue, 24 Apr 2007 12:15:28 -0400 > > >Thanks Gene for your explanation.I am almost new in spss and I am going to >send you my code maybe in this way I can explain better.(About comparing >mode and st.dev ,it seems that somehow >it can be useful). > >Get file='D:\Export\CENEWPAT0\CENEWPAT1\CAFAS\final.sav'. >dataset name Agencya. >Compute distinct=1. > >Get file='D:\Reports\CAFAS\CurrExp\MergedFiles\CEMerged.sav'. >dataset name Regiona. >Compute distinct=2. >Get file='D:\Reports\CAFAS\CurrExp\MergedFiles\ONTARIOMerged.sav'. >dataset name Ontarioa. >Compute distinct=3. >EXE. > >add files > file=Agencya/ > file=Regiona/ > file=Ontarioa. > >mean tables=ageyr by distinct /cell=mean median stddev count /missing. > >* ADD THESE LINES HERE. >SORT CASES BY DISTINCT. >SPLIT FILES BY DISTINCT. >FREQUENCIES AGEYR/STATISTICS MODE. >SPLIT FILES OFF. > > > >Gene Maguin > > _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ |
In reply to this post by behnaz shirazi-2
You are amazing Gene.Thank you so much for your big help.
Behnaz >From: "Gene Maguin" <[hidden email]> >To: "'behnaz shirazi'" <[hidden email]> >Subject: RE: mean median mode st.dev >Date: Tue, 24 Apr 2007 16:37:42 -0400 > >Behnaz, > >Look at the documentation for frequencies. Notice that there is a format >subcommand with a keyword of Notable. > >Gene > > > _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ |
Free forum by Nabble | Edit this page |