search for: pa765

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

2009 Sep 30
1
How to calculate KMO?
...culate 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 ## 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) } W...
2005 Dec 07
1
KMO sampling adequacy and SPSS -- partial solution
...culate 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 ## see <http://www2.chass.ncsu.edu/garson/pa765/hutcheson.htm> ### 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) } Also, for those trying to reproduce the SPSS factor analy...
2006 Sep 12
1
Kendall's tau-c
Hello, I can't find a package which calculates Kendall's tau-c. There is the package Kendall, but it only calcuates Kendall's tau-b. Here is the example from ttp://www2.chass.ncsu.edu/garson/pa765/assocordinal.htm. cityriots <- data.frame(citysize=c(1,1,2,2,3,3), riotsize=c(1,2,1,2,1,2), weight=c(4,2,2,3,0,4)) cityriots <- data.frame(lapply(cityriots,function(x) rep(x,cityriots$weight))) xtabs(~ riotsize+citysize,cityriots) tau-c should be .57. Do you have a hint? Best regards Knu...
2009 Jul 31
1
Tests for Two Independent Samples
...tions in category 4; 2 observations in category 5; To present the sample in R: b<-rep(1:5, c(6,127,297,72,2)) I want to test weather these two samples have significant difference in distribution ( or Tests for Two Independent Samples). I find a webside in: http://faculty.chass.ncsu.edu/garson/PA765/mann.htm This page shows four nonparametric tests. Bust I can only find the test Kolmogorov-Smirnov Z Test. res<-ks.test(a,b) Can any one tell me which package has the other 3 tests? or Is there any other test for my question? Thanks advance Ted -- View this message in context: http://ww...
2010 May 25
1
SEM interaction
Hello all, This is a general stats question--I realize it is an R help list, so tell me to go away if it is inappropriate. I have a 2 X 2 design, and I have specified four identical path models (one for each level of each factor). I want to test for an interaction at each path--essentially (A1 - A2) - (B1 - B2) != 0. I was thinking of computing a contrast for each path of interest, such that