Skip to content

TomBearpark/useful

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

useful

This package is for helper functions I end up using all the time.

Its under heavy development at the moment - so probably best to chat to me if you want to use anything.

Things in this package are for:

  • Plotting temperature and precipitation response functions from fixest regression output

Installation

You can install the development version of useful from GitHub with:

# install.packages("devtools")
devtools::install_github("TomBearpark/useful")

Example

This is a basic example which shows you how to solve a common problem:

library(useful)
library(fixest)

df <- cars

df$dist1 <- df$dist
df$dist2 <- df$dist^2

m  <- fixest::feols(speed ~ dist1 + dist2, data = df)
rf <- useful::predict_poly(m, "dist", min = 2, max = 100, ref = 50, 
                           xvar_name = "dist")
useful::plot_rf_poly(rf, xvar = "dist")

About

Some functions I'm always using in empirical climate econometrics research

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

3 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages