Professional Documents
Culture Documents
19.R Integration Package For IBM SPSS Statistics
19.R Integration Package For IBM SPSS Statistics
19.R Integration Package For IBM SPSS Statistics
Statistics
IBM
Result
• The R variable model contains the results of the generalized linear model analysis.
• The R summary function takes the results of the glm analysis and produces an R object with a number
of attributes that summarize the model. In particular, the coefficients attribute contains a table of the
model coefficients and associated statistics.
Note: You can obtain a list of the attributes available for an object using attributes(object).
• The spsspivottable.Display function creates the pivot table. The first and only required argument
is the data to be displayed as a pivot table. This can be a data frame, matrix, table, or any R object that
can be converted to a data frame. In the present example, the coefficients attribute of the summary
object is a matrix.
• The format argument specifies the format to be used for displaying numeric values, including cell
values, row labels, and column labels. The argument is of the form formatSpec.format, as in
formatSpec.GeneralStat. A list of available formats as well as a brief guide to choosing a format is
provided in the topic on the spsspivottable.Display function.
Optional arguments to the spsspivottable.Display function allow you to customize the pivot table.
By default, the name that appears in the outline pane of the Viewer associated with the pivot table is R.
You can customize the name and nest multiple pivot tables under a common heading by wrapping the
pivot table generation in a StartProcedure-EndProcedure block. See the topic
“spsspkg.StartProcedure Function ” on page 58 for more information.
The spsspivottable.Display is limited to pivot tables with one row dimension and one column
dimension. To create more complex pivot tables, use the BasePivotTable class.
Result