Code Monkey home page Code Monkey logo

openpopscr's Introduction

openpopscr

Fits open population spatial capture-recapture with activity centre movement by maximum likelihood.

Install

In R, the latest release can be install using the devtools package with the command:

devtools::install_github("r-glennie/openpopscr", build = TRUE, build_opts = c("--no-resave-data", "--no-manual"), build_vignettes = TRUE)

The package requires you have a C compiler installed on your system. Windows users may need to install R-tools for this reason. It is assumed Linux and Mac users have a compiler installed.

Use

The package consists of different classes. Each class describes a particular kind of object. Objects have properties and functions that you can use. In this package, there are two main types of classes: models and data. The ScrData class is used to create data objects; other classes such as ScrModel, CjsModel, ScrTransientModel, are used to create model objects that you can fit to your data and obtain inference from.

There is a vignette for each class. To see a list of all vignettes, use the command:

browseVignettes("openpopscr")

To learn how to use the package, I recommend reading the ScrData and ScrModel vignettes first. The rest are very similar to these vignettes, making it easier to use other classes once the basics are familiar.

Also, the folder inst/examples/ in the repository contains code showing how to fit each type of model to simulated data.

Issues

This package is under development. I'd be grateful for anyone who has issues with the package to open an issue or contact me.

openpopscr's People

Contributors

r-glennie avatar iandurbach avatar

Stargazers

Olivier Gimenez avatar Olexandr Konovalov avatar Gaurav Walia avatar Neal Fultz avatar Daniel Linden avatar

Watchers

 avatar Olivier Gimenez avatar

openpopscr's Issues

Installing on Macs

Iโ€™m about to try out your R package, but ran into some pretty big issues installing the package from GitHub on a Mac. Turns out its from the new Mac software update, found the solutions here:

RcppCore/Rcpp#922

stray line in Js_Model.R

This line seems to be unused, and probably wrong
varlog <- 1 + log(private$var_$Dkvar / Dk^2)

Maybe
varlog <- log(private$var_$Dkvar / Dk^2 + 1)
?

missing line in an example file

/inst/examples/scr_densitysurface_example.R needs this line inserted:

library(openCR)

else function openCR.fit can't be found

Fonts

The plot_mesh function uses ggplot2 which requires Arial font by default. On some machines this needs to be installed using "extrafont" package and command "extrafont::font_import()".

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.