Hi,
Is it just me or it appears the "temperature" and "probability" should be
reversed?
Anyhow it should help you to assign your model to a variable (as Joshua did
with his own suggestion)
yourmodel <-lm(x[,2] ~ x[,1] + I(x[,1]^2)) # again, taking literally the way
you formulated it...
Hi Josh,
This is by no means the fanciest solution ever, but as there are
predict methods for many types of models in R, I thought I would show
it this way.
## fit the model
model <- lm(probability ~ poly(temperature, 2), data = x)
## create line values
dat <- data.frame(temperature = seq(min(x$
Hi Ryan,
See the example in ?predict.lm . I think it would be useful in this case.
HTH,
Jorge
On Wed, Dec 31, 1969 at 8:16 PM, Ryan Harrigan <[EMAIL PROTECTED]> wrote:
> I have an equation describing the best-fit model for a set of points (just
> 2
> axes) that is in the form:
>
> y=b+mx+px^2
3 matches
Mail list logo