search for: predx

Displaying 1 result from an estimated 1 matches for "predx".

Did you mean: preds
2010 Feb 13
3
Plot different regression models on one graph
The following variables have the following significant relationships (x is the explanatory variable): linear, cubic, exponential, logistic. The linear relationship plots without any trouble. Cubic is the 'best' model, but it is not plotting as a smooth curve using the following code: cubic.lm<- lm(y~poly(x,3)) lines(x,predict(cubic.lm),lwd=2) How do I plot the data and the estimated