-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
export makePopulationArray, add population arg to .poststratify
- Loading branch information
Showing
5 changed files
with
62 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export(is.NWayData) | ||
export(makePopulationArray) | ||
export(mrp) | ||
export(mrp.theme) | ||
exportMethods(getData) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
\name{makePopulationArray} | ||
\alias{makePopulationArray} | ||
\title{Make an array suitable for poststratification} | ||
\usage{ | ||
makePopulationArray(population, pop.weights, | ||
population.varnames) | ||
} | ||
\arguments{ | ||
\item{population}{A \code{data.frame} containing | ||
population (e.g. census) containing numeric weight and | ||
some factor variables for cross-classification} | ||
|
||
\item{pop.weights}{character. The column of the | ||
\code{population} data that contains frequencies or | ||
proportions (of the entire population) for the cells | ||
defined by population.varnames} | ||
|
||
\item{population.varnames}{character vector of names of | ||
columns describing the cells wanted in the array} | ||
} | ||
\value{ | ||
NWayData (array with some extra stuff) | ||
} | ||
\description{ | ||
Make an array suitable for poststratification | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters