RDocumentation
Moon
Learn R
Search all packages and functions
⚠️
There's a newer version (1.4.1) of this package.
Take me there.
SciencesPo (version 1.3.5)
A Tool Set for Analyzing Political Behavior Data
Description
A data analysis tool for the political science crowd for ease analyzing random and nonrandom data.
Copy Link
Copy
Link to current version
Version
Version
1.4.1
1.4.0
1.3.9
1.3.8
1.3.7
1.3.6
1.3.5
1.02.12
0.11.21
0.05.21
0.03.21
0.3.8.27
Down Chevron
Install
install.packages('SciencesPo')
Monthly Downloads
127
Version
1.3.5
License
GPL (>= 2)
Maintainer
Daniel Marcelino
Last Published
July 15th, 2015
Functions in SciencesPo (1.3.5)
Search functions
outliers
Detect Outliers
%>%
Chain operator
ci
Confidence Intervals
galton
Galton's Family Data on Human Stature.
destring
Factors to numeric
SciencesPo
A Tool Set For Analyzing Political Behavior Data
dHondt
Method D'Hondt
lookup
Lookup
frac
Fractional part of a numeric vector.
normalpdf
Normal probability density function
formatPercent
Converts to percentiles
cgreene76
Christensen's and Greene's (1976) Data
turnout
Turnout Data
flag
Flag duplicated observations
shift
Shifts elements of a vector left or right by N positions (Lag or Lead).
binompdf
Binomial probability density function
between
Classify values into groups
matching
Matching
invnormal
Inverse Cumulative Standard Normal Distribution
legendPlotMinimalist
Add legends to a plot
geary.test
Geary's test for normality
%nin%
Find Matching (or Non-Matching) Elements
fillup
Identify columns with at least one NA value and fill with the mean value
binomcdf
Binomial cumulative distribution function
jackknife
Resamples Data Using the Jackknife Method
ggMultiplot
Multiple ggplot objects
ddirichlet
Dirichlet distribution
adjResiduals
Adjusted Residuals
gini.simpson
Gini Simpson Index
nobs
Method for the number of observations
fill.forward
fill NA by previous cell value (fill forward)
categories
Extraction of categorical values as a preprocessing step for making dummy variables
mishkin92
Mishkin's (1992) Data
psum
Parallel sum
normalize
Unity-based normalization
bootstrap
Method for Bootstrap
modify
Modify data elements by their position
stukel
Stukel's test of the logistic link
mode
Calculate the Mode
roman.numeral
Converts integer into its Roman Numeral equivalent
cv
Pearson's Coefficient of Variation
normalcdf
Normal Cumulative Distribution
kurtosis
Compute the Kurtosis
ssex
Same Sex Marriage Public Opinion Data
dummy
Generate dummy variables
qm
Quote strings
rename
Rename a variable
weighted.variance
Weighted Variance
nearestPosition
Find Location of the Nearest Value
winsorize
Winsorized Mean
jensen.shannon
Jensen-Shannon Distance
draw.norm
Shades Normal Distribuion
nPermutate
Calculate number of permutations taking repeated elements into consideration
paired
Paired Data
mc.plot
Plot Markov Chains
rand.block
Create Block-randomized designs
detach.all
Detach all data frame from the search path
peek
Show Observations Randomly Drawn from the Data
freq
Frequency table
varOrder
Move variable order in a data.frame
weather
NY Weather 1995-2014
add.ellipses
Plots ellipses
reverseLevels
Reverse the levels of a factor.
se
Calculates the Standard Error
error.bar
Add Error Bars on the Graph
fade
Add transparency
quotize
Add quotation marks
name.slicer
Splits name fields
johnson.neyman
Johnson-Neyman Regression
ltaylor96
Lothian's and Taylor's (1996) Data Set
tobaccovote
Tobacco Lobbying Data
crosstable
Cross-tabulation
joinLists
Join a list of data frames
view
View random n elements of an object.
vif
Variance Inflation Factor
us2012
US Presidential Election Opinion Polls
nearest
Find the Nearest Value
permutate
Create k random permutations of a vector
rdirichlet
Dirichlet distribution
trim
Trim white spaces
read.zTree
Reads zTree output files
swatson93
Stock's and Watson's (1993) Data.
rectangularize
Make a data.frame Rectangular by fill in missing records
use
Attach exclusively various file formats
titanic
Titanic
sheston91
The Penn World Table
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.
rand.imput
Random Imputation
watch
Watch For Changes in a Data Object
unnest
Unnest a Nested List
rownames2col
Rownames to column
rle2data.frame
Converts rle object to data.frame
svTransform
Transform dependent variable
as.data.frame.by
Convert the results of by() to a data.frame.
bhodrick93
Bekaert's and Hodrick's (1993) Data
detail
Method to Produce Descriptive Statistics Summary
compute
Aggregate a numeric variable
fillin
Filling in missing values
fillin
replaces missing values with existing observations from other variable or data frame.
formatNumbers
Format numeric digits
factorize
Conditionally convert vectors to factors
nerlove63
Marc Nerlove's (1963) data
pause
Pause
posixify
Converts calendar date string to POSIX
skewness
Compute the Skewness
zScores
Compute z-scores
commas2dots
Replace commas by dots
griliches76
Griliches's (1976) Data
ggFootnote
Add Footnote to a ggplot Object
true.median
Calculates the true median
mc
Generate Markov Chains
regionSignificance
Computes the region significance