Hello,
I am trying to perform a glm analysis on a 68x13113 matrix (named 
data.spect). The first column corresponds to the predictor 
(data.spect[,1]) and the rest to the response variables 
(data.spect[,2:13113]). When I try this code

glmObject <- glm(data.spect[,2:13113]~data.spect[,1])

I get the following error:

Error: (subscript) logical subscript too long

Could anyone help me on solving this problem?
Best,

Dani

-- 
Daniel Valverde Saubí

Grup de Biologia Molecular de Llevats
Facultat de Veterinària de la Universitat Autònoma de Barcelona
Edifici V, Campus UAB
08193 Cerdanyola del Vallès- SPAIN

Centro de Investigación Biomédica en Red
en Bioingeniería, Biomateriales y
Nanomedicina (CIBER-BBN)

Grup d'Aplicacions Biomèdiques de la RMN
Facultat de Biociències
Universitat Autònoma de Barcelona
Edifici Cs, Campus UAB
08193 Cerdanyola del Vallès- SPAIN
+34 93 5814126

______________________________________________
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, minimal, self-contained, reproducible code.

Reply via email to