regressors | R Documentation |

Regress vectors

Correlate x and y

Polynomial regression of degree 1

Polynomial regression of degree 2

Polynomial regression of degree 3

Polynomial regression of degree 4

'

x %/r% y x %/1% y x %/2% y x %/3% y x %/4% y x %/n% yn

`x` |
Numeric vectors |

`y` |
Numeric vector |

`yn` |
List of length 2, first element is a vector |

x <- rnorm(100) y <- x + x^2 + x^3 # Correlate x with y x%/r%y # Polynomial regression degree 1 .. 4 x%/1%y x%/2%y x%/3%y x%/4%y anova(x%/1%y,x%/2%y,x%/3%y,x%/4%y) # Order n x%/n%list(y,10)

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.