Displaying 20 results from an estimated 29 matches for "corpcor".
2006 Dec 29
1
Failure loading library into second R 2.3.1 session on Windows XP
...ckage in my second session, so I went
out to the CRAN mirror and tried to install the package, and got the
following message:
*********************************************************************
>utils:::menuInstallPkgs()
trying URL
'http://cran.ssds.ucdavis.edu/bin/windows/contrib/2.3/corpcor_1.4.4.zip'
Content type 'application/zip' length 133068 bytes
opened URL
downloaded 129Kb
package 'corpcor' successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package 'corpcor'
The downloaded packages are in
C:\Documents and...
2010 Nov 15
1
Non-positive definite cross-covariance matrices
I am creating covariance matrices from sets of points, and I am having
frequent problems where I create matrices that are non-positive
definite. I've started using the corpcor package, which was
specifically designed to address these types of problems. It has
solved many of my problems, but I still have one left.
One of the matrices I need to calculate is a cross-covariance matrix.
In other words, I need to calculate cov(A, B), where A and B are each
a matrix defining...
2009 Nov 06
1
error in 2.10: "R include directory is empty" prevents package installation
...64
os linux-gnu
system x86_64, linux-gnu
status
major 2
minor 10.0
year 2009
month 10
day 26
svn rev 50208
language R
version.string R version 2.10.0 (2009-10-26)
sample error message
* installing *source* package ?corpcor? ...
** libs
Warning: R include directory is empty -- perhaps need to install
R-devel.rpm or similar
gcc -m64 -std=gnu99 -I/usr/include/R -I/usr/local/include -fpic
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c
lambda....
2010 Dec 02
2
Hmisc label function applied to data frame
Hello,
I'm attempting to create a data frame with correlations between every pair
of variables in a data frame, so that I can then sort by the value of the
correlation coefficient and see which pairs of variables are most strongly
correlated.
The sm2vec function in the corpcor library works very nicely as shown here:
library(Hmisc)
library(corpcor)
# Create example data
x1 = runif(50)
x2 = runif(50)
x3 = runif(50)
d = data.frame(x1=x1,x2=x2,x3=x3)
label(d$x1) = "Variable x1"
label(d$x2) = "Variable x2"
label(d$x3) = "Variable x3"
# Get co...
2010 Oct 21
4
how do I make a correlation matrix positive definite?
Hi,
If a matrix is not positive definite, make.positive.definite() function in corpcor library finds the nearest positive definite matrix by the method proposed by Higham (1988).
However, when I deal with correlation matrices whose diagonals have to be 1 by definition, how do I do it? The above-mentioned function seem to mess up the diagonal entries. [I haven't seen this complic...
2005 Dec 07
1
KMO sampling adequacy and SPSS -- partial solution
...tats classes a lot. It did in mine, and a glance through
the R-help archives suggests I'm not alone.
I finally found a reference describing the calculation, and wrote the
following R function to perform it. Note that the function depends on
a partial correlation function found in library(corpcor).
kmo.test <- function(df){
###
## Calculate the Kaiser-Meyer-Olkin Measure of Sampling Adequacy.
## Input should be a data frame or matrix, output is the KMO statistic.
## Formula derived from Hutcheson et al, 1999,
## "The multivariate social scientist," page 224, ISBN 0761952012
#...
2017 Aug 06
3
SPSS R Factor v2.4.2
...alled R Factor v2.4.2
This package requires 'polycor' library
Unfortunately, 'polycor' does not exist in R3.20
DATASET ACTIVATE DataSet1.
*M?rio Basto, Jos? Manuel Pereira, IPCA
*Required: SPSS 21 and R Integration Plugin
*R Packages required: psych, polycor, GPArotation, nFactors, corpcor, ICS, R.utils.
set printback off.
Error in library(polycor) : there is no package called 'polycor'
This means the very good utility does not run in the way I have installed both R and SPSS
Does anyone know what I've done wrong and how to overcome this?
Prof. Gavin T L Brown, PhD
Direc...
2012 Mar 26
2
SPSS R-Menu for Ordinal Factor Analysis
...XXXXXXXXXXXXX.
DATASET NAME DatenSet1 WINDOW=FRONT.
DATASET ACTIVATE DatenSet1.
SAVE OUTFILE='C:\XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
/COMPRESSED.
*M?rio Basto, Jos? Manuel Pereira, IPCA
*Required: SPSS 19 and R Integration Plugin
*R Packages required: psych, polycor, GPArotation, nFactors, corpcor, ICS.
set printback off.
--
Till Below (PhD Student)
Humboldt-Universit?t zu Berlin
2011 Nov 16
2
Conversion of symmetry matrix into a vector
Dear R users,
I am not good in R-language programming. So, i need your help.
I want to convert my lower-triangle value of symmetry matrix into a vector with their row and column name.
I found a function called "sm2vec" in "corpcor" package but it give only a vector of values but not row and column names. But i also want ROW and COLUMN name together with their corresponding values.
To make more clear,
For example: Suppose i have a symmetric matrix with lower-triangle value with 5 variables (eg. a - e). But in real, i h...
2007 Nov 20
0
significance levels for partial correlations?
I've seen that this question has been asked before, in the archives,
but I haven't been able to find a workable answer. This may be a
failure to understand the statistics!
The problem is that, while I can easily get partial correlation
values out of corpcor, how do I get significance values? Surely the
significance of a partial correlation between two variables isn't the
same as the simple bivariate correlation significance (cor.test)? As
I said, I may be misunderstanding the stats.
And just to round out the scenario, I should mention that...
2008 Nov 18
1
Statistical querry on Partial correlation test
Hi R users,
I want to calculate the partial correlation (first or second order) and their corresponding significance test (p-value).
I used
> library(corpcor)
and "cor2pcor" function to calculate partial correlation but could not calculate "p-value".
If some one knows the R package or function to calculate corresponding "p-value", It will be great help.
Thanks
Sincerely,
Ram Kumar Basnet
Graduate Student
Wageningen Unive...
2011 May 29
1
reshape with function(x,y)?
Hi,
I'm not sure if this is impossible or if I just don't know the syntax.
example:
library(reshape);
library(corpcor);
data<-data.frame(ids=c("A","A","A","B","B","B"),rate=c(12,14,17,10,8,5),sample=c(100,80,60,50,40,45));
data_melted<-melt.data.frame(data,id.vars=c("ids"),measure.vars=c("rate","sample"));
#the line b...
2017 Aug 06
0
SPSS R Factor v2.4.2
...e version of R. See:
ftp://cran.r-project.org/pub/R/src/contrib/Archive/polycor/
Good luck;
David.
>
> DATASET ACTIVATE DataSet1.
> *M?rio Basto, Jos? Manuel Pereira, IPCA
> *Required: SPSS 21 and R Integration Plugin
> *R Packages required: psych, polycor, GPArotation, nFactors, corpcor, ICS, R.utils.
> set printback off.
> Error in library(polycor) : there is no package called 'polycor'
>
> This means the very good utility does not run in the way I have installed both R and SPSS
> Does anyone know what I've done wrong and how to overcome this?
>
&g...
2013 Jan 17
2
error installing KEGGSOAP
...ima', 'ape', 'aplpack', 'arules', 'bitops', 'boot', 'Cairo', 'car', 'caTools', 'cba',
'chron', 'class', 'clue', 'cluster', 'coda', 'colorspace', 'CompQuadForm', 'corpcor', 'DAAG', 'date',
'deldir', 'descr', 'deSolve', 'devtools', 'digest', 'diptest', 'doBy', 'DoE.wrapper', 'e1071', 'effects',
'ENmisc', 'epiR', 'eRm', 'evaluate', ...
2007 Aug 02
2
lasso/lars error
...;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C
attached base packages:
[1] "stats" "graphics" "grDevices" "utils" "datasets" "methods"
[7] "base"
other attached packages:
lars randomForest corpcor cairoDevice
"0.9-7" "4.5-18" "1.4.5" "2.3"
[[alternative HTML version deleted]]
2009 Sep 30
1
How to calculate KMO?
...son et al, 1999,
## "The multivariate social scientist," page 224, ISBN 0761952012
## see <http://www2.chass.ncsu.edu/garson/pa765/hutcheson.htm><http://www2.chass.ncsu.edu/garson/pa765/hutcheson.htm%3E>
###
cor.sq = cor(df)^2
cor.sumsq = (sum(cor.sq)-dim(cor.sq)[1])/2
library(corpcor)
pcor.sq = cor2pcor(cor(df))^2
pcor.sumsq = (sum(pcor.sq)-dim(pcor.sq)[1])/2
kmo = sus.cor.ss/(sus.cor.ss+sus.pcor.ss)
return(kmo)
}
What is this object "*sus.cor.ss*"?I get errors
> sus.cor.ss
Error: object "sus.cor.ss" not found
Thanks in advance
Moumita
[[alternative...
2010 Jul 16
1
garbage collection & memory leaks in 'R', it seems...
...ersion, 2.11.1 (the machine I'm using has 20 GB of
memory, so that's my memory limit since it's 64 bit version)
packages: see below...
Package Version
brew "brew" "1.0-3"
colorspace "colorspace" "1.0-1"
corpcor "corpcor" "1.5.6"
digest "digest" "0.4.2"
fdrtool "fdrtool" "1.2.6"
GeneCycle "GeneCycle" "1.1.1"
ggplot2 "ggplot2" "0.8.7"
longitudinal "longitud...
2007 Aug 13
0
Problem with fisher.g.test
...= TRUE, sep = ",", quote="\"")
> ct<-t(ctraw)
> ftraw<-read.csv("ft.csv", header = TRUE, sep = ",", quote="\"")
>
> ft<-t(ftraw)
> library(GeneCycle)
Loading required package: longitudinal
Loading required package: corpcor
Loading required package: fdrtool
Loading required package: locfdr
Loading required package: splines
> ctgtest<-fisher.g.test(ctanalysis)
Error in r[i1] - r[-length(r):-(length(r) - lag + 1)] :
non-numeric argument to binary operator
[[alternative HTML version deleted]]
2009 Mar 27
0
RExcel rcom Server Loading The Wrong Version of R
...is in regards to using RApply to call R
functions which rely on functions in other libraries. I've resorted to
creating a function in my excel file which looks something like...
Cell Function
A1 getLibs<-function(){
A2 library(MBESS)
A3 library(corpcor)
A4 }
B1 =rproc(A1:A4)
C1 =rApply("getLibs")
Is their a better way to go about accomplishing this? Thanks in advance
for any insights you have either of these quesitons
Ben
___________________________________________
This message and any a...
2006 Jul 21
3
positive semi-definite matrix
I have a covariance matrix that is not positive semi-definite matrix and I
need it to be via some sort of adjustment. Is there any R routine or
package to help me do this?
Thanks, Roger
[[alternative HTML version deleted]]