Example tables for the optional QC parameters fiv_max_by_weight and
bin_fcr_limits of qc_config().
fiv_max_example(): maximum feed intake per visit (g) by breed
("YY", "LL", "DD") and 10 kg body weight class from 20 to 140 kg.
bin_fcr_example(): plausible feed conversion ratio per 10 kg body
weight class from 30 to 120 kg.
The values come from in-house quality-control scripts of a pig testing station, not from the literature. Check them against your own data before use.
fiv_max_example()
bin_fcr_example()A data.table. fiv_max_example(): breed, weight_from
(kg), fiv_max (g). bin_fcr_example(): weight_from (kg),
fcr_min, fcr_max.
fiv_max_example()
#> breed weight_from fiv_max
#> <char> <num> <num>
#> 1: YY 20 747.0
#> 2: YY 30 936.0
#> 3: YY 40 1125.1
#> 4: YY 50 1314.1
#> 5: YY 60 1503.2
#> 6: YY 70 1692.2
#> 7: YY 80 1881.2
#> 8: YY 90 2070.3
#> 9: YY 100 2259.3
#> 10: YY 110 2448.4
#> 11: YY 120 2637.4
#> 12: YY 130 2826.5
#> 13: LL 20 821.6
#> 14: LL 30 1044.8
#> 15: LL 40 1268.0
#> 16: LL 50 1491.2
#> 17: LL 60 1714.4
#> 18: LL 70 1937.7
#> 19: LL 80 2160.9
#> 20: LL 90 2384.1
#> 21: LL 100 2607.3
#> 22: LL 110 2830.5
#> 23: LL 120 3053.7
#> 24: LL 130 3277.0
#> 25: DD 20 712.6
#> 26: DD 30 916.9
#> 27: DD 40 1121.2
#> 28: DD 50 1325.4
#> 29: DD 60 1529.7
#> 30: DD 70 1734.0
#> 31: DD 80 1938.2
#> 32: DD 90 2142.5
#> 33: DD 100 2346.8
#> 34: DD 110 2551.0
#> 35: DD 120 2755.3
#> 36: DD 130 2959.6
#> breed weight_from fiv_max
#> <char> <num> <num>
qc <- qc_config(fiv_max_by_weight = fiv_max_example(),
bin_fcr_limits = bin_fcr_example())
# Default settings
qc <- qc_config()
qc$duration_max
#> [1] 3600
# Override single parameters
qc_config(stage_range = c(40, 110), weight_outlier = c("rlm", "loess", "sd"))
#>
#> ── QC settings ──
#>
#> Station transfer
#> misread_max_visits: 2
#> max_gap_days: 3
#> max_jump_kg: 10
#> Body weight records
#> weight_range: 15, 150
#> adapt_days: 7
#> weight_track: TRUE
#> track_tol: 0.08
#> weight_outlier: rlm , loess, sd
#> outlier_combine: any
#> rlm_cutoff: 0.5
#> sd_max: 3
#> loess_span: 0.75
#> Pig-level checks
#> min_records: 20
#> min_test_days: 35
#> max_missing_rate: 0.3
#> entry_weight_max: 65
#> exit_weight_min: 85
#> track_flag_share: 0.4
#> smooth_r2_min: 0.99
#> Growth and ADG
#> stage_range: 40, 110
#> curve_model: poly2
#> max_extrap_days: 30
#> curve_extrap: start
#> Feeder errors
#> fiv_range: -20, 2000
#> fiv0_abs_max: 20
#> duration_max: 3600
#> speed_fiv_lo_max: 500
#> speed_strict_max: 110
#> speed_range: 2, 170
#> idle_duration_max: 500
#> trough_diff_range: -20, 1800
#> max_unidentified_feed_kg: 90
#> fiv_max_by_weight: NULL (off)
#> Daily feed intake
#> dfi_range: 0, 6
#> dfi_quantile: NULL (off)
#> dfi_correct: lmm
#> impute_method: loess_pop
#> long_gap_days: 3
#> Confidence flags
#> max_edge_extrap_days: 15
#> min_coverage: 0.7
#> bin_width: 10
#> min_bin_coverage_kg: 6
#> bin_fcr_limits: NULL (off)