Hello,
I have two problems in automating multiple glm(s) operations.
The data file is tab delimited file with headers and two columns. like
"ABC" "EFG"
1 2
2 3
3 4
dat <- read.table("FILENAME", header=TRUE, sep="\t", na.strings="NA",
dec=".", strip.white=TRUE)
dataf <- read.table("FILENAME", header=FALSE, sep="\t", na.strings="NA",
dec=".", strip.white=TRUE)
norm1 <- glm(dataf[1,1] ~ dataf[1,2], family= normal(log), data=dat)
norm2 <- glm(dataf[1,1] ~ dataf[1,2], family= normal(identity), data=dat)
and so on.
But glm does not work on the data unless I write ABC and EFG there... I want
to automate the script for multiple files.
The other problem is to write the plot(GLM) to a file without displaying it
at stdout.
Thanks,
A. Mani
Member, Cal. Math. Soc
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html