Categories

Events

Top Coupons Codes Updated

Sale
OFF

Quick-R: Operators

Learn how to use arithmetic and logical operators in R. These binary operators work on vectors, matrices, and scalars.

https://www.statmethods.net/management/operators.html


Sale
OFF

Quick-R: Creating New Variables

Learn in R how about creating, recoding, and renaming variables programitically or interactively.

https://www.statmethods.net/management/variables.html


Sale
OFF

Quick-R: Subsetting Data

Subsetting Data . R has powerful indexing features for accessing object elements. These features can be used to select and exclude variables and observations.

https://www.statmethods.net/management/subset.html


Sale
OFF

Quick-R: Scatterplots

Learn how to create a scatterplot in R. The basic function is plot(x, y), where x and y are numeric vectors denoting the (x,y) points to plot.

https://www.statmethods.net/graphs/scatterplot.html


Sale
OFF

Quick-R: Correlations

Learn how to use the cor() function in R and learn how to measure Pearson, Spearman, Kendall, Polyserial, Polychoric correlations.

https://www.statmethods.net/stats/correlations.html


Sale
OFF

Quick-R: Date Values

Learn how to work with dates in R. Dates are represented as the number of days since 1970-01-01, with negative values for earlier dates.

https://www.statmethods.net/input/dates.html


Sale
OFF

Quick-R: Home Page

About Quick-R. R is an elegant and comprehensive statistical and graphical programming language. Unfortunately, it can also have a steep learning curve.I created this website for both current R users, and experienced users of other statistical packages (e.g., SAS, SPSS, Stata) who would like to transition to R.

https://www.statmethods.net/


Sale
OFF

Quick-R: Graphic User Interfaces

Graphic User Interfaces . R is a command line driven program. The user enters commands at the prompt ( > by default ) and each command is executed one at a time. There have been a number of attempts to create a more graphical interface, ranging from code editors that interact with R, to full-blown GUIs that present the user with menus and dialog boxes.

https://www.statmethods.net/interface/guis.html


Sale
OFF

Quick-R: Power Analysis

Learn how to do power analysis in R, which allows us to determine the sample size required to detect an effect of a given size with a given degree of confidence.

https://www.statmethods.net/stats/power.html


Sale
OFF

Quick-R: t-tests

t-tests. The t.test( ) function produces a variety of t-tests. Unlike most statistical packages, the default assumes unequal variance and applies the Welsh df modification.# independent 2-group t-test t.test(y~x) # where y is numeric and x is a binary factor

https://www.statmethods.net/stats/ttest.html


Sale
OFF

Quick-R: Multiple Regression

Learn how R provides comprehensive support for multiple linear regression. The topics below are provided in order of increasing complexity.

https://www.statmethods.net/stats/regression.html


Sale
OFF

Quick-R: Combining Plots

Combining Plots . R makes it easy to combine multiple plots into one overall graph, using either the par( ) or layout( ) function. With the par( ) function, you can include the option mfrow=c(nrows, ncols) to create a matrix of nrows x ncols plots that are filled in by row.mfcol=c(nrows, ncols) fills in the matrix by columns.# 4 figures arranged in 2 rows and 2 columns

https://www.statmethods.net/advgraphs/layout.html


Sale
OFF

Quick-R: Cluster Analysis

Cluster Analysis . R has an amazing variety of functions for cluster analysis.In this section, I will describe three of the many approaches: hierarchical agglomerative, partitioning, and model based.

https://www.statmethods.net/advstats/cluster.html


Sale
OFF

Quick-R: Viewing Data

Getting Information on a Dataset. There are a number of functions for listing the contents of an object or dataset. # list objects in the working environment

https://www.statmethods.net/input/contents.html


Sale
OFF

Quick-R: Boxplots

