Re: [R] problem with effects : 'subscript out of bounds'

2012-03-10 Thread John Fox
lp > Subject: Re: [R] problem with effects : 'subscript out of bounds' > > if that is not specific (or not general) enough: > > newDV <- dat$DV ## newDV is my DV & it is continuous. > newDV <- as.numeric(newDV)-5 > str(newDV) > > > (i had to do a gre

Re: [R] problem with effects : 'subscript out of bounds'

2012-03-09 Thread Nicole Marie Ford
if that is not specific (or not general) enough: newDV <- dat$DV ## newDV is my DV & it is continuous. newDV <- as.numeric(newDV)-5 str(newDV) (i had to do a great deal of coding here so i am snipping down to the end) tmp[which(dat$v1 == "stuff" & dat$v2 == "more stuff")] <- "lots of stuff"

[R] problem with effects : 'subscript out of bounds'

2012-03-09 Thread Nicole Marie Ford
hello. help with effects plots. here's the last bit of code before running the model and then the effects, then the error. nor.dem <- norway$v162 ## nor.dem is my DV & it is continuous. nor.dem <- as.numeric(nor.dem)-5 str(nor.dem) (i had to do a great deal of coding here so i am snipping dow