add_estimated_sds: Estimate missing records for standard deviation based on mean...

View source: R/species_data_functions.R

add_estimated_sdsR Documentation

Estimate missing records for standard deviation based on mean of body size

Description

Fill in missing records for the standard deviation of body mass for a species, based on its mean body size and the parameters estimated by the linear model fit by get_sd_parameters.

Usage

add_estimated_sds(clean_size_data, sd_pars)

Arguments

clean_size_data

dataframe of species' masses and standard deviations; as generated by clean_sp_size_data

sd_pars

parameters as list of ⁠$slope⁠, ⁠$intercept⁠; as generated by get_sd_parameters

Value

a dataframe of species' species_id (which matches the AOU in the Breeding Bird Survey), mass mean body mass, sd standard deviation body mass, and a new column for estimated_sd, a TRUE/FALSE flag for whether the standard deviation has been estimated using the parameters provided in sd_pars.


diazrenata/birdsize documentation built on Jan. 29, 2024, 12:25 p.m.