search for: amatrix

Displaying 10 results from an estimated 10 matches for "amatrix".

Did you mean: matrix
2007 Mar 03
3
How to convert List object to function arguments?
...ot;. For instance: ##### BEGIN CODE SNIP ##### parms <- list( shape1 = 2, shape2 = 5 ); goftests( x, "beta", parms[["shape1"]], parms[["shape2"]] ); # Works! goftests( x, "beta", parms ) # Don't Works! parms <- list( aNum = 5, aVector = c(1,2,3), aMatrix = matrix(c(4,5,6,7,8,9),nrow=2,byrow=T) ); goftests( x, "my-special-distr", parms[["aVector"]], parms[["aMatrix"]], parms[["aNumber"]] ); # Works! goftests( x, "my-special-distr", parms ) # Don't Works! ##### END CODE SNIP ##### Obviously I...
2011 Oct 03
4
distance coefficient for amatrix with ngative valus
Hi, I need to run a PCoA (PCO) for a data set wich has both positive and negative values for variables. I  could not find any distancecoefficient other than euclidean distace running for the data set. Are there any other coefficient works with negtive values.Also I cannot get summary out put (the eigen values) for PCO as for PCA.   Thanks. Dilshan [[alternative HTML version deleted]]
2006 Nov 24
1
Missing values for S4 slots
Using R 2.4, the following fails: setClass("testc", representation(a="ANY")) makeC <- function(myarg) new("testc", a=myarg) makeC() -> Error in initialize(value, ...) : argument "myarg" is missing, with no default On the other hand, this is OK: f <- function(a) g(b=a) g <- function(b) if(missing(b)) "missing" else "valid
2012 Feb 26
1
Matrix problem to extract animal associations
...t;ID8_ID9_" "ID9_ID9_" "ID10_ID9_" ID10 "ID1_ID10_" "ID2_ID10_" "ID3_ID10_" "ID4_ID10_" "ID5_ID10_" "ID6_ID10_" "ID7_ID10_" "ID8_ID10_" "ID9_ID10_" "ID10_ID10_" > > (AMatrix <- as.character(unique(AssocMatrix[which(DMTF==TRUE)]))) [1] "ID2_ID6" "ID6_ID2" "ID6_ID10" "ID10_ID6" > > ##Extract those individuals not in any interactions > nonassoc <- IDs[is.na(charmatch(inassoc,AMatrix))] > > (NGroups <- d...
2012 Jul 28
1
using save() to work with objects that exceed memory capacity
Context: I'm relatively new to R and am working with very large datasets. General problem: If working on a dataset requires that I produce more than two objects of roughly the size of the dataset, R quickly uses up its available memory and slows to a virtual halt. My tentative solution: To save and remove objects as they're created, and load them when I need them. To do this I'm
2003 Jun 14
4
problem installing packages from source on win2k
...ext html latex example image.smooth text html latex example interp.surface text html latex example krig.image text html latex example lennon text html latex make.Amatrix.Krig text html latex example make.Amatrix text html latex example matern.cov text html latex example minitri text html latex nkreg text html...
2003 Aug 29
0
vardiag package help
...ompare results doing other plots as well. I used ?cook.distance? on lm and glm objects, but still I am not happy with that. So now I am loading the ?vardiag? package. First thing is to transform my data (frame.data) into a matrix ? which I did with ?as.matrix?. I verify my new object as being amatrix ? and it is, and I list it to be sure that in is a matrix of n rows with 3 colums. Now I want to use the command ?varobj? to transform my matrix into a variogram object. The param are: varobj(m, iter = 50, tolerance = 2e-04, trace = 1, loo = F) where, m is a n by 3 matrix with spatial data. My...
2007 Jun 15
0
Question with nlm
...====== logLikFunc3 <- function(sigma, object, totalTime) { y <- as.matrix(object at data$output[1:totalTime,1]); x <- as.matrix(object at data$input[1:totalTime,]); # compute necessary matrices M <- as.matrix(object at model$M); P <- diag(sigma*sigma); A <- AMatrix(totalTime, M, object at data$input[1:totalTime,]); Q <- IMatrix(totalTime)+A %*% outerM(IMatrix(totalTime-1),P) %*% t(A); invQ <- solve(Q,IMatrix(dim(Q)[1])); xM <- matrix(rep(0, dim(M)[2]*totalTime), ncol=dim(M)[2], nrow=totalTime); for (i in 1:totalTime) { xM[i,] &...
2008 Jan 03
2
retaining formatting when converting a vector to a matrix/data.frame?
Please see example code below. I have a vector ("mydata") of length 10. "mydata" can have various formats (e.g. numeric, text, POSIXct, etc) I use the matrix and data.frame functions to convert "mydata" to a dataframe ("mydf") of 2 columns and 5 rows. What is a "good" way to ensure that the format is retained when I create the
2007 Oct 06
1
problem installing fields package 3.5 on R 1.8.1 on linux
.../../.. -lfrtbegin -lg2c -lm -lgcc_s ** R ** data ** help >>> Building/Updating help pages for package 'fields' Formats: text html latex example BD text html latex example Exponential text html latex Krig.Amatrix text html latex example Krig text html latex example Krig.engine.default text html latex example Krig.null.function text html latex RMprecip text html...