schema: gsuite.model/v1-draft
name: multitrait_nested_regression
traits:
- trait1
- trait2
inputs:
  observations:
    type: table
    file: ../frozen-inputs/rhe/cases/10k-multitrait-nested-regression/data/phenotypes.csv
    id: record_id
    columns:
      individual: sample_id
      time: time_days
      period: site_period
      visit: site_visit
    responses:
      trait1: y1
      trait2: y2
  pedigree:
    type: pedigree
    file: ../frozen-inputs/gsim/large-single-step-5trait/pedigree.csv
    columns:
      individual: animal
      parent1: sire
      parent2: dam
  grid:
    type: table
    file: ../frozen-inputs/rhe/cases/10k-multitrait-nested-regression/data/prediction_grid.csv
    id: prediction_id
    columns:
      individual: sample_id
      time: time_days
relationships:
  A:
    type: pedigree
    input: pedigree
bases:
  curve:
    family: legendre
    column: time
    degree: 2
    center: 155.0
    scale: 150.0
covariances:
  genetic:
  - - 1
    - 0
    - 0
    - 0
    - 0
    - 0
  - - 0
    - 0.4
    - 0
    - 0
    - 0
    - 0
  - - 0
    - 0
    - 0.1
    - 0
    - 0
    - 0
  - - 0
    - 0
    - 0
    - 0.7
    - 0
    - 0
  - - 0
    - 0
    - 0
    - 0
    - 0.3
    - 0
  - - 0
    - 0
    - 0
    - 0
    - 0
    - 0.08
  local_curve:
  - - 0.3
    - 0
    - 0
    - 0
    - 0
    - 0
  - - 0
    - 0.12
    - 0
    - 0
    - 0
    - 0
  - - 0
    - 0
    - 0.04
    - 0
    - 0
    - 0
  - - 0
    - 0
    - 0
    - 0.24
    - 0
    - 0
  - - 0
    - 0
    - 0
    - 0
    - 0.1
    - 0
  - - 0
    - 0
    - 0
    - 0
    - 0
    - 0.03
  residual:
  - - 0.7
    - 0.08
  - - 0.08
    - 0.5
model:
  data: observations
  fixed: factor(period) * curve
  random:
    genetic:
      group: individual
      relationship: A
      basis: curve
      covariance: genetic
    local_environment:
      group: individual:visit
      basis: curve
      covariance: local_curve
  residual: residual
analysis:
  task: rhe
  rhe:
    method: ordinary
    probes: 32
    seed: 4401
execution:
  solver: sparse_direct
  sparse_backend: pardiso
  threads: 4
output:
  directory: results/vc
  tables:
  - diagnostics
  predictions: {}
