When i use the function
- Code: Select all
db.stat(db, fun = "mean", names = NA, ngrep=NA, flag.mono=FALSE)
for compute descriptive statistics like mean and variance of a variable on weighted sample (option w=... in db.create function ) , i obtain the same result as unweighted sample. I seem that this function doesn't take a weight in a sample??
Futhermore, it is not possible to get the value of the result in db.stat function : we have just a printout!!