View on GitHub


R package for Companion Animal Population Management

Download this project as a .zip file Download this project as a tar.gz file


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. Building 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. Prioritize 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.

Current development version: 0.5.0

Current production version: 0.5

Documentación en español
Documentação em português
English documentation


Copyright (C) 2014 Oswaldo Santos Baquero

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see