[R] duplicate row.names are not allowed

2007-12-06 Thread stephenc
I am using read.table and keep on getting this message. The function is confusing my first column with a row.names column. I have checked the table carefully using excel and it seems quite symetric and with a name at the top of each column. This is what I am using: form1 = read.table("c:/horses

[R] machine learning and horse racing

2007-09-17 Thread stephenc
Hi I am trying to use various techniques (eg svm, logistic regression, neural networks) to classify and predict the outcome of horse races. Most of my predictive features are categorical - horse, jockey, trainer - and I keep on running out of memory owing to the size of the vector. Does any

[R] problems with glm

2007-10-01 Thread stephenc
I am having a couple of problems someone may be able to cast some light on. Question 1: I am making a logistic model but when i do this: glm.model = glm(as.factor(form$finished) ~ ., family=binomial, data=form[1:15,]) I get this: Error in model.frame(formula, rownames, variables, varname

[R] partitioning data

2007-10-15 Thread stephenc
I am trying to train on part of my data and test on another part: > glm.model = glm(as.factor(h_finished) ~ . , family=binomial, data=form[1:15,]) > pred = predict(glm.model, data=form[150001:20,-1], type="response") > t = table(pred, form[150001:20,1]) Error in table(pred, form[15000

[R] perl module for R

2007-11-03 Thread stephenc
Hi can anyone recommend a perl module that I can use to run R? Stephen __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented,

Re: [R] perl module for R

2007-11-08 Thread stephenc
This looks a bit like it only works for unix and maybe linux. is that right? I'm using windows so if it is right I'll need another solution. Stephen > http://www.omegahat.org/RSPerl/ > > -- > Andrew J Perrin - andrew_perrin (at