Giter Site home page Giter Site logo

bestfitm's Introduction

BestFitM

This package selects the best-fit model by comparing AIC and BIC. Currently, seven basic fitting models are supported. The seven basic models include one simple linear fitting model (line2P), one quadratic curve model (line3P), one logarithmic model (log2P), two exponential models (exp2P and exp3P), and two power-law models (power2P and power3P). The formulas of these seven basic fitting models are y = ax+b (line2P), y = ax^2+bx+c (line3P), y = aexp(bx)+ c (exp3P), y=aln(x)+b (log2P), y = aexp(bx) (exp2P), y = ax^b (power2P), y = a*x^b+ c (power3P), respectively.

Installation

##require "devtools"

devtools::install_github("fhruilin/BestFitM")

example

library(BestFitM)

data("mtcars")

bestFitM(data= mtcars, x= "mpg", y = "disp")

image

#Considering that not all data is applicable to the exp3P and power3P models, we give another function, BestFitM2, which contains only five basic fitting models.

example

bestFitM2(data= mtcars, x= "mpg", y = "disp")

image

#Once the best-fitting model has been selected, you can use the FitM function to look at the other parameters of the model.

example

FitM(data= mtcars, x= "mpg", y = "disp",model = "line2P")

image

bestfitm's People

Contributors

fhruilin avatar zhjpeng avatar

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.