print.q.cor: Print q.cor object

Description Usage Arguments Details Author(s) See Also Examples

Description

Prints the results of a q.cor object in a more interpretable fashion. Also includes a convenient export option.

Usage

1
2
3
## S3 method for class 'q.cor'
print(x, var.content = NULL, 
  initial = NULL, rnd = 2, EXPORT = FALSE, short = FALSE, ...)

Arguments

x

An object returned by the q.cor() function.

var.content

An optional vector containing the content of the items or variables used as the "set" in a q.cor analysis. If left NULL default content is created.

initial

An optional character element indicating the initial letters for the item codes or names in set. If left NULL "i" is used.

rnd

A numeric element specifying the number of places to round each correlation coefficient.

EXPORT

A file location to export the print results. If FALSE (default) no exportation is done.

short

A logical indicating whether long output (default) or short output is to be returned.

...

More arguments to pass to the print function.

Details

A print function for the q.cor function used to summarize the results of a q.cor object. This function easily adds the content of the items to the correlation table, sorts the correlation table, and allows the user to limit the table to only those items that are statistically significant at the p < .10 for the combined or .05 level for each gender by setting the short option = TRUE. In addition, the export option allows the user to output the results (either long or short) into a .csv file.

Author(s)

Ryne A. Sherman

See Also

q.cor

Examples

1
2
3
4
5
6
7
8
9
data(rbqv3.items)
data(RSPdata)
data(v2rbq)
names(v2rbq)
q.obj <- q.cor(RSPdata$sEXT, v2rbq, sex = RSPdata$ssex, fem = 1, male = 2, sims = 1000)
	#It might be necessary to adjust size of the width of your console to make this content fit.
print(q.obj) # Accepting only the default arguments
  # Taking advantage of the other arguments
print(q.obj, var.content = rbqv3.items, initial = "RBQ", short = TRUE, EXPORT = FALSE)

multicon documentation built on May 2, 2019, 3:18 a.m.