Displaying 1 result from an estimated 1 matches for "sdatavar".
Did you mean:
  datavar
  
2008 Dec 03
1
help on tapply using sample with differing sample-sizes
...at I want to do. Perhaps, tapply is not the best way to go about getting what I want. if so what would all you strong programmers reccommend instead. I am thinking that perhaps loops may be the  only way to go.
raoboot <- function (datavar, statavar, weight,  nboot, ciqntl, ciqntu)
{
	i <- 1
sdatavar <- sort(datavar)
sstratavar <- sort(statavar)
sweight <- sort(weight)
 sdatavarwght <- sdatavar*sweight
 # stramn <- tapply(sdatavar, sstratavar, mean)
 meanvect <- rep(0, times = nboot)
   stratasize <- tapply(sdatavarwght, sstratavar, length)
   stratasizemone <- stratasiz...