Learn R Programming

⚠️There's a newer version (0.14.0) of this package.Take me there.

capm

capm is a package for R, a free software environment for statistical computing and graphics.

capm stands for Companion Animal Population Management and is an initiative to guide and automate quantitative analysis to support companion animal population management.

Current version offers functions that allow users to implement the following workflow:

  1. Selection of sampling units for simple and complex surveys (pilot/final).
  2. Mapping primary sampling units to be visited (complex surveys).
  3. Calculation of sample size and composition (complex designs).
  4. Repetition of steps 1 and 2, for the final survey, if the workflow begun with a pilot survey.
  5. Estimation of demographic characteristics (totals, proportions, means and ratios).
  6. Construction of population pyramids, conditioned on sex, age and another categorical variable such as reproductive status.
  7. Assessment of the effect produced by population management interventions, through mathematical modelling.
  8. Prioritization interventions according to the effect they produce, through sensitivity analysis.

The current workflow is mainly focused on dog populations but also applies to cat populations. Future versions probably will include functions to address particularities of cat populations.

To install the development version, run install_github('capm', 'oswaldosantos') in (ideally) RStudio. devtools package must be previously loaded.

To install the production version, run install.packages('capm') in (ideally) RStudio.

If you find any error or have suggestions to improve or include functionality to capm, I will glad to know it. Please get in touch so I can better understand your needs.

Copy Link

Version

Install

install.packages('capm')

Monthly Downloads

357

Version

0.9.1

License

GPL (>= 2)

Maintainer

Oswaldo Santos Baquero

Last Published

March 7th, 2016

Functions in capm (0.9.1)

CalculatePopChange

Population change.
PlotModels

Plot results of capm model functions
CalculateStratifiedSampleSize

Stratified random sample size
CalculateGlobalSens

Global sensitivity analysis
CalculateSimpleSampleSize

Simple random sample size
MapkmlPSU

Creates *.kml files of a subset of polygons from a polygon shapefile
PlotLocalSens

Plot results of CalculateLocalSens function
Calculate2StageSampleSize

Two-stage cluster sampling size and composition
SolveTC

Modelling of reversible contraception for companion animals
PlotGlobalSens

Plot results of GlobalSens function
SummarySurvey

Summary statistics for sample surveys
SampleSystematic

Simple and stratified systematic sampling
GraphicInterface

Graphic interface to use some capm functions
SetRanges

Parameter ranges for global sensitivity analysis
capm-package

The capm Package
pilot

Pilot study to calculate sample size and composition
psu.ssu

Primary and secondary sampling frames from Santos, Brazil.
PlotPopPyramid

Population PlotPopPyramid
DesignSurvey

Survey design
SolveSI

Modelling of sterilization and immigration of comapnion animals.
survey.data

Estimates of dog demographic variables
SolveIASA

Modelling of immigration, abandonment, sterilization and adoption of companion animals
SamplePPS

Probability proportional to size sampling with replacement
CalculateLocalSens

Local sensitivity analysis