search for: matries

Displaying 6 results from an estimated 6 matches for "matries".

Did you mean: matrices
2010 Dec 11
2
break
Hi I'm trying to utilize the break command for breaking the loop when the p-value is less than 10 per cent using the urca package. But it does not break the loop, anyone that can help me? library(urca) set.seed(1) a1 <- runif(100) lag.max <- function(object, n = 12){ matris <- matrix(NA, nrow = n) for(i in 1:n) { matris[i] <- ur.df(object, lags = i,
2010 Jul 20
1
Exporting NMDS distance matris to csv
If you submit these lines, you end up with variable "vare.dis". I want to export vare.dis to csv. Stuck I am. library(vegan,logical.return = TRUE) #return=true verifies package is available library(MASS,logical.return=TRUE) #return=true verifies package is available data(varespec) #varespec is an example data file in the vegan package vare.dis <- vegdist(varespec)
2002 Oct 09
1
problems with missing values created by conversion using as.matri (PR#2130)
> version _ platform sparc-sun-solaris2.8 arch sparc os solaris2.8 system sparc, solaris2.8 status major 1 minor 6.0 year 2002 month 10 day 01 language R
2006 Oct 05
1
matrix multiplication
...iable is included in the model, the corresponding diagonal element is 1, otherwise, it is 0. Let A be a set of matrices that contain the possible indicator matrix. e.g., A= [A1, A2, A3], where A1= [1,0,0;0,0,0,0,0,0], A2 =[1,0,0;0,1,0,0,0,0], A3 =[1,0,0;0,0,0,0,1,0] In order to derive the new X matries depending on the indicator matrices, I use for loops to multiply both X and A as following p<-3 for ( i in 1:p){ XX<- X%*%A[i] } However, it only shows the result when i=p. How can I derive the results which include all possible value of XX[i], i=1,..,p, rather than just i...
2011 Sep 15
1
Creando scrips en R
Hola queridos usuarios de R-HELP-ES Primero que nada, muchas gracias a todo aquellos que me prestaron ayuda en mi anterior pregunta, fue de gran utilidad. A lo siguiente, tengo ahora otras preguntas, que bajo mis conocimientos las considero complejas, espero que me puedan ayudar, se los agradezco de antemano. Necesito realizar las siguientes operaciones (#OperaciĆ³n general) a un conjunto de 18
2005 Sep 29
1
Bug in lmer?
I am relatively new to R so I am not confident enough in what I am doing to be certain this is a bug. I am running R 2.1.1 on a Windows XP machine and the lme4 package version 0.98-1. The following code fits the model I want using the nlme package version 3.1-60. mltloc$loc <- factor(mltloc$loc) mltloc$block <- factor(mltloc$block) mltloc$trt <- factor(mltloc$trt) Mltloc <-