Published online by Cambridge University Press: 09 December 2009
General routines such as “log”, “print” etc. are omitted. Arguments set at the default values are not displayed. For a complete description, see the language reference section in S-PLUS.
anova(Model) Compute an ANOVA table for Model
anova(Model1, Model2, test=“F”) Compare Model1 and Model2
aov(formula, data =) Fit an analysis of variance model using formula on data
as.numeric(x) returns a vector like x, but with storage mode “double,” if x is a simple object of mode “numeric.” Otherwise, as.numeric returns a numeric object of the same length as x and with data resulting from coercing the elements of x to mode “numeric.”
bootstrap(data = statistic, B = trace = F) Performs bootstrap for observations in data = using the statistic specified by statistic. The number of replicates is B and trace determines printing of replicate number during computation.
by(X, Indices, function) Split dataset X by Indices and apply function to each part.
c Concatenates objects into a vector or a list (e.g., c(0.5, 0.2)).
cbind() Returns a matrix that is pieced together, column-wise, from several vectors and/or matrices.
ceiling() Creates integers from floating point numbers by going to the next larger integer.
chisq.test(x, correct = F) Chi-square contingency test using x. Apply Yates correction if correct = T
choose(n, k) Is the binomial coefficients, n!/(k!(n−k)!)
contourplot(Z ∼ X*Y, data=, at=0, xlab=“X”, ylab=“Y”) Contour plot of Z on X, Y. In above example, a single contour line of zero (at=0) is drawn.
convert.col.type(target = X, column.spec =, column.type =) Converts column(s), column.spec, in a 1- or 2-dimensional dataset, X, to a particular data type, column.type.
cor(X, Y, na.method = “omit”) Returns the correlation of a vector or the correlation matrix of a data matrix. Missing values can be omitted or the calculation set to “fail.”
[…]
To save this book to your Kindle, first ensure no-reply@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.