log_distance: Apply logarithm to distance column

View source: R/log_distance.R

log_distanceR Documentation

Apply logarithm to distance column

Description

log_distance creates a new dist_log column in log scale by taking the original distance column in the data

Usage

log_distance(data, distance)

Arguments

data

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

distance

The distance column

Value

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

See Also

lm, coeftest, vcovHC

Examples

log_distance(gravity_zeros, "distw")

gravity documentation built on May 2, 2023, 9:13 a.m.