Learn R Programming

dwp (version 1.2)

Density-Weighted Proportion

Description

Fit a Poisson regression to carcass distance data and integrate over the searched area at a wind farm to estimate the fraction of carcasses falling in the searched area and format the output for use as the dwp parameter in the 'GenEst' or 'eoa' package for estimating bird and bat mortality, following Dalthorp, et al. (2024) .

Copy Link

Version

Install

install.packages('dwp')

Monthly Downloads

244

Version

1.2

License

CC0

Maintainer

Daniel Dalthorp

Last Published

February 7th, 2026

Functions in dwp (1.2)

ddFit

Fit Distance Distribution Model(s)
cof_name

Names of the GLM Coefficients for Each Distribution
exportGenEst

Export Estimated Density-Weighted Proportion to File in Proper GenEst Format
exclude

Remove Particular Names from a Longer List
distr_names

Full List of Names of Distributions
dwp

Density-Weighted Proportion
mod_color

Vector of Colors Used in Graphs of Fitted Models
mod_all

Names of All the Available Models
formatGenEst

Format DWP Estimate for Use in GenEst
fmmax

Find suitable mmax for clipping improper priors for M
layout_xy

Example Data for Site Layout on an (x, y) Grid
layout_simple

Example Simple Geometry Data Format for Site Layout
estdwp

Estimate DWP
estpsi

Estimate Probability Carcass lands in Searched Area
ddd

Calculate Probability Functions for Distance Distributions
mpp2ddSim

Convert Distribution Name + Parameters to ddSim Object
modelFilter

Run Models through a Sieve to Filter out Dubious Fits
layout_eagle

Example Bare Vector Format for Eagle Data
layout_polygon

Example Polygon Data for Site Layout
readCarcass

Import Carcass Observations Locations from Shape Files
psi_extend

Simple Extension of a dd Model beyond the Search Radius
mod_standard

Vector of Names of Standard Models
mod_xy

Vector of Names of Models Available for Grid Layout
natural

Vector of Names of Models with Natural Offset
parm_name

List of Names of the Distribution Parameters Associated with Respective Models
postM

Calculate posterior distribution of M and extract statistics (M* and CI)
off

Utility Function for Constructing Offsets for GLMs
prepmod

Internal Utility Function to Parse and Format Model for Calculating psihat
prepRing

Format a Search Layout into Rings for Analysis
degOrder

An Ordering of the Models by Degree of the Polynomial
ddPrint

Print S3 Objects in dwp Package
rmat

Simple Utility Function Used in Optimizing the GLM
mod_lty

Vector of Line Types Used in Graphs of Fitted Models
initLayout

Create a Data Structure or Map for the Site Layout
junk

Section of Code that Serves No Purpose but for Package to Pass CRAN Check
mod_offset

Vector of GLM Offsets for Available Models
constraints

Constraints on GLM Coefficients for Extensibility to a Distribution
sieve_win

Test Criteria for Model Selection within Search Area
sieve_default

Test Criteria for Model Selection
parOK

Check Parameter Value Validity the Distribution
cofOK

Check Whether GLM Coefficients Give Proper Distribution
getncarc

Simple Function to Extract Carcass Counts
incGamma

Incomplete Gamma Function
cof2parms

Convert GLM Coefficients into Named Distribution Parameters
stats

Display a Tables of Summary Statistics for Distance Distributions
[.ddArray

Subset a Set of Fitted Dispersion Models (ddArray)
par_default

Default Graphics Parameters
[.ddSim

Subset Simulated Dispersion Parameters while Preserving Attributes
subset.shapeCarcass

Subset Data from an Imported and Formatted Shape File
xyr

Locations of All Carcasses in Grid Data
addCarcass

Add Carcasses to a Site Layout
carcass_simple0

Full, Simulated carcass_simple Data Set (Including Locations and Missed Carcasses)
MpriorOK

Check validity of format of custom prior for M
Plot

Plot dd and ddArray Objects
Distributions

Probability Distributions for Carcasses Versus Distance from Turbine
Acins

Calculate Area of Intersection inside Circle and Square with Common Center
aic

Calculate Akaike Information Criterion (AICc) for Distance Distributions
ddSim

Simulation of Dispersion Parameters
ddCI

Calculate CI for CDF, PDF, or quantile
dd2ddSim

Extract Parameters from a Distance Model (dd) and Format as ddSim Object
carcass_simple

Carcass Data to Accompany the Simple Geometry Data Format
constraints_par

Constraints on Parameters to Assure Extensibility
alt_names

Names of the Named Distributions
carcass_polygon

Example Carcass Distances to Accompany the Polygon Layout Data Set