GithubHelp home page GithubHelp logo

Splines and Functional Form about zepid HOT 2 CLOSED

pzivich avatar pzivich commented on June 16, 2024
Splines and Functional Form

from zepid.

Comments (2)

pzivich avatar pzivich commented on June 16, 2024

This is occurring since the plot functions uses var input but for truly continuous variables you have to do some sort of binning as the function currently works. Since the binning variable var is the categorical variable, it causes issues with the plots...

For a fix, I will need to

  1. Add option to automatically bin (write the code to do this and label everything as the median of that interval)
  2. Grab the bins (over distinct categories) and generate the C(...) estimate from statsmodels
  3. Fit the user specified model
  4. Generate plots so they are estimated and relevant to the VALUES and not the categories

from zepid.

pzivich avatar pzivich commented on June 16, 2024

Error was in functional form plot. Splines work properly. Have added an option to the functional form plotter to auto-categorize continuous variables for LOWESS generated line. Now the functional automatically generates this, unless the user specifies that the variable is discrete bin = False

from zepid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.