Contact

LOGREG Function (Gnumeric)

Statistical Intermediate Gnumeric

Fit a logarithmic predictor model in Gnumeric with LOGREG, returning coefficients for y = m*ln(x) + b and optional regression diagnostics.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

LOGREG fits y = m×ln(x) + b for a single predictor, returning coefficients as an array. It transforms the x-values, not the y-values. The name means logarithmic regression here; it is not logistic regression for binary outcomes and is not the exponential-y model used by LOGEST.

Syntax and defaults

=LOGREG(known_ys,[known_xs],[affine],[stat])

known_ys supplies the observations. known_xs supplies corresponding positive predictor values and defaults to 1,2,…,n. affine defaults to TRUE and fits the intercept b; FALSE constrains the intercept to zero. stat defaults to FALSE; TRUE adds diagnostic rows beneath the coefficient row.

For one predictor, the first row has two columns: m then b. The implementation also uses Gnumeric’s multi-predictor collector, but the reproducible example and interpretation here are explicitly single-predictor. Do not confuse the help’s two-column description with a guarantee that every multivariable model has only two coefficients.

Reproducible logarithmic fixture

Enter A1 as 1, A2 as =EXP(1), A3 as =EXP(2) and A4 as =EXP(3). Enter B1:B4 as 3,5,7,9. Evaluate =LOGREG(B1:B4,A1:A4) in a two-column result area. Independently expected coefficients are m = 2 and b = 3.

The scalar checks are =INDEX(LOGREG(B1:B4,A1:A4),1,1) and the same expression with column index 2. The natural logarithms of the x-values are 0,1,2,3; the y-values exactly satisfy y = 2z+3. This gives an independent arithmetic explanation rather than relying on a plotted curve’s appearance. A prediction at x = EXP(4) is 2×4+3 = 11.

Do not omit known_xs in this example: the default1,2,3,4 is different from 1,e,e²,e³. Omitting an argument is only equivalent when its default actually matches the input design.

Advanced diagnostics

With stat TRUE, the result has five rows. After the coefficient row come standard errors, then R² and estimate standard error, then F and residual degrees of freedom, then regression and residual sums of squares. The diagnostics describe the regression after transforming x to ln(x). Exact synthetic data has zero theoretical residual variation, so it is unsuitable for demonstrating realistic uncertainty or finite F behavior.

A logarithmic x model implies diminishing additive changes in y for equal absolute increases in positive x. Units and the x origin matter: shifting x before taking its logarithm changes the model, not merely the intercept label. Keep the transformation documented beside the data.

Errors and troubleshooting

Use strictly positive x-values; ln(0) and ln(negative) are not real-valued inputs for this model. Unequal observation counts and unsuccessful regressions are documented or implemented as #NUM!. Constant x-values cannot identify the usual slope-and-intercept model. Check range orientation and missing data before hiding errors.

If coefficients look like multiplicative factors, verify that you intended LOGREG rather than LOGEST. If only m appears, inspect the second array column or use INDEX. First introduction is not established by the retained evidence; NEWS records crash fixes in 1.9.1 and modernization alongside LINEST/LOGEST in 1.10.6.

Native fixture results

The native 1.12.57 run returned the two INDEX-extracted coefficients 2 and 3. Optional diagnostics and broader input-error behavior remain source-reviewed rather than separately native-tested.

Availability and verification scope

The function is present in the inspected official source. Bounded examples are independently calculated; native Gnumeric ssconvert 1.12.57 results are recorded separately below. Retained statistical source 1.12.62 was originally obtained October 13–14, 2026 and inspected October 17; HPFILTER source 1.12.57 was freshly retrieved October 17. No historical-release execution, GUI operation, screenshot, or native 1.12.62 result is implied. The last functioning release is not established. English formulas use commas, with locale-specific separators adjusted as needed.

Array-returning functions require an appropriate result area. The INDEX formulas shown inspect individual elements without promising automatic dynamic-array spilling in the GUI.