as.htest | R Documentation |
Convert a cocor result object of class 'cocor.indep.groups', 'cocor.dep.groups.overlap', or 'cocor.dep.groups.nonoverlap' to a list of class 'htest'.
as.htest(result.object) ## S4 method for signature 'cocor' as.htest(result.object)
result.object |
A cocor result object of class 'cocor.indep.groups', 'cocor.dep.groups.overlap', or 'cocor.dep.groups.nonoverlap'. |
Returns a list containing a list of class 'htest' for the result of each test with the following elements:
data.name |
A character string giving the names of the data. |
estimate |
The two correlations that have been compared and the related correlations. |
method |
A character string indicating the performed test. |
null.value |
The specified hypothesized value of the difference between the two correlations. |
alternative |
A character string describing the alternative hypothesis. |
parameter |
The degrees of freedom of the distribution of the test statistic. |
statistic |
The value of the test statistic. |
p.value |
The p-value of the test. |
conf.int |
The confidence interval of the difference between the two correlations. |
cocor, cocor.indep.groups, cocor.dep.groups.overlap, cocor.dep.groups.nonoverlap
data("aptitude") cocor.result <- cocor(~knowledge + intelligence.a | logic + intelligence.a, aptitude$sample1) as.htest(cocor.result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.