n(~api00, dstrat)
>
>
> mean(apistrat$api00*apistrat$pw/100)
>
>
>
>
>
>
> --------------
> *From:* Anthony Damico
> *Sent:* January 1, 2017 8:00 AM
> *To:* Kristi Glover
> *Cc:* R-help
> *Subject:* Re: [R] how to extract weighted data in "
w data and afetr adjusted
svymean(~api00, dstrat)
mean(apistrat$api00*apistrat$pw/100)
From: Anthony Damico
Sent: January 1, 2017 8:00 AM
To: Kristi Glover
Cc: R-help
Subject: Re: [R] how to extract weighted data in "survey" package
# loa
# load the survey library
library(survey)
# load the apistrat data.frame
data(api)
# look at the first six records
head(apistrat)
# look at the weight column only
apistrat$pw
On Sun, Jan 1, 2017 at 9:49 AM, Kristi Glover
wrote:
> Hi R Users,
>
> Happy New Year
>
>
> I wanted to see the da
3 matches
Mail list logo