Here is a Rasch
program (generated by the spssinc rasch extension command in 17).
All you should
need to make this work in 16 is to change the variable names x1,… below.
Note that you
need to install the R ltm module for this to work.
HTH,
Jon Peck
BEGIN PROGRAM R.
library(ltm)
dta<-spssdata.GetDataFromSPSS("x1
x2 x3 x4 x5")
# convert NaN values to NA
is.na(dta) <-
is.na(dta)
res <- tryCatch(
summary(
fit<-rasch(data=dta,
na.action=na.exclude
)
),
error=function(e)
{return(c("ERROR:",e))}
)
if (!is.null(res$message))
{print(res$message);break} else {
spsspivottable.Display(res$coefficients,
title=paste("SPSSINC
Rasch"),"SPSSINCRasch",
caption=c(res$call),
isSplit=FALSE)
}
if (is.null(fit$message))
{
spssdictionary.EndDataStep()
}
rm(dta)
rm(res)
rm(fit)
END PROGRAM .
From: SPSSX(r)
Discussion [mailto:[hidden email]] On
Behalf Of Eins Bernardo
Sent: Friday, April 10, 2009 10:27
AM
To: [hidden email]
Subject: [SPSSX-L] Rasch analysis
using R plug-in
I am using spss 16. I already installed the R
plug-in and R 2.5. I would like to do a Rasch Analysis for my
data. How would I do it? Please advise.
|
HOTMAIL,
GMAIL, ….ACCOUNTS?
Invite your friends from Hotmail, Gmail to Yahoo! Messenger today!