Displaying 2 results from an estimated 2 matches for "mnds".
Did you mean:
ends
2012 Feb 13
2
Error in apply(x2, 1, diff) : dim(X) must have a positive length
...rates four different 'means' using
+ #difference scores from x2, an n x 2 matrix
+ #for use w/ bootstrap comparisons
+ diffs = apply(x2,1,diff)
+ mn1=mean(diffs)
+ mn2=mean(diffs,tr=.2)
+ mn3=mean(diffs,tr=.3)
+ mn4=median(diffs)
+ mns=c(mn1,mn2,mn3,mn4)
+ list(mnds=round(mns,3)) }
> dif.mns(shoes)
Error in apply(x2, 1, diff) : dim(X) must have a positive length
--
View this message in context: http://r.789695.n4.nabble.com/Error-in-apply-x2-1-diff-dim-X-must-have-a-positive-length-tp4382435p4382435.html
Sent from the R help mailing list archive at Nabbl...
2012 Feb 10
0
clustering and the region of integration
...of cluster membership for each point. I've calculated (thanks to nice
people help) the multivariate normal densities (mnd) using dmvnorm function:
pd11=mvtnorm::dmvnorm(dataset1,mean=dataset1MC$parameters$mean[,1],sigma=dataset1MC$parameters$variance$sigma[,,1])
I've obtained a vector of mnds for each cluster:
NA12043 NA12249 NA12264 NA12707 NA12716 NA12717
NA12751 NA12762 NA12864 NA12873 NA07034 NA07048
NA07055 NA07345 NA07348 NA07357 NA10830
NA10835
8.627681e+00 8.465797e+00 1.522724e+01 2.047262e+01 1.780...