Skip to content

buildModel

buildModel(rows, observedNames): object

Defined in: model.js:30

Build the model specification from parsed rows.

Parameters

rows

any[]

Output of parseModel

observedNames

string[]

Observed variable names present in the data

Returns

object

RAM specification: variable ordering, the parameter table (directed paths in A, (co)variances in S), total t and observed p counts

latents

latents: string[]

observed

observed: string[]

p

p: number

params

params: object[]

t

t: number

variables

variables: string[]