[R] Extracting 'SOME' values from a linear model.
barry.jones1 at students.plymouth.ac.uk
Sat Apr 3 00:11:55 CEST 2010
David Winsemius wrote:
> On Apr 2, 2010, at 5:32 PM, HouseBandit wrote:
>> my goal is to return the selected fitted values ...
> Which were never really "selected".
>> ... and then perform a sum of
>> squares calcuation with them. I have looked at 'list' etc but cant
>> anything. Its either all of the fitted values or just the first and
>> last of
>> the sub set that I need.
> A) In the future, don't delete the email train.
> B) try this code and see if you can get value out of it:
> > vec <- 1:100
> > vec[(length(vec)*0.9):length(vec)]
>  90 91 92 93 94 95 96 97 98 99 100
> Mind you this is just a guess at what you wanted because your origianl
> posting seem unclear as to your goal, at least to my reading.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
I had just tried something similar and got it working.
Thanks for your quick replies though
View this message in context: http://n4.nabble.com/Extracting-SOME-values-from-a-linear-model-tp1749643p1749705.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help