Boxplots . Boxplots can be created for individual variables or for variables by group. The format is boxplot(x, data=), where x is a formula and data= denotes the data frame providing the data. An example of a formula is y~group where a separate boxplot for numeric variable y is generated for each value of group.Add varwidth=TRUE to make boxplot widths proportional to the square root of the ...

https://www.statmethods.net/graphs/boxplot.html


Sale
OFF

Quick-R: Graphical Parameters

Graphical Parameters. You can customize many features of your graphs (fonts, colors, axes, titles) through graphic options. One way is to specify these options in through the par( ) function.If you set parameter values here, the changes will be in effect for the rest of the session or until you change them again.

https://www.statmethods.net/advgraphs/parameters.html


Sale
OFF

Quick-R: Descriptives

Descriptive Statistics . R provides a wide range of functions for obtaining summary statistics. One method of obtaining descriptive statistics is to use the sapply( ) function with a specified summary statistic. # get means for variables in data frame mydata

https://www.statmethods.net/stats/descriptives.html


Sale
OFF

Quick-R: ggplot2 Graphs

Graphics with ggplot2. The ggplot2 package, created by Hadley Wickham, offers a powerful graphics language for creating elegant and complex plots. Its popularity in the R community has exploded in recent years. Origianlly based on Leland Wilkinson's The Grammar of Graphics, ggplot2 allows you to create graphs that represent both univariate and multivariate numerical and categorical data in a ...

https://www.statmethods.net/advgraphs/ggplot2.html


Sale
OFF

Quick-R: Axes and Text

If you are going to create a custom axis, you should suppress the axis automatically generated by your high level plotting function. The option axes=FALSE suppresses both x and y axes.xaxt="n" and yaxt="n" suppress the x and y axis respectively. Here is a (somewhat overblown) example.

https://www.statmethods.net/advgraphs/axes.html


Sale
OFF

Quick-R: Bootstrapping

Bootstrapping Nonparametric Bootstrapping . The boot package provides extensive facilities for bootstrapping and related resampling methods. You can bootstrap a single statistic (e.g. a median), or a vector (e.g., regression weights). This section will get you started with basic nonparametric bootstrapping.

https://www.statmethods.net/advstats/bootstrapping.html


Sale
OFF

Quick-R: Factor Analysis

Learn principal components and factor analysis in R. Factor analysis includes both exploratory and confirmatory methods.

https://www.statmethods.net/advstats/factor.html


Sale
OFF

Quick-R: Basic Statistics

This section describes basic (and not so basic) statistics. It includes code for obtaining descriptive statistics, frequency count, crosstabulations, and correlations.

https://www.statmethods.net/stats/index.html


Sale
OFF

Quick-R: Exporting Data

Exporting Data . There are numerous methods for exporting R objects into other formats . For SPSS, SAS and Stata, you will need to load the foreign packages. For Excel, you will need the xlsReadWrite package.. To A Tab Delimited Text File

https://www.statmethods.net/input/exportingdata.html


Sale
OFF

Quick-R: Aggregate

Aggregating Data . It is relatively easy to collapse data in R using one or more BY variables and a defined function. # aggregate data frame mtcars by cyl and vs, returning means

https://www.statmethods.net/management/aggregate.html


Sale
OFF

Quick-R: Importing Data

Importing Data . Importing data into R is fairly simple. For Stata and Systat, use the foreign package. For SPSS and SAS I would recommend the Hmisc package for ease and functionality. See the Quick-R section on packages, for information on obtaining and installing the these packages.Example of importing data are provided below.

https://www.statmethods.net/input/importingdata.html


38%
OFF

Quick-R: Bar Plots

R in Action (2nd ed) significantly expands upon this material. Use promo code ria38 for a 38% discount.

https://www.statmethods.net/graphs/bar.html


Sale
OFF

Quick-R: Discriminant Function Analysis

Discriminant Function Analysis . The MASS package contains functions for performing linear and quadratic discriminant function analysis. Unless prior probabilities are specified, each assumes proportional prior probabilities (i.e., prior probabilities are based on sample sizes).

