[R] Multidimensional scaling

2009-10-30 Thread Hollix
Hi there, when conducting a multidimensional scaling analysis, it is possible to do this on a correlation matrix? I calculated a dissimilarity matrix by substracting the corr.matrix from 1. Then I calculated the distance matrix with d - dist(dissimilarity matrix) and ran the isoMDS function.

[R] Multidimensional scaling on a correlation matrix

2009-10-30 Thread Hollix
Hi there, when conducting a multidimensional scaling analysis, it is possible to do this on a correlation matrix? I calculated a dissimilarity matrix by substracting the corr.matrix from 1. Then I calculated the distance matrix with d - dist(dissimilarity matrix) and ran the isoMDS function.

[R] Eliminate cases in a subset of a dataframe

2009-09-14 Thread Hollix
Hi folks, I created a subset of a dataframe (i.e., selected only men): subdata - subset(data,data$gender==1) After a residual diagnostic of a regression analysis, I detected three outliers: linmod - lm(y ~ x, data=subdata) plot(linmod) Say, the cases 11,22, and 33 were outliers. Here comes

Re: [R] Eliminate cases in a subset of a dataframe

2009-09-14 Thread Hollix
Hi Guys, thank you all for you comments. Actually, I had a typo and you'r right that it should be subdata[-c(11,22,33) , ] However, this does not work well either. I think, I know the reason: In the diagnostic diagramm (that you get with plot(linreg) ), the number which are assigned to the

[R] Cluster analysis with missing data

2009-07-14 Thread Hollix
Hi folks, I tried for the first time hclust. Unfortunately, with missing data in my data file, it doesn't seem to work. I found no information about how to consider missing data. Omission of all missings is not really an option as I would loose to many cases. Thanks in advance Holger -- View

[R] Multivariate Transformations

2009-05-27 Thread Hollix
Hello folks, many multivariate anayses (e.g., structural equation modeling) require multivariate normal distributions. Real data, however, most often significantly depart from the multinormal distribution. Some researchers (e.g., Yuan et al., 2000) have proposed a multivariate transformation of

[R] Creating a list by just using start and final component

2009-05-24 Thread Hollix
Hi there, say, I have 100 matrices (m1,m2,...,m100) which I want to combine in a list. The list, thus, shall contain the matrices as components. Is it necessary to mention all 100 matrices in the list() command? I would like to use just the first and last matrix or something similar. Best,

Re: [R] Creating a list by just using start and final component

2009-05-24 Thread Hollix
Wow, thank you so much! Where can I learn such creative approaches? Best, Holger Romain Francois-2 wrote: Hollix wrote: Hi there, say, I have 100 matrices (m1,m2,...,m100) which I want to combine in a list. The list, thus, shall contain the matrices as components. Is it necessary