search for: sructure

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

Did you mean: structure
2009 Dec 17
2
issue with using rm: cannot generate on-the-fly list
...o the scope of variables declared in the loop is global. Within this loop I generate several variables which should be removed at the end of each iteration. To do this, I wrote a function to clean up the workspace. An example is included here: cleanUpWorkspace<-function() { #Remove key data sructures, if they have been declared: delList<-list() for(varname in c("rv1","rv2", "rv3", "rv4")) { if(exists(varname)) { delList<-append(delList, varname) } } if(length(delList)>0) { rm(list=delList, pos=...
2005 Feb 17
0
lme4--->GLMM
...ed, if i first attach the lme4 package and then the nlme-package): GLMM(....., random=list(my.Subject=~var.a1+var.a2+var.a3, my.Subject=~var.b1+var.b2, my.Subject=var.c1+var.c2+var.c3+var.c4),.....) and really could make estimates in such a way. The problem is how can i specify a simple matrix sructure for each block, such as pdIdent(...) in symbols of lme4. is it possible? Does the lme4 any use of pdMat-specification or something like this? If not, it seems, that i actually specify a general Covariance Matrix for each block, what i in principle don't want. thanks in advance
2005 Jun 21
1
Data.frames with different line's length
Hello, I want to create a data.frame with different number of columns per line. What I want is something like: example <- NULL begin <- 1 while (end < nrow(orig.data)) { end <- next.day(orig.data,begin) # my own function. It returns the first index from the next day. Each day has a different number of records. example <- rbind(example, c(begin, end, predictions[c(begin:end)],