Skip to content
Prev 390957 / 398506 Next

NA's in segmented

Hi

1. Do not use HTML formated mail, your message is scrambled
2. With your code only you can get result all of us get error
Error in data[, "meanMSD25"] : 
  object of type 'closure' is not subsettable
Try to provide reproducible example.

3. with lm it is not necessary to use data[,"meanMSD25"], you should provide your data object to data option in lm call (it is silly to call your data data - fortune("dog") applies here)
4. why do you use as.numeric(data[,"meanMSD25"]), shouldn't the column be numeric itself?

So my  wild guess is that you read the data into R wrong way and instead of numeric they are character, which could be one source of your problem.

Cheers
Petr