Hello,
First of all, your question is about 'predict' but you include graphic
instructions that have nothing to do with it. They do not hurt, but the
reproducible example should also be minimal.
Second, whenever you use RNG's, you should start it with set.seed().
Now, I have edited your code
Hi
First of all you should not post in HTML.
Thank you for posting the code, however I do not understand wht exactly do you
mean by that you get many lines. I get only one with your code.
Other answers see in line
-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On
Your messages about masking come from attaching your data set to the R session.
In general, that is bad practice as it leads to confusing code. It is typically
better to use the “data” argument in things like lm() to accomplish this task.
As near as I can tell, your second set of predictions is
This is the kind of thing that leads experienced R users to avoid attach for
data analysis. Read "The R Inferno".
Use the "data" argument to lm, and the "newdata" argument to predict.lm.
--
Sent from my phone. Please excuse my brevity.
On January 31, 2018 9:20:10 AM PST, WRAY NICHOLAS via R-hel
4 matches
Mail list logo