[SOLVED] Problem with db.stat function for weighted samples
Posted: Sun Jan 12, 2014 10:53 am
Hi all,
When i use the function
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!!
Thanks
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!!
Thanks