Learn R Programming

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. Sample size calculation.
  2. Selection of sampling units for simple and complex surveys.
  3. Mapping sampled primary sampling units (complex surveys).
  4. Estimation of population parameters.
  5. Visualization of population pyramids and immigration flows.
  6. Mathematical modelling of population management interventions.
  7. Prioritization of the most effective interventions through sensitivity analysis.

To install the development version, run install_github("oswaldosantos/capm") 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

312

Version

0.14.0

License

GPL (>= 2)

Last Published

October 24th, 2019

Functions in capm (0.14.0)

CalculateLocalSens

Local sensitivity analysis
Calculate2StageSampleSize

Two-stage cluster sampling size and composition (Deprecated)
CalculateGlobalSens

Global sensitivity analysis
MapkmlPSU

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

Stratified random sample size
FreqTab

Frequency table of categorical variables
GetDataIASA

Get initial values and paramters for IASA model from survey data
DesignSurvey

Survey design
CalculateSimpleSampleSize

Simple random sample size
CalculatePopChange

Population change.
SetRanges

Parameter ranges for global sensitivity analysis
PlotLocalSens

Plot results of CalculateLocalSens function
cluster_sample

Household data from a two-stage cluster sample
PlotImmigrationFlow

Plot immigration flows
cats

Cat's sample data from Pinhais, Brazil, 2017
SolveIASA

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

Summary statistics for sample surveys
capm-package

The capm Package
SampleSystematic

Simple and stratified systematic sampling
SamplePPS

Sampling with probability proportional to size and with replacement
SolveSI

Modelling of sterilization and immigration of comapnion animals.
SolveTC

Modelling of reversible contraception for companion animals
PlotPopPyramid

Population PlotPopPyramid
PlotModels

Plot results of capm model functions
PlotGlobalSens

Plot results of GlobalSens function
dogs

Dog's sample data from Pinhais, Brazil, 2017
PlotHHxSpecies

Distribution of households according to the number of inhabitants one or more species
psu_ssu

Census tracts of Pinhais, Brazil.