[SOLVED] Problem with db.stat function for weighted samples

If you have problems using RGeostats package or if you simply need some help on an unlisted subject.

[SOLVED] Problem with db.stat function for weighted samples

Postby Costu » Sun Jan 12, 2014 10:53 am

Hi all,

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
Costu
 
Posts: 9
Joined: Sun Oct 14, 2012 8:37 pm

Re: Problem with db.stat function for weighted samples

Postby Didier Renard » Sun Jan 12, 2014 6:53 pm

The weight has been added to this function.
Making this function to return the values is not done yet as it changes the R script
Didier Renard
 
Posts: 242
Joined: Thu Sep 20, 2012 4:22 pm

Re: Problem with db.stat function for weighted samples

Postby Didier Renard » Thu Jan 16, 2014 6:13 pm

The procedure db.stat has been modified in order to return (optionally) the vector or matrix containing the statistics.
It may also become silent.
Available in V9.1.11
Didier Renard
 
Posts: 242
Joined: Thu Sep 20, 2012 4:22 pm


Return to Other Troubleshooting

Who is online

Users browsing this forum: No registered users and 1 guest

cron