Skip to content

RegressionTransform

RegressionTransform = object

Defined in: spec/transform.ts:106

Fits a trend line through a scatter of points.

method names the shape being fitted, order the degree when that shape is a polynomial. The fit is an assertion about the data, not a reading of it, which is why it is a transform and not a second frame.

optional groupBy?: readonly string[]

Defined in: spec/transform.ts:112


kind: "regression"

Defined in: spec/transform.ts:107


optional method?: "linear" | "log" | "exp" | "pow" | "quad" | "poly" | "loess"

Defined in: spec/transform.ts:110


optional order?: number

Defined in: spec/transform.ts:111


x: string

Defined in: spec/transform.ts:108


y: string

Defined in: spec/transform.ts:109