knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

demspaces

Travis build status Codecov test coverage

demspaces contains helper functions for the Democratic Spaces Barometer project; see andybega/democratic-spaces.

(Note to self: the private dev repo is at andybega/closing-spaces)

Installation

Since this package is specific to the democratic spaces project, it will not end up on CRAN. Install from GitHub instead, with:

# install.packages("remotes")
remotes::install_github("andybega/demspaces")

Example

library("demspaces")

data("states")

mdl   <- ds_logistic_reg("v2x_veracc_osp", states)
preds <- predict(mdl, new_data = states)
head(preds)

Meta

There is a Makefile to help with stuff. E.g. to open that static docs:

make opendocs

To add new models, see the add_new_model.R script. It will use a template to setup the R and test files.



andybega/demspaces documentation built on April 18, 2021, 11:05 p.m.