deprecated.functions {RCPA3} | R Documentation |
Deprecated functions (and how to still use them)
Description
A number of functions we used in our R Companion to Political Analysis, 2nd Edition are not used in R Companion to Political Analysis, 3rd Edition. These deprecated functions have been superseded by new and improved functions in the 3rd Edition. This page lists the deprecated functions and provides reference information for anyone used to using these functions.
-
AdjR2 calculated adjusted R-Squared statistic. This function was called after estimating a (weighted) model that did not report adjusted R-Squared statistic. Adjusted R-Square is now calculated automatically by the
regC
andlogregC
functions.
-
CI95 calculated the 95 percent confidence interval of a sample statistic (returning the upper and lower boundaries). The
CIprop
andCImean
functions generate confidence intervals for sample proportions and sample means (default confidence level=95). To find confidence interval of difference of sample proportions, usetestpropsC
. To find confidence interval of difference of sample means, usetestmeansC
.
-
CI99 calculated the 99 percent confidence interval of a sample statistic (returning the upper and lower boundaries). The
CIprop
andCImean
functions generate confidence intervals for sample proportions and sample means (use argument level=99). To find confidence interval of difference of sample proportions, usetestpropsC
with argument ci.level=99. To find confidence interval of difference of sample means, usetestmeansC
with argument ci.level=99.
-
colPercents calculated column percentages tables for multi-dimensional controlled cross-tabulations, based on function by John Fox. Was used by the xtabC function. Column percentages are calculated automatically by the
crosstabC
function.
-
compADPQ calculated a statistic for measure of association in cross-tabulation. This function was called by tablesomersDC function (also deprecated). The Somers' d measure of association is calculated by
crosstabC
function with somers=T argument.
-
compmeans was used for mean comparison analysis. The compmeans function was imported from descr package, See
compmeans
documentation for details. For mean comparison analysis, we now featurecompmeansC
which extends the functionality of compmeans to controlled comparisons, graphings, and analysis of variance.
-
crosstab function was imported from the descr package. See
crosstab
documentation for details.
-
csv.get was used to import files in comma separated value (csv) format. This function was imported from the Hmisc package. See
csv.get
documentation for details.
-
cut2 was used to recode numeric variables into ordered factors. This function was imported from the Hmisc package. See
cut2
documentation for details.
-
describe was used to generate descriptive statistics. This function is imported from the Hmisc package. See
describe
documentation for details.
-
ddply was used to generate summary statistics prior to graphing. The function was imported from the plyr package. See plyr package's ddply function documentation for details.
-
freq was used for frequency distribution analysis. This function is imported from the descr package. See
freq
documentation for details.
-
imeansC produced a controlled mean comparison table. Rows defined by values of independent variable and columns defines by values of the control variable.
-
iplotC generated an interaction plot used brkdn.plot function from plotrix package and svyby function from survey package. Warnings suppressed so the function creates plot without generating intermediate results used to create plot.
-
plotmeans was used to plot mean values to visualize mean comparisons. This function was imported from the gplots package. See gplots package's plotmeans function documentation for details.
-
plotmeansC plotted the mean values of a dependent variable at different values of nominal or ordinal independent variable. Made use of survey package and gplot package's plotmeans function.
-
prop.testC was used to test differences of proportions. Deprecated function to test difference of proportions.
-
SetTextContrastColor determined whether black or white better contrasted with a given color. Used by the
Colors
function.
-
somersD calculated the Somers' D measure of association statistic. This function made use of the svytable function from the survey package.
-
spss.get was used to import datasets in SPSS format. The spss.get function is imported from the Hmisc package. See
spss.get
documentation for details.
-
stata.get was used to import Stata-format datasets. The stata.get function is imported from the Hmisc package. See
stata.get
documentation for details.
-
svyboxplot was used to make a box plot with option for weighted observations. The svyboxplot function is imported from the survey package. See
svyhist
documentation for details.
-
svychisq conducted a Chi-Square test with weighted observations. This function reports chi-squared test statistic based on weighted dataset
-
svychisq was used to implement a Chi-Square test with weighted observations. The svychisq function is imported from the survey package. See
svychisq
documentation for details.
-
svyglm was used to estimate logistic regression model with weighted observations. The svyglm function is imported from the survey package. See
svyglm
documentation for details.
-
svymean was used to calculate sample mean for weighted observations. The svymean function is imported from the survey package. See
surveysummary
documentation for details.
-
svytable was used to generate cross-tabulations with weighted observations. The svytable function is imported from the survey package. See survey package documentation for details.
-
wtd.boxplot generated a box plot with option for weighted observations. Deprecated function to generate box plot
-
wtd.chi.sq was used for a Chi-Square test with weighted observations. The wtd.chi.sq function is imported from the weights package. See
wtd.chi.sq
documentation for details.
-
wtd.t.test was used to conduct t-tests on sample means with weighted observations. This function is imported from the weights package. See
wtd.t.test
documentation for details.
-
wtd.ttestC was used to test difference of means using t-test. Deprecated function to test difference of means.
-
xtabC did controlled cross tabulation analysis with optional weights.
-
xtp generated cross-tabulation of two categorical variables and produced a mosaic plot. Made use of the crosstab function in the descr package.
-
xtp.chi2 did cross tabulation analysis with Chi-Square test. This function made use of the crosstab function from the descr package
Usage
AdjR2()
CI95()
CI99()
colPercents()
compADPQ()
compmeans()
crosstab()
csv.get()
cut2()
describe()
ddply()
freq()
imeansC()
iplotC()
plotmeans()
plotmeansC()
prop.testC()
SetTextContrastColor()
somersD()
spss.get()
stata.get()
svyboxplot()
svychisqC()
svychisq()
svyglm()
svymean()
svytable()
wtd.boxplot()
wtd.chi.sq()
wtd.t.test()
wtd.ttestC()
xtabC()
xtp()
xtp.chi2()
Value
Returned a list of statistics