Principal component analysis with clusters

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

Principal component analysis with clusters

Luca Meyer
We have a dataset with some 20 numerical variables and would like to derive
PC for it. The dataset is composed of 1000 cases divided into 5 groups of
200 cases each. We would like to study the different loadings for each group
on the common factors. In other words, we were thinking to (1) derive a
common factor structure using the 1000 cases, (2) somehow study the
difference between groups according to such loadings.

How would you proceed? We were thinking of FACTOR but then are not sure how
to relate groups to the common factors...

Thank you,

Mr. Luca MEYER
www.lucameyer.com

PS: We licence only SPSS Base, do we need more advanced packages?
Reply | Threaded
Open this post in threaded view
|

Re: Principal component analysis with clusters

statisticsdoc
Stephen Brand
www.statisticsdoc.com


Dear Mr. Meyer,

Are you interested in differentiating the groups according to the factor
scores?  In that case, you may want to use the factor structure from all the
cases to compute factor scores, and consider: a.) a simple plot of the
factor scores for each group;  and b.) a discriminant function analysis that
constructs linear combinations of the factor scores that differentiate the
factors.

If you are interested in whether there are actually different factor
loadings in the different groups, then that is a different question.  The
issue of whether factor loadings differ between groups is an issue of
factorial invariance.  You would not compute and overall factor solution for
all cases.  Instead, you would want to use AMOS or your favorite structutal
equation modeling software to test a confirmatory model in which the factor
loadings are constrained to be equal across groups versus one in which the
loadings are allowed to differ across groups.  Examine whether the model has
poorer fit when the loadings are constrained to be equal.  If the
unconstrained model has better fit, consider whether the loadings are
substantively different if they are allowed to vary.

HTH,

Stephen Brand

For personalized and professional consultation in statistics and research
design, visit
www.statisticsdoc.com


-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]]On Behalf Of
Luca Meyer
Sent: Sunday, September 17, 2006 5:12 AM
To: [hidden email]
Subject: Principal component analysis with clusters


We have a dataset with some 20 numerical variables and would like to derive
PC for it. The dataset is composed of 1000 cases divided into 5 groups of
200 cases each. We would like to study the different loadings for each group
on the common factors. In other words, we were thinking to (1) derive a
common factor structure using the 1000 cases, (2) somehow study the
difference between groups according to such loadings.

How would you proceed? We were thinking of FACTOR but then are not sure how
to relate groups to the common factors...

Thank you,

Mr. Luca MEYER
www.lucameyer.com

PS: We licence only SPSS Base, do we need more advanced packages?
Reply | Threaded
Open this post in threaded view
|

syntax editor

Sebastián Daza
dear list,
somebody know how to configure ultraedit to write (highlighting file)
and run syntax in spss?
before i used textpad, but now I want to use the tools of the ultraedit.
if somebody has a link or information, I will appreciate it.

thanks all!

--

