similar to: Generate data from correlation matrix

Displaying 20 results from an estimated 10000 matches similar to: "Generate data from correlation matrix"

2010 May 15
1
Dataframe to word, using R2wd
Hi All, I'm trying to use R2wd to send a dataframe to Word. The dataframe isn't huge - 300 rows, 12 variables, although it has some long strings in it. Using: wdTable(format(myDataFrame)) or wdTable(myDataFrame) Produces a very complex table, which Word struggles to process and layout. (I can't work out what the table is - it seems to be nested tables. Converting to text gives
2011 Mar 05
2
testing power of correlation
Dear List, does anyone know how I can test the strength of a correlation? Cheers, Anna
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 complication, but
2007 Nov 16
1
generate multivariate F with specified correlation matrix
Dear all, In MATLAB, to generate multivariate F with specified correlation matrix Pn I can use the code such as Z = mvnrnd([0 0 0 0 0], Pn, N); U = normcdf(Z,0,1); X = [finv(U(:,1),5,15) finv(U(:,2),5,15) finv(U(:,3),5,15) finv(U(:,4),5,15) finv(U(:,5),5,15)]; Is there something similar in R? Thank you for your time.
2011 Aug 11
5
generate two sets of random numbers that are correlated
Dear R users I'd like to generate two sets of random numbers with a fixed correlation coefficient, say .4, using R. Any suggestion will be greatly appreciated. Regards, Kathryn Lord -- View this message in context: http://r.789695.n4.nabble.com/generate-two-sets-of-random-numbers-that-are-correlated-tp3735695p3735695.html Sent from the R help mailing list archive at Nabble.com.
2007 Jun 12
1
getting R2.4 (Win)
Hi, I would like to get hold of the R version 2.4.0 windows installer, it doesn't seem to be available on CRAN (except the source, which needs compiling). Does anyone know if it's still available anywhere? Thanks, jeremy -- Jeremy Miles Learning statistics blog: www.jeremymiles.co.uk/learningstats Psychology Research Methods Wiki: www.researchmethodsinpsychology.com
2013 Feb 14
3
list of matrices --> array
i'm somehow embarrassed to even ask this, but is there any built-in method for doing this: my_list <- list() my_list[[1]] <- matrix(1:20, ncol = 5) my_list[[2]] <- matrix(20:1, ncol = 5) now, knowing that these matrices are identical in dimension, i'd like to unfold the list to a 2x4x5 (or some other permutation of the dim sizes) array. i know i can initialize the array, then
2005 Jan 19
1
Function to modify existing data.frame--Improving R Language
Thanks to everyone who replied to my question! A comment regarding Thomas's point below: Java & other object-oriented languages that are function rather than macro based usually provide methods & other capabilities that allow pass by reference in certain cases and these methods would solve the problem I posed regarding how to change values in an existing data.frame from within a
2004 Jun 25
2
Simulating from a Multivariate Normal Distribution Using a Correlation Matrix
Hello, I would like to simulate randomly from a multivariate normal distribution using a correlation matrix, rho. I do not have sigma. I have searched the help archive and the R documentation as well as doing a standard google search. What I have seen is that one can either use rmvnorm in the package: mvtnorm or mvrnorm in the package: MASS. I believe I read somewhere that the latter was
2010 Feb 11
2
R ANOVA gives diferent results than SPSS
I guess my subject says it all. But I loaded a dataset in spss and used the foreign package to read and save it in R. Running an anova (using the aov command) gives a different F and p value in R than it does in SPSS. ANy idea what is going on? -- View this message in context: http://n4.nabble.com/R-ANOVA-gives-diferent-results-than-SPSS-tp1477322p1477322.html Sent from the R help mailing list
2010 Aug 19
1
meta-analysis in R
Dear Sir or Madam, I am trying to explore the citation bias by perfroming meta-analysis. I need to plot a forest plot on some other proportions other than the usual effect size OR,RR, RD. I still do not have any idea after searching google and reading relevant books. Can anyone kindly help? Thank you in advance. Best wishes weiwei [[alternative HTML version deleted]]
2010 Sep 30
2
can I add line breaks to the paste() function?
Can I add a line break to the paste() function to return the following: 'this is the first line' 'this is the second line' instead of 'this is the first line this is the second line' ?
2010 Oct 07
1
FDR
Dear R users, I am wondering about the following results: > p.adjust(c(0.05,0.05,0.05),"fdr") [1] 0.05 0.05 0.05 > p.adjust(c(0.05,0.04,0.03),"fdr") [1] 0.05 0.05 0.05 Why does p.adjust(..., "fdr") not adjust p-values, if they are constant? Does somebody have an explanation or can point to a reference? Thanks in advance, Will
2011 Apr 21
1
Rcmdr vs SPSS in hungarian
An embedded and charset-unspecified text was scrubbed... Name: nem el?rhet? URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110421/2b2b582b/attachment.pl>
2011 Apr 20
2
Rcmdr vs SPSS
An embedded and charset-unspecified text was scrubbed... Name: nem el?rhet? URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110420/4913654b/attachment.pl>
2010 Jun 16
4
Is there a non-parametric repeated-measures Anova in R ?
Hello Prof. Harrell and dear R-help mailing list, I wish to perform a non-parametric repeated measures anova. If what I read online is true, this could be achieved using a mixed Ordinal Regression model (a.k.a: Proportional Odds Model). I found two packages that seems relevant, but couldn't find any vignette on the subject: http://cran.r-project.org/web/packages/repolr/
2012 Apr 20
1
odbcConnectExcel() fails to fetch all columns
Folks, Is there a parameter somewhere in RODBC that enables more columns to be retrieved from an Excel worksheet? # This next bit uses an undocumented call in RODBC z <- odbcConnectExcel("./BBaselinePtQaires_apr2011.xls") BQ <- sqlFetch(z, "BBaselinePtQaires") Gives me: z RODBC[1] And BQ 134 obs. of 59 variables I have all the rows in the worksheet but only the
2007 Jul 13
1
correlation matrix difference
Hi, I have got four correlation matrix. They are the same set of variables under different conditions. Is there a way to test whether the correlation matrix are significently different among each other? Could anyone give me some advice? -- View this message in context: http://www.nabble.com/correlation-matrix-difference-tf4073868.html#a11578046 Sent from the R help mailing list archive at
2006 Jun 28
1
Simulate dichotomous correlation matrix
Newsgroup members, Does anyone have a clever way to simulate a correlation matrix such that each column contains dichotomous variables (0,1) and where each column has different prevalence rates. For instance, I would like to simulate the following correlation matrix: > CORMAT[1:4,1:4] PUREPT PTCUT2 PHQCUT2T ALCCUTT2 PUREPT 1.0000000 0.5141552 0.1913139 0.1917923 PTCUT2
2010 Jun 28
2
Note on PCA (not directly with R)
Dear all, I am looking for some interactive study materials on Principal component analysis. Basically I would like to know what we are actually doing with PCA? What is happening within the dataset at the time of doing PCA. Probably a 3-dimensional interactive explanation would be best for me. I have gone through some online materials specially Wikipedia etc, however what I need a "movable