Displaying 1 result from an estimated 1 matches for "fit3pl".
Did you mean:
fit2pl
2010 Jun 26
1
Passing the parameter (file name) to png()
...g it
as external parameter to the R batch script. The following is the code I
have written for this.
*R Script:*
library(ltm)
cmd_args = commandArgs();
for (arg in cmd_args) cat(" ", arg, "\n", sep="")
respmat <- read.table("C:\\rphp\\responsedata.txt")
fit3pl <- tpm(respmat)
cat(" ", arg, "\n", sep="")
b <- c("C:\\rphp\\",arg)
png(file=b, bg="transparent")
plot(fit3pl,items=c,lwd=3)
dev.off()
rm(respmat,fit3pl,b)
q()
Could you please help me in doing so? I get an error message when R executes
png...