lm_snow: Linear regression for ground snow load prediction.

Description Usage Arguments Value

View source: R/otherMethods.R

Description

This function is nothing more than a wrapper to the standard linear models with inputs designed to look and feel similar to other functions in the snowload package.

Usage

1
2
lm_snow(formula = log(RESPONSE) ~ ELEVATION, locations, newdata,
  bound_elevation = FALSE, bound_output = FALSE)

Arguments

formula

A forumla object passed directly to the linear model.

locations

An object of class SpatialPointsDataFrame. Specifies the measurement locations.

newdata

A spatial data object. Specifies the prediction locations.

bound_elevation

If TRUE, the elevations of the newdata locations are restricted to the range of observed data in the locations object.

bound_ouput

If TRUE, the final ouputs are restricted to the observed outputs at the measurement locations.

Value

A numeric vector of predictions with length equal to the number of rows in newdata.


beanb2/snowload documentation built on Jan. 7, 2020, 9:48 p.m.