powered by
log_distance creates a new dist_log column in log scale by taking the original distance column in the data
log_distance
dist_log
log_distance(data, distance)
The function returns the summary of the estimated gravity model as an lm-object.
lm
(Type: data.frame) the dataset to be used.
The distance column
lm, coeftest, vcovHC
coeftest
vcovHC
log_distance(gravity_zeros, "distw")
Run the code above in your browser using DataLab