R-helpers
A curious question: Can you make suggestions as to what to use in R for
the data from a sample of the following:
Hypermarket <- matrix(rnorm(100, mean=50000, sd=5000))
Supermarket <- matrix(rnorm(400, mean=34000, sd=3000))
Minimarket <- matrix(rnorm(1000, mean=10000,sd=2000))
Cornershop <- matrix(rnorm(1500, mean=2500, sd=500))
Spazashop <- matrix(rnorm(2000, mean=1000, sd=250))
dat=data.frame(type=c(rep("Hypermarket",100),
rep("Supermarket",400),
rep("Minimarket",1000),rep("Cornershop",1500),
rep("Spazashop",2000)),
value=c(Hypermarket, Supermarket, Minimarket, Cornershop,Spazashop))
#Sampling with without replacement
n<-1000
dat.srs<-dat[sample(1:dim(dat)[1], size=n,replace=F),]
dat.srs
#Number of observations for each outlet type in a sample
dat.srs$type <- factor(dat.srs$type,
levels =
c("Hypermarket","Supermarket","Minimarket","Cornershop","Spazashop"))
(numoutlets<-data.frame(table(dat.srs$type)))
suggest a package that can help me get all the analysis info such as
meean,var,std,dev,cv,ci,proportions,...........
[[alternative HTML version deleted]]