[R] Changing mu in svyttest for one sample test
pd@|gd @end|ng |rom gm@||@com
Thu Mar 26 10:59:37 CET 2020
Subtract mu from the outcome?
> On 25 Mar 2020, at 19:22 , Mavra Ahmed <mavz.ahmed using utoronto.ca> wrote:
> Hi All,
> I am doing a one-sample t-test for survey data with replicates (svrepdesign).
> I was wondering if there is a way to change the mu in svyttest for one sample test? I can't find a way to do this online for svyttest but I was able to do it for ttest.
> for example; in the following, I can change the mu to be a known standard (in this case, 15):
> ttest(dataset$outcome, mu=15)
> For svyttest, I can only do as follows:
> svyttest(outcome~0, dataset)
> but I want to test my mean against a known standard (e.g. 15 as in the above case) using svyttest. Is there a way to do this? If not, what would be another way to test this?
> Thanks for your help,
> [[alternative HTML version deleted]]
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Office: A 4.23
Email: pd.mes using cbs.dk Priv: PDalgd using gmail.com
More information about the R-help