Contact

R.QT Function (Gnumeric)

Statistical Intermediate Gnumeric

Find signed Student t critical values with Gnumeric R.QT. Use lower or upper probability, fractional degrees of freedom and log input with checked examples.

Verification status: 23 reference, boundary and advanced-check formulas were recalculated with Gnumeric 1.12.57 ssconvert. Saved identities, the blank input and numerical results were independently checked. Gnumeric 1.12.62 was source-checked only. How formula examples are checked

Quick answer: =R.QT(.75,1) gives 1 in Gnumeric 1.12.57.

Availability and version history

  • Introduced: First release not established; present in the retained 1.12.57 source.
  • Supported in: Gnumeric 1.12.62; no retirement is established.
  • Scope: Desktop Gnumeric with its Statistical Functions From R plugin. English comma-separated formulas are shown.
  • Checked: October 14, 2026. Tables and the named advanced check use 1.12.57 ssconvert. Current 1.12.62 source was inspected; that release was not executed.

What R.QT returns

R.QT returns the signed quantile of the central Student t distribution. By default p is a lower cumulative probability. With lower_tail FALSE, p is an upper-tail probability, so a small p gives a positive critical value. Versioned function help.

Syntax and arguments

=R.QT(probability,degrees_freedom[,lower_tail[,log_p]])
  • probability: 0<p<1 for a finite ordinary quantile; with log_p TRUE supply LN(p).
  • degrees_freedom: positive real parameter, including fractions.
  • lower_tail: optional TRUE for the lower cumulative probability; FALSE requests the upper tail.
  • log_p: optional FALSE. TRUE uses natural-log probabilities, not base-10 logarithms.

Brackets mark optional arguments; do not type them. Current worksheet implementation.

Reproducible examples

These self-contained formulas were recalculated natively. Ordinary-domain results were checked against independent mathematics; source guards explain the boundary cases. Results are rounded to twelve decimal places, or thirteen significant digits for small nonzero values. This is presentation precision, not a universal accuracy guarantee.

Formula Gnumeric 1.12.57 result
=R.QT(.75,1) 1
=R.QT(.25,1) -1
=R.QT(.975,5) 2.570581835636
=R.QT(.025,5,FALSE()) 2.570581835636
=R.QT(LN(.025),5,FALSE(),TRUE()) 2.570581835636
=R.QT(.9,2.5) 1.730250928807
=R.QT(.5,5) 0
=R.QT(.75,.5) 1.55377397403

Practical worksheet

For five degrees of freedom, lower probability 0.975 gives 2.570581835636. Upper probability 0.025 gives the same critical value. The value 0.025 is one tail of a symmetric 95% central interval; supplying 0.95 directly would select a different cutoff.

For an independent normal sample with n=6, mean 10 and sample standard deviation 2, the stated t interval uses R.QT(0.975,5)*2/SQRT(6). Independent arithmetic gives a margin 2.098871279792 and endpoints 7.901128720208 and 12.098871279792. These numbers illustrate the specified model rather than automatically validating a real sample.

Advanced interpretation and checks

At one degree of freedom, lower probabilities 0.25 and 0.75 give −1 and 1. The median is zero. Quantile symmetry is q(1−p)=−q(p), while evaluating the CDF at an interior quantile recovers the supplied lower probability within numerical precision.

A positive fractional degree below one is also accepted: the tested q(0.75;0.5) is approximately 1.553773974030. Log mode takes LN(0.025), not the ordinary number 0.025; a positive log-probability input is invalid.

The saved advanced-check result for =R.PT(R.QT(.975,5),5) was 0.975.

Boundaries and troubleshooting

At ordinary probabilities 0 and 1 the mathematical t endpoints are infinite. The worksheet returns #NUM! for those endpoints in both tail orientations, and also for outside-domain probabilities or nonpositive degrees of freedom. Those causes are different even though their displayed error is the same.

An empty first argument becomes zero and therefore reaches an infinite endpoint. Nonnumeric text gives #VALUE!; the missing-degree and surplus-argument cases give #N/A. The tested cases do not establish uniform accuracy at every extreme probability.

F5 is genuinely empty, rather than a cell containing an empty string.

Formula Gnumeric 1.12.57 result
=R.QT(0,5) #NUM!
=R.QT(1,5) #NUM!
=R.QT(0,5,FALSE()) #NUM!
=R.QT(1,5,FALSE()) #NUM!
=R.QT(-.1,5) #NUM!
=R.QT(1.1,5) #NUM!
=R.QT(.5,0) #NUM!
=R.QT(.5,-1) #NUM!
=R.QT(0,5,TRUE(),TRUE()) #NUM!
=R.QT(1,5,TRUE(),TRUE()) #NUM!
=R.QT("abc",5) #VALUE!
=R.QT(F5,5) #NUM!
=R.QT(.5) #N/A
=R.QT(.5,5,1,0,1) #N/A

Official evidence and checking scope

The relevant complete worksheet callback and main calculation helper are unchanged between the inspected versions. That does not establish later-version numerical execution. Both stale and uncached SUM controls recalculated correctly. Native XML preserves the R.* identities. The secondary ODF export keeps these calls in the ORG.GNUMERIC namespace; it does not establish execution in another product. GUI entry, other locales and other spreadsheet products were not tested.