s-news
[Top] [All Lists]

Re: weight data

To: "Juliana Mambrini" <julimamb@terra.com.br>
Subject: Re: weight data
From: Tim Hesterberg <timh@insightful.com>
Date: 25 Jun 2004 08:04:20 -0700
Cc: "s-news" <s-news@lists.biostat.wustl.edu>
In-reply-to: <HZV8P0$A3A6C33A8A24FC41409BF3B610EEF7A2@terra.com.br> (julimamb@terra.com.br)
References: <HZV8P0$A3A6C33A8A24FC41409BF3B610EEF7A2@terra.com.br>
>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


<Prev in Thread] Current Thread [Next in Thread>
  • weight data, Juliana Mambrini
    • Re: weight data, Tim Hesterberg <=