Skip to contents

Returns the registry metadata for one hd_*() model variant together with its predictor table (argument, level, units, whether required, and the source's definition of the predictor).

Usage

get_hd_model_info(model_id)

Arguments

model_id

Single model identifier, as in hd_model_registry()$model_id.

Value

A named list with the registry fields of the model (list-columns unwrapped), its species coverage, and predictors, a tibble with columns arg, level, units, required, definition and source_locator.

Examples

ids <- hd_model_registry()$model_id
if (length(ids) > 0) get_hd_model_info(ids[[1]])
#> $model_id
#> [1] "huang1994"
#> 
#> $engine
#> [1] "hd_huang1994"
#> 
#> $rank
#> [1] 30
#> 
#> $fixed_args
#> list()
#> 
#> $reference
#> [1] "@Huang1994hd"
#> 
#> $scope
#> [1] "provincial"
#> 
#> $province_scope
#> [1] "AB"
#> 
#> $stand_origin
#> [1] "natural"
#> 
#> $bc_region
#> [1] NA
#> 
#> $equation_family
#> [1] "chapman_richards"
#> 
#> $required_predictors
#> [1] "DBH"
#> 
#> $optional_predictors
#> [1] "natural_subregion"
#> 
#> $region_arg
#> [1] "natural_subregion"
#> 
#> $prediction_types
#> [1] "population"
#> 
#> $calibration_published
#> [1] FALSE
#> 
#> $params_key
#> [1] "parameters_hd_Huang1994"
#> 
#> $species_manual
#> NULL
#> 
#> $description
#> [1] "Alberta T/291 ecologically based DBH-height models (weighted NLS); provincial (Table 2) or natural-region-group (Table 1) variants, incl. softwood/hardwood group models."
#> 
#> $species
#>  [1] "ABIE.BAL" "ABIE.LAS" "BETU.PAP" "LARI.LAR" "PICE.ENG" "PICE.GLA"
#>  [7] "PICE.MAR" "PINU.BAN" "PINU.CON" "POPU.BAL" "POPU.TRE" "PSEU.MEN"
#> 
#> $predictors
#> # A tibble: 2 × 6
#>   arg               level units               required definition source_locator
#>   <chr>             <chr> <chr>               <lgl>    <chr>      <chr>         
#> 1 DBH               tree  cm                  TRUE     D: diamet… T/291 p. 2    
#> 2 natural_subregion plot  code (1-21 or e.g.… FALSE    Alberta n… T/291 Table 1…
#>