discard_unusable: Discard non-positive and/or non-finite observations in...

Description Usage Arguments Value See Also Examples

View source: R/discard_unusable.R

Description

discard_unusable drops observations that cannot be used with models that convert columns to log scale, and therefore requiere non-negative and finite observations.

Consider that some of the functions within this package will drop observations when required and it is not requiered to be run before fitting a model.

Usage

1

Arguments

data

(Type: data.frame) the dataset to be used.

columns

The columns to be cleaned (e.g. c("flow", "distw")) in the case of ddm when used with the example dataset gravity_zeros)

Value

The function returns the summary of the estimated gravity model as an lm-object.

See Also

lm, coeftest, vcovHC

Examples

1
2

gravity documentation built on July 27, 2020, 9:08 a.m.