TrendFitResult

vecxt_re.TrendFitResult
case class TrendFitResult(nObs: Int, dfResidual: Int, intercept: Double, slope: Double, seIntercept: Double, seSlope: Double, zIntercept: Double, zSlope: Double, pValueIntercept: Double, pValueSlope: Double, nullDeviance: Double, residualDeviance: Double, dispersion: Double, fStatistic: Double, fPValue: Double, aic: Double, logLikelihood: Double)

Result of fitting a GLM trend model: log(μ) = β₀ + β₁·year

Contains coefficient estimates, standard errors, test statistics, and goodness-of-fit measures.

Value parameters

aic

Akaike Information Criterion

dfResidual

Residual degrees of freedom (n - 2)

dispersion

Estimated dispersion parameter (1.0 for Poisson, estimated for NegBin)

fPValue

p-value for fStatistic: χ²(1) for Poisson (dispersion fixed at 1), F(1, n−2) for NegBin (dispersion estimated)

fStatistic

Test statistic for model vs intercept-only: the deviance drop, divided by the estimated dispersion for NegBin

intercept

Estimated intercept (β₀)

logLikelihood

Log-likelihood of the fitted model

nObs

Number of observations

nullDeviance

Deviance of intercept-only model

pValueIntercept

Two-tailed p-value for intercept (H₀: β₀ = 0)

pValueSlope

Two-tailed p-value for slope (H₀: β₁ = 0) - this tests for significant trend

residualDeviance

Deviance of full model

seIntercept

Standard error of intercept

seSlope

Standard error of slope

slope

Estimated year coefficient (β₁)

zIntercept

z-statistic for intercept (β₀ / SE(β₀))

zSlope

z-statistic for slope (β₁ / SE(β₁))

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def hasSignificantTrend(alpha: Double = ...): Boolean

Test whether there is a statistically significant trend at the given alpha level

Test whether there is a statistically significant trend at the given alpha level

Attributes

def summary: String

Nicely formatted summary string, similar to R's glm summary output

Nicely formatted summary string, similar to R's glm summary output

Attributes

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product