search for: maxcors

Displaying 5 results from an estimated 5 matches for "maxcors".

Did you mean: maxcor
2010 Aug 07
1
[Q] a dummy variable used with sapply
...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=TRUE) } > maxcors = sapply(1:1000, maxcor, n = 100) Thanks in advance. Young-Jin Lee
2011 Jan 27
1
Saving log file in R and display run time
Hi all, I have two basic questions, hope you should help me: 1. How do I save a log file in R with the results? For example, in Stata it can be done by using "log using c:\...\test.txt" 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
2010 Aug 27
3
[PATCH 0/2] [RFC] xl: add cpuid config file option
Hi, xl is currently ignoring the cpuid= variable in the config file. As I don''t like the current interface xm exposes (basically because it is complicated, unintuitive and very error prone), I implemented a new scheme for specifying CPUID flags policy, combining QEMU''s and Xen''s approach: cpuid = "<base>,<feature_name>=[01xks]*,... The patch includes a
2012 Oct 02
0
Error messages when attempting to calculate polychoric correlation matrices using the psych package
Dear Professor Fox, Apologies for my oversight relating to the polychor command and thank you for your advice. I turned to the polychor command when trying to find an equivalent for the polychoric command found in the psych package (I am following a procedure outlined in Gadermann, Guhn & Zumbo, 2012 that uses this command rather than the polycor package) . The polychoric command is returning
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