Displaying 5 results from an estimated 5 matches for "maxcor".
Did you mean:
maxcol
2010 Aug 07
1
[Q] a dummy variable used with sapply
Hello,
While learning how to manipulate data with R, I found one example that I could not understand.
In the following example, the function definition of "maxcor" has an argument named "i" and I don't understand why.
Could someone explain why the maxcor function definition needs to have this argument?
maxcor = function(i, n = 10, m = 5)
{
mat = matrix(rnorm(n*m),n,m)
corr = cor(mat)
diag(corr) = NA
max(corr,na.rm=TRU...
2011 Jan 27
1
Saving log file in R and display run time
...2. How do I display the execution time of one function like the one below:
CalculaCorrelacao <- function(construto, n) {
library(polycor)
for (i in 2:n){
for (j in i:n+1){
x1 <- construto[[i]]
x2 <- construto[[j]]
temp1 <- polychor(x1, x2, ML = FALSE,maxcor=.9999)
corr[i-1,j-1] <- temp1
corr[j-1,i-1] <- temp1
}
}
return(corr)
}
Best regards,
Raquel
--
Raquel Rangel de Meireles Guimar?es
Doutoranda em Demografia
raquel at cedeplar.ufmg.br
http://ufmg.academia.edu/RaquelGuimaraes
Cedeplar - Centro de Dese...
2010 Aug 27
3
[PATCH 0/2] [RFC] xl: add cpuid config file option
...xxxxxxxxxxxxxxx'',
> # ''4,0:eax=001111xxxxxxxxxxxxxxxxxxxxxxxxxx'']
> # - CPUID.1[EDX][HT] : Enable HT
> # - CPUID.1[EBX] : Number of vcpus * 2
> # - CPUID.4,0[EAX] : Number of vcpus * 2 - 1
> #vcpus=8
new version: cpuid = "host,htt=1,proccount=16,maxcores=15"
> # Example for amd, expose a 5-core processor :
> # cpuid = [''1:ebx=xxxxxxxx00001010xxxxxxxxxxxxxxxx,
> # edx=xxx1xxxxxxxxxxxxxxxxxxxxxxxxxxxx'',
> # ''0x80000001:ecx=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1x'',
> # ''0x80000008...
2012 Oct 02
0
Error messages when attempting to calculate polychoric correlation matrices using the psych package
...r.ca]
Sent: 01 October 2012 23:47
To: Kevin Cheung
Cc: r-help at r-project.org
Subject: RE: [R] Error messages when attempting to calculate polychoric correlation matrices
Dear Kevin,
>From ?polychor (in the polycor package):
"polychor(x, y, ML = FALSE, control = list(), std.err = FALSE, maxcor=.9999)
Arguments
x
a contingency table of counts or an ordered categorical variable; the latter can be numeric, logical, a factor, or an ordered factor, but if a factor, its levels should be in proper order.
y
if x is a variable, a second ordered categorical variable."
So polychor doesn...
2012 Oct 01
1
Error messages when attempting to calculate polychoric correlation matrices
Dear R users,
I am a psychology postgraduate student who is relatively new to using R. I am currently developing a psychometric scale and have run into a few problems when using R to calculate a polychoric correlation matrix for my dataset. I am trying to produce a polychoric correlation matrix for calculating ordinal reliability estimates (eg. Alpha, omega).The set consists of 439 observations