Alexandre,
The output from corr.test is a list of matrices. To export one of those
matrices, simply specify which one you want:
Using the example from my previous note:
> library(psych)
> examp <- corr.test(sat.act)
> mat.c.p <- lower.tri(examp$r)*examp$r + t(lower.tri(examp$p)*examp$p)
> mat
Hi,
one solution is to use sink. Check ?sink to see explanation and following
example.
sink("sink-examp.txt")
i <- 1:10
outer(i, i, "*")
sink()
Andrija
On Tue, Nov 1, 2011 at 10:43 AM, AlexC wrote:
> Hello,
>
> Thank you for your replies. I cannot run the function rcor.test even when
> having
Hello,
Thank you for your replies. I cannot run the function rcor.test even when
having loaded package ltm. Perhaps it has to do with the fact that I am
using the latest version of R and this package wasn't created under that
version
The function corr.test in package psych works fine. Is ther
Hi,
rcor.test in library(ltm) will provide a correlation matrix with p-values on
the bottom-half of the matrix.
Mark
On 2011-10-26, at 7:03 AM, AlexC wrote:
> Thank you for your quick reply and helpful advice.
>
> Using this argument allows me to do what I needed to do
>
> Now the only othe
Alex,
corr.test in psych will give you a matrix of correlations, a matrix of sample
sizes, and a matrix of probabilities.
You can combine the correlations and the probabilities to form what you want:
try the following:
> library(psych)
> examp <- corr.test(sat.act)
> mat.c.p <- lower.tri(exa
Thank you for your quick reply and helpful advice.
Using this argument allows me to do what I needed to do
Now the only other thing I wanted to accomplish was to obtain the top half
of the matrix with p values
and the bottom half with the correlations, to observe the significant
correlations. I
I believe it has to do with the "complete.obs" choice and the presence
of NAs in your data. The differences should vanish with
"pairwise.complete.obs" but whether that's what you want is up to you.
Michael
On Tue, Oct 25, 2011 at 5:09 PM, AlexC wrote:
> Hi,
>
> I am currently working with a dat
Hi,
I am currently working with a data set which contains a list of julian dates
of phenological (flowering, leaf growth etc.)
I obtained a correlation matrix by simply using the cor function with the
dataset cor(dataset,use="complete.obs")
that gives me a correlation matrix but the correlatio
8 matches
Mail list logo