search for: checkmvarg

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

Did you mean: checkmvargs
2006 Aug 21
2
polychor error
...mp.vec<-c(0, 0, 0 , 0 ,0 , 1, 0, 2, 0 , 0, 5 ,5 ,3 ,1, 0 , 1, 5, 10, 27, 20, 9, 0, 1, 1, 12, 29, 57, 34, 0, 0, 1, 2, 11, 31, 32) tmp.mat<-matrix(tmp.vec, nrow=7) rownames(tmp.mat)<-1:7 colnames(tmp.mat)<-3:7 tmp.pcc<-polychor(tmp.mat, ML=T, std.err=T) Error in checkmvArgs(lower = lower, upper = upper, mean = mean, corr = corr, : at least one element of ?lower? is larger than ?upper? Thanks, Janet
2009 May 20
1
sem with categorical data
I am trying to run a confirmatory factor analysis using the SEM package. My data are ordinal. I have read http://socserv.mcmaster.ca/jfox/Misc/sem/SEM-paper.pdf. When I apply the hetcor function, I receive the following error: Error in checkmvArgs(lower = lower, upper = upper, mean = mean, corr = corr, : at least one element of 'lower' is larger than 'upper' Example: set.seed(781) q1 <- cut2(x = rlnorm(n = 1e2, m = 2), cuts = seq(1,6)) q2 <- cut2(x = rlnorm(n = 1e2, m = 0), cuts = seq(1,6)) q3 <- cut2(x = rlnorm...
2009 Apr 19
1
help with this code
...]), mean-c(0,0), corr=var)/(t*(t+1)) } } n*beta[2]-(n-1)*pmvnorm(lower=c(alpha[n-1],alpha[n-1]), upper=rep(Inf,2), corr=var, mean=c(0,0))+n*(n-1)*sum(x) } I got the error informatio as below if I want to calculate the value the function for some specific parameters. > f2(5, 0.1) Error in checkmvArgs(lower = lower, upper = upper, mean = mean, corr = corr, : ‘diag(corr)’ and ‘lower’ are of different length [[alternative HTML version deleted]]
2012 Oct 01
1
Error messages when attempting to calculate polychoric correlation matrices
...polychoric(data.matrix18) which returns the following error message at 20%: "Error in tab * log(P) : non-conformable arrays". I have also used the polychor command from the polycor package (Fox, 2010), polychor(data.matrix18, ML=TRUE) which returns the error message: "Error in checkmvArgs(lower = lower, upper = upper, mean = mean, corr = corr, : at least one element of 'lower' is larger than 'upper'" When using the two step estimation method, R has output a single coefficient rather than a correlation matrix, this could be due to a misunderstanding of th...
2012 Oct 02
0
Error messages when attempting to calculate polychoric correlation matrices using the psych package
...wing error message at 20%: "Error in tab * > log(P) > : non-conformable arrays". > > > > I have also used the polychor command from the polycor package (Fox, > 2010), > > polychor(data.matrix18, ML=TRUE) > > which returns the error message: "Error in checkmvArgs(lower = lower, > upper = upper, mean = mean, corr = corr, : > > at least one element of 'lower' is larger than 'upper'" > > > > When using the two step estimation method, R has output a single > coefficient rather than a correlation matrix, this coul...