https://www.statmethods.net/advstats/discriminant.html


Sale
OFF

Quick-R: Creating a Graph

Learn how to create, save, and view graphs in R. You can have multiple graph windows open at one time. See help(dev.cur) for more details.. Alternatively, after opening the first graph window, choose History -> Recording from the graph window menu.Then you can use Previous and Next to step through the graphs you have created.. Graphical Parameters

https://www.statmethods.net/graphs/creating.html


Sale
OFF

Quick-R: The Workspace

The Workspace . The workspace is your current R working environment and includes any user-defined objects (vectors, matrices, data frames, lists, functions).

https://www.statmethods.net/interface/workspace.html


Sale
OFF

R Tutorial For Beginners - Quick-R: Home Page

R Tutorial Obtaining R. R is available for Linux, MacOS, and Windows. Software can be downloaded from The Comprehensive R Archive Network (CRAN).. Startup. After R is downloaded and installed, simply find and launch R from your Applications folder.

https://www.statmethods.net/r-tutorial/index.html


Sale
OFF

Quick-R: Nonparametric Statistics

Nonparametric Tests of Group Differences . R provides functions for carrying out Mann-Whitney U, Wilcoxon Signed Rank, Kruskal Wallis, and Friedman tests.

https://www.statmethods.net/stats/nonparametric.html


Sale
OFF

Quick-R: Value Labels

Value Labels . To understand value labels in R, you need to understand the data structure factor.. You can use the factor function to create your own value labels.

https://www.statmethods.net/input/valuelabels.html


Sale
OFF

Quick-R: Probability Plots

For example, pnorm(0) =0.5 (the area under the standard normal curve to the left of zero).qnorm(0.9) = 1.28 (1.28 is the 90th percentile of the standard normal distribution).rnorm(100) generates 100 random deviates from a standard normal distribution. Each function has parameters specific to that distribution. For example, rnorm(100, m=50, sd=10) generates 100 random deviates from a normal ...

https://www.statmethods.net/advgraphs/probability.html


Sale
OFF

Quick-R: Using With and By

Learn how to use with() and by() in R. Two functions that can help write simpler and more efficient code.

https://www.statmethods.net/stats/withby.html


Sale
OFF

Quick-R: Time Series

Time Series and Forecasting. R has extensive facilities for analyzing time series data. This section describes the creation of a time series, seasonal decomposition, modeling with exponential and ARIMA models, and forecasting with the forecast package.. Creating a time series

https://www.statmethods.net/advstats/timeseries.html


Sale
OFF

Quick-R: ANOVA/MANOVA

ANOVA. If you have been analyzing ANOVA designs in traditional statistical packages, you are likely to find R's approach less coherent and user-friendly.

https://www.statmethods.net/stats/anova.html


Sale
OFF

Quick-R: Multidimensional Scaling

Multidimensional Scaling . R provides functions for both classical and nonmetric multidimensional scaling. Assume that we have N objects measured on p numeric variables.

https://www.statmethods.net/advstats/mds.html


Sale
OFF

Quick-R: Batch Processing

Learn batch processing in R. In particular, you can run R non-interactively with input from infile and send output (stdout/stderr) to another file.

https://www.statmethods.net/interface/batch.html


Sale
OFF

Quick-R: Sorting

Sorting Data . To sort a data frame in R, use the order( ) function.By default, sorting is ASCENDING. Prepend the sorting variable by a minus sign to indicate DESCENDING order.

https://www.statmethods.net/management/sorting.html


Sale
OFF

Quick-R: Pie Charts

Pie Charts . Pie charts are not recommended in the R documentation, and their features are somewhat limited. The authors recommend bar or dot plots over pie charts because people are able to judge length more accurately than volume. Pie charts are created with the function pie(x, labels=) where x is a non-negative numeric vector indicating the area of each slice and labels= notes a character ...

https://www.statmethods.net/graphs/pie.html