A Tool Set for Analyzing Political Behavior Data


[Up] [Top]

Documentation for package ‘SciencesPo’ version 1.3.5

Help Pages

A B C D E F G I J K L M N O P Q R S T U V W Z misc

SciencesPo-package A Tool Set For Analyzing Political Behavior Data

-- A --

add.ellipses Plots ellipses
adjResiduals Adjusted Residuals
as.data.frame.by Convert the results of by() to a data.frame.

-- B --

between Classify values into groups
bhodrick93 Bekaert's and Hodrick's (1993) Data
binomcdf Binomial cumulative distribution function
binompdf Binomial probability density function
bootstrap Method for Bootstrap
bootstrap.default Method for Bootstrap
bootstrap.model Method for Bootstrap

-- C --

categories Extraction of categorical values as a preprocessing step for making dummy variables
cgreene76 Christensen's and Greene's (1976) Data
ci Confidence Intervals
ci-method Confidence Intervals
commas2dots Replace commas by dots
compute Aggregate a numeric variable
crosstable Cross-tabulation
cv Pearson's Coefficient of Variation
cv-method Pearson's Coefficient of Variation

-- D --

ddirichlet Dirichlet distribution
destring Factors to numeric
detach.all Detach all data frame from the search path
detail Method to Produce Descriptive Statistics Summary
dHondt Method D'Hondt
draw.norm Shades Normal Distribuion
dummy Generate dummy variables

-- E --

error.bar Add Error Bars on the Graph

-- F --

factorize Conditionally convert vectors to factors
factorize.character Conditionally convert vectors to factors
factorize.data.frame Conditionally convert vectors to factors
factorize.default Conditionally convert vectors to factors
factorize.numeric Conditionally convert vectors to factors
fade Add transparency
fill.forward fill NA by previous cell value (fill forward)
fillin Filling in missing values 'fillin' replaces missing values with existing observations from other variable or data frame.
fillup Identify columns with at least one NA value and fill with the mean value
flag Flag duplicated observations
formatNumbers Format numeric digits
formatPercent Converts to percentiles
frac Fractional part of a numeric vector.
freq Frequency table

-- G --

galton Galton's Family Data on Human Stature.
geary.test Geary's test for normality
ggFootnote Add Footnote to a ggplot Object
ggMultiplot Multiple ggplot objects
gini.simpson Gini Simpson Index
griliches76 Griliches's (1976) Data

-- I --

invnormal Inverse Cumulative Standard Normal Distribution

-- J --

jackknife Resamples Data Using the Jackknife Method
jensen.shannon Jensen-Shannon Distance
johnson.neyman Johnson-Neyman Regression
joinLists Join a list of data frames

-- K --

kurtosis Compute the Kurtosis

-- L --

legendPlotMinimalist Add legends to a plot
lookup Lookup
ltaylor96 Lothian's and Taylor's (1996) Data Set

-- M --

matching Matching
mc Generate Markov Chains
mc.plot Plot Markov Chains
mishkin92 Mishkin's (1992) Data
mode Calculate the Mode
modify Modify data elements by their position

-- N --

name.slicer Splits name fields
nearest Find the Nearest Value
nearestPosition Find Location of the Nearest Value
nerlove63 Marc Nerlove's (1963) data
nobs Method for the number of observations
nobs-method Method for the number of observations
normalcdf Normal Cumulative Distribution
normalize Unity-based normalization
normalize.character Unity-based normalization
normalize.default Unity-based normalization
normalize.factor Unity-based normalization
normalize.numeric Unity-based normalization
normalpdf Normal probability density function
nPermutate Calculate number of permutations taking repeated elements into consideration

-- O --

outliers Detect Outliers

-- P --

paired Paired Data
pause Pause
peek Show Observations Randomly Drawn from the Data
permutate Create k random permutations of a vector
politicalDiversity Political Diversity Indices 'politicalDiversity' is used to analyze political diversity in a unity or across them. It provides methods to estimate the Effective Number of Parties as well as other diversity measures.
posixify Converts calendar date string to POSIX
psum Parallel sum

-- Q --

qm Quote strings
quotize Add quotation marks

-- R --

rand.block Create Block-randomized designs
rand.imput Random Imputation
rdirichlet Dirichlet distribution
read.zTree Reads zTree output files
rectangularize Make a data.frame Rectangular by fill in missing records
regionSignificance Computes the region significance
rename Rename a variable
rename.default Rename a variable
rename.pattern Rename a variable
rename.var Rename a variable
reverseLevels Reverse the levels of a factor.
rle2data.frame Converts rle object to data.frame
roman.numeral Converts integer into its Roman Numeral equivalent
rownames2col Rownames to column

-- S --

SciencesPo A Tool Set For Analyzing Political Behavior Data
se Calculates the Standard Error
se-method Calculates the Standard Error
sheston91 The Penn World Table
shift Shifts elements of a vector left or right by N positions (Lag or Lead).
shift.data.frame Shifts elements of a vector left or right by N positions (Lag or Lead).
shift.default Shifts elements of a vector left or right by N positions (Lag or Lead).
skewness Compute the Skewness
ssex Same Sex Marriage Public Opinion Data
stukel Stukel's test of the logistic link
svTransform Transform dependent variable
swatson93 Stock's and Watson's (1993) Data.

-- T --

tab Cross-tabulation
titanic Titanic
tobaccovote Tobacco Lobbying Data
trim Trim white spaces
true.median Calculates the true median
turnout Turnout Data

-- U --

unnest Unnest a Nested List
us2012 US Presidential Election Opinion Polls
use Attach exclusively various file formats

-- V --

varOrder Move variable order in a data.frame
view View random n elements of an object.
vif Variance Inflation Factor

-- W --

watch Watch For Changes in a Data Object
weather NY Weather 1995-2014
weighted.variance Weighted Variance
winsorize Winsorized Mean

-- Z --

zScores Compute z-scores

-- misc --

%>% Chain operator
%nin% Find Matching (or Non-Matching) Elements