>How can I weight a data set in S-Plus?
>I need adjust a random-effect model (lme function), but I need weight
>all data by one specific variable. I have tried the function
>"weight", but I recieved the message that this function don't exist.
In general you cannot "weight a data set", so that those weights
are used for all calculations.
Instead, for many statistical functions you specify weights when
calling the function. For example, lme has an argument "weights".
Not every statistical function accepts weights. The S+Resample
library has enhanced versions of many functions that do accept
weights.
Tim Hesterberg
========================================================
| Tim Hesterberg Research Scientist |
| timh@insightful.com Insightful Corp. |
| (206)802-2319 1700 Westlake Ave. N, Suite 500 |
| (206)802-2500 (fax) Seattle, WA 98109-3044, U.S.A. |
| www.insightful.com/Hesterberg |
========================================================
Download the S+Resample library from www.insightful.com/downloads/libraries
|