Re: [R] About MC simulation of AR1 model in R

2017-03-03 Thread Kevin Wright
Try this example to simulate AR1xAR1 variance structure. Kevin Wright library(mvtnorm) library(asreml) set.seed(300) nr <- 10; nc <- 8 # number of rows and columns colcor <- .9 # correlation for columns, rows rowcor <- .1 sigAR <- diag(nr) sigAR <- rowcor^ abs(row(sigAR) - col(sigAR)) sigAC

Re: [R] ASReml-R lack of documentation

2017-03-03 Thread Kevin Wright
Patrick, The asreml (VSNi) forum seems to still be working with a few posts every month: https://www.vsni.co.uk/forum/viewforum.php?f=7 Kevin Wright On Mon, Feb 27, 2017 at 2:29 AM, Patrick Connolly < p_conno...@slingshot.co.nz> wrote: > Has anyone had any success contacting VSNi,

[R] Heatmap help

2017-03-03 Thread André Luis Neves
Dear all, I was wondering if you could help me to construct a heat map, in which the columns are sorted by sample type (A first and then B). My reproducible example below runs, but the columns of the heatmap are not organized in the way I would like because it has first sampleA, SampleB, sampleA,

Re: [R] xtable: Width of Columns

2017-03-03 Thread Michael Dewey
Does p{3cm} do what you want as an alignment? On 02/03/2017 12:39, g.maub...@weinwolf.de wrote: Hi All, I have the following code in R Markdown document: ```{r, results = "asis", echo = FALSE} library(xtable) response <- as.data.frame(matrix(NA, 2, 2)) colnames(response) <- c("Anzahl",

Re: [R] optimal control

2017-03-03 Thread PIKAL Petr
Hi the concise summary about optimization can be found on CRAN Task View Optimization Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Ismail Raji > Sent: Thursday, March 2, 2017 9:25 PM > To: r-help@r-project.org > Subject: [R] optimal

Re: [R] Looking to understand GPU acceleration in R

2017-03-03 Thread PIKAL Petr
Hi Did you look at https://www.r-bloggers.com/r-gpu-programming-for-all-with-gpur/ http://www.r-tutor.com/gpu-computing Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Andrej > Favia > Sent: Thursday, March 2, 2017 1:29 AM > To:

Re: [R] R copies for no apparent reason

2017-03-03 Thread peter dalgaard
Right. A semi-short explanation is that R doesn't do full reference counting (*), hence copying happens when you modify an object that _at any previous point_ has been known by two or more names (incl. same name in different environments). In the present case, there has been local variable x