weight.adjust: Adjusting Weights Calculated from AIM Sample Designs

View source: R/weighting.R

weight.adjustR Documentation

Adjusting Weights Calculated from AIM Sample Designs

Description

This function takes the point weights data frame output from the function weight() and a SpatialPolygonsDataFrame defining the weight categories. Returns the data frame supplied as points with the new column ADJWGT containing the adjusted weights.

Usage

weight.adjust(
  points,
  wgtcat.spdf,
  spdf.area.field = "AREA.HA.UNIT.SUM",
  spdf.wgtcat.field = "UNIQUE.IDENTIFIER",
  projection = sp::CRS("+proj=longlat +ellps=GRS80 +datum=NAD83 +no_defs")
)

Arguments

points

Data frame output from weight(), equivalent to weight()[["point.weights"]] or weight()[[2]].

wgtcat.spdf

SpatialPolygonsDataFrame describing the weight categories for adjusting the weights. Use the output from intersect().

spdf.area.field

Character string defining the field name in wgtcat@data that contains the areas for the weight categories. Defaults to "AREA.HA.UNIT.SUM".

spdf.wgtcat.field

Character string defining the field name in wgtcat@data that contains the unique identification for the weight categories. Defaults to "UNIQUE.IDENTIFIER".

projection

sp::CRS() argument. Defaults to NAD83 with sp::CRS("+proj=longlat +ellps=GRS80 +datum=NAD83 +no_defs"). Is used to reproject all SPDFs in order to perform spatial manipulations.

Examples

weight.adjuster()

nstauffer/aim.analysis documentation built on Nov. 2, 2023, 12:52 a.m.