Mode Using Aggregate Command

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Mode Using Aggregate Command

Ramzan Afzal
Dear Members,
 
I am trying to compute mode for the un-grouped data using Aggregate command in spss. Aggregate command in SPSS does not show any option for mode, although it shows mean, sd and other options. Is it possibly to compute mode using aggregate command?
 
I shall be grateful for any help in this regard.
 
Ramzan


Express yourself instantly with MSN Messenger! MSN Messenger Download today it's FREE!
Reply | Threaded
Open this post in threaded view
|

Re: Mode Using Aggregate Command

Simon Phillip Freidin
set printback=on.
get  FILE="1991 U.S. General Social Survey.sav'.
compute nobreak=1.
oms /if command=["Frequencies"] subtypes=["Statistics"]
     / destination format=sav outfile="mode.sav" viewer=no.
freq vars=SPEDUC/format=notable/statistics=mode.
omsend.
save outfile="temp.sav".

get file="mode.sav".
sel if var1='Mode'.
rename vars (var4=SPEDMODE).
compute nobreak=1.
match file file=*/keep=nobreak spmode.
match file file="temp.sav"/table=*/by nobreak.
exe.

On 23/02/2007, at 5:58 PM, Ramzan Afzal wrote:

> Dear Members,
>
> I am trying to compute mode for the un-grouped data using Aggregate
> command in spss. Aggregate command in SPSS does not show any option
> for mode, although it shows mean, sd and other options. Is it
> possibly to compute mode using aggregate command?
>
> I shall be grateful for any help in this regard.
>
> Ramzan
>
> Express yourself instantly with MSN Messenger! MSN Messenger
> Download today it's FREE!
Reply | Threaded
Open this post in threaded view
|

Re: Mode Using Aggregate Command

Asghar Hussaini
Is there any solution for grouped data?

Appreciate if someone can help.