What is the best way to get orthogonal polynomials for a regression like R's poly function

R has a very easy-to-use function where you provide a vector and it will return orthogonal polynomial vectors that can be used in linear models.

There are a few different polynomial packages available. Can this be done with Polynomials.jl?

1 Like

Orthogonal polynomials of various types are provided by GitHub - jverzani/SpecialPolynomials.jl: Families of polynomials

1 Like