Julia analog to R's poly function, orthogonal polynomials by QR decomposition

Daniel_Johansson
Fri, 02 May 2025 21:20:12 +0000
New to Julia

Hey guys!
Im trying to replicate some existing R code in julia for a proyect, but such R code depends on the stats base poly function which, given a collection of points, it computes orthogonal polynomials evaluated at those points.

I havent been able to find an analgoue in Julia, so I’m trying to replicate the necessary functionalities of the poly function. Regardless, after checking the code, it uses a QR decomposition to obtain such evaluations. I’m trying to understand what is doing, but the only similar thing I´ve found on books is the utilization of the QR decomposition to compute OLS.

Does anybody know if there is an analogous function in Julia, or know of a reference which can be usefull to understand poly’s background work?

23 posts - 5 participants