Coder Social home page Coder Social logo

ale-yanez / influ Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trophia/influ

0.0 1.0 0.0 204 KB

A package for the R language which generates step plots, influence plots, coefficient-distribution-influence (CDI) plots, and influence metrics for linear models.

R 100.00%

influ's Introduction

influ

What is it?

A package for the R language which generates step plots, influence plots, coefficient-distribution-influence (CDI) plots, and influence metrics for linear models as described in the paper [Bentley, N., Kendrick, T. H., Starr, P. J., & Breen, P. A. (2011). Influence plots and metrics: tools for better understanding fisheries catch-per-unit-effort standardisations. ICES Journal of Marine Science, 69: 84-88. doi:10.1093/icesjms/fsr174](http://icesjms.oxfordjournals.org/cgi/reprint/fsr174? ijkey=zZGx3RoK1zkxhaL&keytype=ref) (There is a pre-print, pre-review version here but the above link is recommended as it gives full access to the final version)

How do I get it?

The package is still in development. A beta version is available under Releases. Eventually influ will be submitted to the Comprehensive R Archive Network for direct installation via the install.packages R function.

How do I use it?

We recommend looking at the influ vignette first. But if you don't have time for even that, here's an even quicker run down....

#Install the package after downloading it
install.packages("/path/to/influ_0.X.zip",repos=NULL) #Windows
install.packages("/path/to/influ_0.X.tar.gz",repos=NULL) #Linux

#Load the package
library(influ)

#Fit a glm model (the first term, in this case year, should be a factor!)
myModel = glm(log(catch)~year+effort+month+area+depth+method,data=myData)
 
##Create an influence object for that model
myInfl = Influence$new(myModel)
myInfl$calc()

##Look at the summary data.frame and execute the various methods
## to create plots
myInfl$summary
myInfl$stanPlot()
myInfl$stepPlot()
myInfl$influPlot()
myInfl$cdiPlot('month')
myInfl$cdiPlotAll()

There is also a reference manual and if that fails you could always try the source code!

Who has contributed to development?

The initial development of this software was done by Nokome Bentley, Trophia Ltd and funded by the New Zealand Seafood Industry Council Ltd.

influ's People

Contributors

nokome avatar

Watchers

 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.