Skip to content

paulgp/binscattr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

binscattr

  • Todo:

    1. Rotate positions around graph
    2. Move regressions inside discrete vs not, so it's not wastefully running regs
      • If the regression is discrete, we don't need to residualize for the controls, and x and y don't get replaced. Might not be a big deal
    3. Figure out why the text looks so crappy
    4. Connected line graphs
    5. label graphs
    6. Change input syntax using dplyr quoting conventions (http://dplyr.tidyverse.org/articles/programming.html)
    7. Allow for factored control variables
    8. Bin scatter by group
    9. Allow for splitting up binning/line fit at user-provided x-breaks (a la Michael Stepner's RD example)
    10. Make connectlines default to false when fitline is true and vice versa (unless both are specified by the user)
    11. Handle data with missing values(?)
  • Unit Test Todos

** Check inputs

1) do variable types line-up correctly?

** identify by groups

** construct regression formula

*** Test cases:

1) no controls
2) controls + no absorb
3) no contorls + absorb
4) controls + absorb
5) multiple absorbs
6) missing values
7) strings vs. numerics
8) factor variables

** residualize variables

*** Test cases:

1) want to test that mean(X_res) \approx 0, X_res, Y_res are uncorrelated with controls
2) Repeat test cases from regression formulaes
3) Compare regression coefficients from full multivariate regression to residual regression coefficients

** plotting scatter points

** plotting regression line

** connect dots

** write coefficient and standard error on graph

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages