Code Monkey home page Code Monkey logo

functional_response_modelling's Introduction

Introduction

This directory contains subdirectories for a project titled "Holling's disc equation outperforms quadratic and cubic linear models regardless of AIC cut-off threshold". Given discourse in academic literature, I use an example dataset to examine the boundaries of reliability of Akaike and Schwarz Information Criterion for model selection.

Repository Structure

In the Code subdirectory are all the R scripts that will output results to the Results and Data subdirectories. To run the project and generate the report enter the following command in a linux terminal from the Code directory:

bash compiler.sh

I specify what each file of the Code and Data subdirectories do and what their dependencies are.

Code Dependencies

  • CompileLatex.sh - shell script that compiles a references latex file
  • compiler.sh - shell script to compile this project. Runs the analysis R scripts and makes directories to house their output. Uses the texcount Perl script to count the words in the report and then compiles the report pdf to store it in the Code subdirectory
  • data_prep.R - Rscript to subset the data amd output subset .csv's to Data/data_subsets
  • model_fitting.R - Rscript that performs OLS and NLLS model fitting for each subset of data and uses estimated and sampled starting values from Results/sample_params. DEPENDENCIES: minpack.lm package
  • plotting.R - Rscript that performs model selection and plots the fits of each model to each subset to store these in Results/plots. Also outputs two .csv tables and a .pdf to be included in the report to Results/output_tables. DEPENDENCIES: ggplot2 package
  • report.bib - contains BibTeX of references used in the report
  • report.tex - Latex file in which i wrote the report. DEPENDENCIES: packes used are lineno, graphicx, setspace, amsmath, csvsimple, booktabs, tocbibind, caption
  • starting_values.R - Rscript that calculates parameter estimates and samples them. Outputs them per subset to Results/sample_params
  • texcount.pl - Perl script to count the words in a Latex file
  • wordcount.txt - the compile.sh script makes the output of texcount.pl feed into this .txt file

Data Dependencies

  • BiotraitsTemplateDescription.pdf - a description of all the metadata fields in the dataset used for the project
  • CRat.csv - the dataset used for the project

General

Languages and versions used:

R version 4.0.3
pdfTeX version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian)
 version v5.30.0
GNU bash version 5.0.17(1)

functional_response_modelling's People

Contributors

amishabhojwani 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.