search for: lis1

Displaying 5 results from an estimated 5 matches for "lis1".

Did you mean: lis
2011 Apr 06
2
A zoo related question
Dear all, please consider my following workbook: library(zoo) lis1 <- vector('list', length = 2) lis2 <- vector('list', length = 2) lis1[[1]] <- zooreg(rnorm(20), start = as.Date("2010-01-01"), frequency = 1) lis1[[2]] <- zooreg(rnorm(20), start = as.yearmon("2010-01-01"), frequency = 12) lis2[[1]] <- matri...
2006 Sep 07
1
Running wilcox.test function on two lists
Dear all, I'm a newbie to R and I would really apperciate any help with the following: I have two lists, l1 and l2: l1: $"A*0101" [1] 0.076 0.109 0.155 0.077 0.09 0 0 0.073 [9] 0.33 0.0034 0.0053 $"A*0247" [1] 0 0 0.5 .004 0 0 0 $"A*0248" [1] 0 0 0.3 0 0.06 .... l2: $"A*1101" [1] 0.17 0.24 0.097 0.075 0.067 $"A*0247" numeric(0)
2004 Dec 29
1
Discrepancy between intervals.lme and coef.lme
...e data are longitudinal data from couples in marital therapy. Each spouse's relationship satisfaction is measured 4 times; I've fit both linear and quadratic models to the change over time. The quadratic fits show the discrpancies. Here's the call to lmList, coef, and intervals: tmp.lis1 <- lmList(dv ~ time + I(time^2)| id/sex, data = tmp.df, na.action = na.omit) coef(tmp.lis1) intervals(tmp.lis1) Here is the coef() output: (Intercept) time I(time^2) 1/Husband 89.60 11.100000 -2.500000 1/Wife 69.80 5.300000 -0.500000 2...
2011 Apr 19
1
Reducing dimension of a list object
...t. However in my current session I have few objects which are actually list of list of list..(say n step). If I reduce their dimension then I have call Reduce() function many times. Therefore my question is, is there any 1-step way to reduce the dimension at the lowest level? Take this example: lis1 <- list(4) lis2 <- list(1,8) lis3 <- list(lis1, lis2) # Now I want to reduce the dimension of lis3 to a column vector: > Reduce("c", Reduce("c", lis3)) [1] 4 1 8 I want to have some mechanism so that I need not to call reduce() function twice. Is there...
2005 Jan 06
2
Generating Data mvrnorm and loops
Dear List: I am generating N datasets using the following Sigma<-matrix(c(400,80,80,80,80,400,80,80,80,80,400,80,80,80,80,400),4,4 ) mu<-c(100,150,200,250) N=100 for(i in 1:N) { assign(paste("Data.", i, sep=''), as.data.frame(cbind(seq(1:1000),(mvrnorm(n=1000, mu, Sigma))))) } With these datasets, I need to work on some of the variables and then run each dataset