Sebastián Daza Aranzaes
*Instituto de Sociología UC
*8-471 53 87 / 686 57 20 / Fax 5521834
[hidden email] <mailto:[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: syntax editor

Boer, CPJ de
Hello Sebastián,

In UltraEdit you can select what (programming) language the editor should reflect. It then can format the text accordingly (highlighting etc).
You select that language via View-->View as (Highlighting File Type)--> and then you can select one of the 20 languages.
11 Are allready predefined 1=C/C++ through 11=CSS. This means that 12 through 19 (20 is unformatted) languages are still available.
You have to define thos languages yourself.

In the directory 'C:\Program Files\IDM Computer Solutions\UltraEdit-32' or where you installed your version of UltraEdit, there is a text file with the name 'wordfile.txt'. That one you will want to adapt. Open it, scroll to the end, insert a blank line and typ on the line beneath that blank line:
/L12"SPSS Syntax" SPSS_LANG Line Comment = -- File Extensions = SPS

This inserts the option SPSS syntax language to the list of languages. Inspect the 11 predefined languages (such as C++, Visual Basic, HTML etc) to find out how to declare the various language elements of SPSS.
Perhaps some one else on this list allready done this en fiels like sharing it with the rest.
I myself use ConTEXT which has a similar approach.

Just my half Euro,


Kees

> -----Oorspronkelijk bericht-----
> Van: SPSSX(r) Discussion [mailto:[hidden email]]
> Namens Sebastián Daza Aranzaes
> Verzonden: woensdag 20 september 2006 5:29
> Aan: [hidden email]
> Onderwerp: syntax editor
>
> dear list,
> somebody know how to configure ultraedit to write
> (highlighting file) and run syntax in spss?
> before i used textpad, but now I want to use the tools of the
> ultraedit.
> if somebody has a link or information, I will appreciate it.
>
> thanks all!
>
> --
>
> Sebastián Daza Aranzaes
> *Instituto de Sociología UC
> *8-471 53 87 / 686 57 20 / Fax 5521834
> [hidden email] <mailto:[hidden email]>
>
Reply | Threaded
Open this post in threaded view
|

syntax editor (run)

Sebastián Daza
thanks for you answer kees.
i only need run syntax files with ultraedit.
i tried to config "tool configuration" but old "tdrunsyntax" of textpad don't work.
somebody know how config ultraedit?
thank all

--
Sebastián Daza Aranzaes

Sebastián Daza Aranzaes
Instituto de Sociología UC
8-471 53 87 / 686 57 20 / Fax 5521834
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: syntax editor (run)

Boer, CPJ de
I see,
 
I think that in the directory C:\Program Files\SPSS sits an utility called 'RunSyntx.exe'.
This is a visual basic programm that tries to execute a SPSS-syntax file (it doesn't do that by it self but through the SPSS-program).
In UltraEdit you can configure an external tool that executes the programtext that at that moment is visible in the editor.
For help on this start the Help of UltraEdit en look at Contents-->Menu Commands-->Advanced Menu-->Tool configuration
 
In UltraEdit you configure an external tool via Advanced-->Tool Configuration
Type in the 'Menu Item Name' for instance 'Run Syntax' and in 'Command Line' you type:
"C:\Program Files\SPSS\runsyntx.exe"  "%f"
And of course a couple of hits on OK.
From then on whenever you have an SPSS-syntax in the editor of UltraEdit you can try to run it through Advanced-->Run Syntax (or Ctrl+Shift+0 )
 
Is this what you wanted to accomplish??
 
Kees
 
Ing. C.P.J. de Boer
EMGO, VUmc
afd. Datamanagement & Systeembeheer
BS-7 D-451
(020) 44 49828
In theorie is er geen verschil tussen theorie en praktijk. De praktijk is echter anders...

 


________________________________

        Van: SPSSX(r) Discussion [mailto:[hidden email]] Namens Sebastián Daza Aranzaes
        Verzonden: woensdag 20 september 2006 14:25
        Aan: [hidden email]
        Onderwerp: syntax editor (run)
       
       
        thanks for you answer kees.
        i only need run syntax files with ultraedit.
        i tried to config "tool configuration" but old "tdrunsyntax" of textpad don't work.
        somebody know how config ultraedit?
        thank all
       
       
        --
       

        Sebastián Daza Aranzaes
        Instituto de Sociología UC
        8-471 53 87 / 686 57 20 / Fax 5521834
        [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: syntax editor (run)

Sebastián Daza
In reply to this post by Sebastián Daza
thanks kees, but don't work...

my config is:
'Command Line':"C:\Archivos de programa\SPSS14\runsyntx.exe"  "%f"
'Working Directory':Empty
'Icon':Empty

options, program type: "DOS".

sometimes i get message,  Run-time error '-2147467259 (80004005)', others program open a new windows of data spss (untitled) and syntax spss, and program crash.

i send textpad program, ¿is possible reuse it?
config in textpad is:
command: C:\textpad\tdRunSyntax.exe
parameters: $Clip
initial folder: $FileDir
thanks for all!

--
Sebastián Daza Aranzaes

Sebastián Daza Aranzaes
Instituto de Sociología UC
8-471 53 87 / 686 57 20 / Fax 5521834
[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: syntax editor (run)

Scott Czepiel
I tried using runsyntx.exe and found the same problems.

I found out that the program "tdRunSyntax.exe" that you have in your Textpad
installation was created by Tom Dierickx, it is referenced here:
http://pages.infinit.net/rlevesqu/FAQ.htm

I tried to get it working using ultraedit and spss 14 but failed.  (Note:
you should set it up as a windows program, not DOS, but it still throws
errors).  Tom's program was designed for spss v10, so perhaps invocation
methods for v14 are too different?  Without source code we can't try to
tinker with it.  Is Tom out there anywhere?  Were you able to run this under
Textpad with spss14?

Sad, there appears to be no way of running spss interactively... sure, you
can use spssprod for true batch mode, but to work with external editors like
ultraedit, we need a facility to submit a file to the engine, and capture
the output in a buffer to redisplay in the editor.

On 9/20/06, Sebastián Daza <[hidden email]> wrote:

>
>  thanks kees, but don't work...
>
> my config is:
>
> 'Command Line':"C:\Archivos de programa\SPSS14\runsyntx.exe"  "%f"
> 'Working Directory':Empty
> 'Icon':Empty
>
> options, program type: "DOS".
>
> sometimes i get message,  Run-time error '-2147467259 (80004005)', others program open a new windows of data spss (untitled) and syntax spss, and program crash.
>
> i send textpad program, ¿is possible reuse it?
> config in textpad is:
> command: C:\textpad\tdRunSyntax.exe
> parameters: $Clip
> initial folder: $FileDir
>
> thanks for all!
>
>
> --
>
> Sebastián Daza Aranzaes
> *Instituto de Sociología UC
> *8-471 53 87 / 686 57 20 / Fax 5521834
> [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: syntax editor (run)

Sebastián Daza
tdrunsyntax.exe works well with texpad and spss 14 (I use spss 14 and I don't have troubles). I detected incompatibility with ultraedit:

the $clip textpad parameter  select text in active document and copy in clipboard. for ultraedit, I don't know what command execute this function.

if I copy syntax text in ultraedit and execute tdrunsyntax.exe, the editor works. somebody know how to find a solution for this trouble?.

thanks to all!

--
Sebastián Daza Aranzaes

Sebastián Daza Aranzaes
Instituto de Sociología UC
8-471 53 87 / 686 57 20 / Fax 5521834
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: syntax editor (run)

Howie Harshaw
In reply to this post by Scott Czepiel
Hi Folks,

I have been successfully using "tdRunSyntax.exe" with another text
editor (EditPlus2) under SPSS 14, so I don't think it is an issue with
the invocation methods in V14.  I know this doesn't address the Ultra
Edit problem, but perhaps it helps to narrow down the problem.

- Howie
_______________________________

Howard Harshaw, Ph.D.
Research Associate
Forest Resource Management
Faculty of Forestry
University of British Columbia

Tel: (604) 822-3970
Cell: (604) 786-3141
Email: [hidden email]
Web: www.Harfolk.ca

Scott Czepiel wrote:

> I tried using runsyntx.exe and found the same problems.
>
> I found out that the program "tdRunSyntax.exe" that you have in your
> Textpad
> installation was created by Tom Dierickx, it is referenced here:
> http://pages.infinit.net/rlevesqu/FAQ.htm
>
> I tried to get it working using ultraedit and spss 14 but failed.  (Note:
> you should set it up as a windows program, not DOS, but it still throws
> errors).  Tom's program was designed for spss v10, so perhaps invocation
> methods for v14 are too different?  Without source code we can't try to
> tinker with it.  Is Tom out there anywhere?  Were you able to run this
> under
> Textpad with spss14?
>
> Sad, there appears to be no way of running spss interactively... sure, you
> can use spssprod for true batch mode, but to work with external editors
> like
> ultraedit, we need a facility to submit a file to the engine, and capture
> the output in a buffer to redisplay in the editor.
>
> On 9/20/06, Sebastián Daza <[hidden email]> wrote:
>>
>>  thanks kees, but don't work...
>>
>> my config is:
>>
>> 'Command Line':"C:\Archivos de programa\SPSS14\runsyntx.exe"  "%f"
>> 'Working Directory':Empty
>> 'Icon':Empty
>>
>> options, program type: "DOS".
>>
>> sometimes i get message,  Run-time error '-2147467259 (80004005)',
>> others program open a new windows of data spss (untitled) and syntax
>> spss, and program crash.
>>
>> i send textpad program, ¿is possible reuse it?
>> config in textpad is:
>> command: C:\textpad\tdRunSyntax.exe
>> parameters: $Clip
>> initial folder: $FileDir
>>
>> thanks for all!
>>
>>
>> --
>>
>> Sebastián Daza Aranzaes
>> *Instituto de Sociología UC
>> *8-471 53 87 / 686 57 20 / Fax 5521834
>> [hidden email]
>>
>>
>