search for: lowertriangl

Displaying 3 results from an estimated 3 matches for "lowertriangl".

Did you mean: lowertriangle
2007 Apr 23
1
how to convert the lower triangle of a matrix to a symmetricmatrix
Sorry if this answer was already given, or if I miss the point, but did you have a look to "lowerTriangle" and "upperTriangle" functions in the "gdata" package ? # example # A<-matrix(rnorm(9),3,3) # B<-B<-matrix(NA,dim(A)[1],dim(A)[2]) # lowerTriangle(B)<-lowerTriangle(A) # upperTriangle(B)<-lowerTriangle(A) # diag(B)<-diag(A) Hope this helps, sorry if it...
2006 Nov 20
1
My own correlation structure with nlme
...ow how to continue with this structure by using specific functions (corMatrix, getCovariate, Initialize,...) in order to get a structure like corAR1, corSymm which will be working for my data. Thanks in advance. Regards M. Feddag *Correlation structure _ _* pairCorr <- function(A, B, lowerTriangle = TRUE){ n <- length(A) m <- length(B) if (n != m) stop("A and B must have same length") result <- matrix(0, n, n) same.A <- outer(A, A, "==") same.B <- outer(B, B, "==") A.matches.B <- outer(A, B, "==") B.matches.A <- ou...
2015 Nov 23
2
Dibujar en tres dimensiones para un dominio dado. Añadir curvas de nivel.
Hola, Deseo dibujar en tres dimensiones la siguiente función z= min( 1 - abs(x-0.7), 1 - abs(y-0.2)) en este dominio 0<= x <= y <=1 En el ejemplo que hay abajo, se dibuja para 0<=x<=1, 0<=y<=1. ¿Me pueden ofrecer alguna ayudita para dibujarla en el recinto 0<= x <= y <=1 ? Y si además me indican cómo dibujar las proyecciones (curvas de nivel) en los planos XY, YZ y