Re: R in SPSS

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

Re: R in SPSS

E. Bernardo
Hi all,

I need your help.  Do you have syntax that runs RASCH MODEL in SPSS via R software?

Thank you in advance.
Eins

--- On Sun, 2/1/09, Peck, Jon <[hidden email]> wrote:
From: Peck, Jon <[hidden email]>
Subject: Re: R in SPSS
To: [hidden email]
Date: Sunday, 1 February, 2009, 3:27 PM

Assuming version 16 or later, you need to install the R plug-in from Developer Central.  Then your R syntax can be run in the syntax window between

BEGIN PROGRAM R.

and

END PROGRAM R.

 

The output automatically appears in the SPSS Viewer with two cautions.  1) In version 16, R graphics are written to files and don't appear in the Viewer.  Version 17 integrates the graphics directly.  2) When using R interactively, expression output appears in your console windows, e.g.,

summary(dta)

displays the summary statistics for a data frame, dta.  In non-interactive mode, which is what you are in when running BEGIN PROGRAM, you need to enclose the expression in a print function for it to display, e.g.,

print(summary(dta))

 

The documentation for the apis to communicate between SPSS and R is installed along with the plug-in, and there are examples in the Data Management book linked on Developer Central (www..spss.com/devcentral).

 

You might also go through the PowerPoint article on Developer Central, "Programmability in SPSS Statistics 17", which you will find on the front page of the site.  It includes a detailed example of using the R Quantreg package in SPSS as an extension command.  There is also a download in the R section on creating an SPSS dialog box that generates an R program directly.  Look for Rboxplot – Creating an R Program from a Dialog.  This has a simple dialog box that generates code for an R boxplot along with an article that explains what is happening.

 

HTH,

Jon Peck

 


From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Eins Bernardo
Sent: Sunday, February 01, 2009 3:49 AM
To: [hidden email]
Subject: [SPSSX-L] R in SPSS

 

Provided we have installed R, can we run R syntax in the "SPSS Syntax Editor" and then produce outputs in the "SPSS ourput viewer"?



Design your own exclusive Pingbox today!
It's easy to create your personal chat space on your blogs
Reply | Threaded
Open this post in threaded view
|

Re: R in SPSS

Peck, Jon

If you install the Rasch extension command from Developer Central (www.spss.com/devcentral  Downloads link), you can use the dialog box it adds to generate the syntax.  After installation and an SPSS restart, the dialog appears on the Analyze>Scale menu.  This requires Version 17.

 

HTH,

Jon Peck

 


From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Eins Bernardo
Sent: Tuesday, February 10, 2009 8:14 AM
To: [hidden email]
Subject: Re: [SPSSX-L] R in SPSS

 

Reply | Threaded
Open this post in threaded view
|

Re: R in SPSS

zstatman
In reply to this post by E. Bernardo
Yes, this is available from Dev Central. There also is a Custom Dialog to go
with it

WMB
Statistical Services

============
mailto: [hidden email]
http:\\home.earthlink.net\~info.statman
============

On 2/10/2009 10:14:08 AM, Eins Bernardo ([hidden email]) wrote:

> Hi all,
>
> I need your help. Do you have syntax that runs RASCH MODEL in SPSS via R
> software?
>
> Thank you in advance.
> Eins
>
> --- On Sun, 2/1/09, Peck, Jon <[hidden email]> wrote:
> From: Peck, Jon <[hidden email]>
> Subject: Re: R in SPSS
> To: [hidden email]
> Date: Sunday, 1 February, 2009, 3:27 PM
>
>
> Assuming version 16 or later, you need to install the R plug-in from
> Developer Central.  Then your R syntax can be run in the syntax window
> between
>
> BEGIN PROGRAM R.
>
> and
>
> END PROGRAM R.
>
>
>
> The output automatically appears in the SPSS Viewer with two cautions.  1)
> In version 16, R graphics are written to files and don't appear in the
Viewer.  Version 17 integrates the graphics directly. 2) When using R
interactively, expression output appears in your console windows, e.g.,
>
> summary(dta)
>
> displays the summary statistics for a data frame, dta.  In non-interactive
mode, which is what you are in when running BEGIN PROGRAM, you need to
enclose the expression in a print function for it to display, e.g.,
>
> print(summary(dta))
>
>
>
> The documentation for the apis to communicate

=====================
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
Will
Statistical Services
 
============
info.statman@earthlink.net
http://home.earthlink.net/~z_statman/
============