CTAN Comprehensive TeX Archive Network

Directory macros/luatex/latex/lua-regression

README.md

Lua Regression

A system for performing regression testing on CSV format data files in , written purely in Lua for use with Lua. Includes the ability to fit polynomials of multiple orders to data, and plot the results using PGFPlots. Offers some additional features such as the ability to generate confidence intervals and perform $R^2$ tests on the data.

Features

  • Fit polynomials of multiple orders to data
  • Generate confidence intervals
  • Perform $R^2$ tests on the data
  • Plot the results using PGFPlots
  • Support for CSV format data files
  • Written purely in Lua for use with Lua
  • Control significant figures in the output
  • Add and remove equation and $R^2$ from the legend.
  • Outputs equations and $R^2$ values to commands so they can be called in the document.

Installation

This package can be installed with a local distribution (e.g. Live, Mik), from CTAN.

Otherwise, you can clone the repository or download from releases and place the tex folder in your texmf local directory.

Documentation

Relevant documentation is included with each release.

Authors

This package is authored and maintained by George Allison

Bug Reporting

If you find a bug, please report it to the issue tracker on https://github.com/HaivuUK/lua-regression. Include a description of the bug, the version of Lua you are using, and any relevant code or data files.

License

This project is licensed under the LPPL ( Project Public License), version 1.3c or later.

Download the contents of this package in one zip archive (236.1k).

lua-regression – Add polynomial regressions to graphs

This Lua package provides a simple interface for performing polynomial regression on data sets. It allows users to specify the order of the polynomial regression, the columns of the data set to use, and whether to plot the results. The package also includes options for confidence intervals and error bands.

Packagelua-regression
Bug trackerhttps://github.com/HaivuUK/lua-regression/issues
Repositoryhttps://github.com/HaivuUK/lua-regression
Version1.0.2 2025-04-17
LicensesThe Project Public License 1.3
Copyright2025 George Allison
MaintainerGeorge Allison
Contained inTeX Live as lua-regression
MiKTeX as lua-regression
TopicsLua
Data manipulation
Data preparation
Graphics plot
CSV support
...
Guest Book Sitemap Contact Contact Author