svyttest | R Documentation |

One-sample or two-sample t-test. This function is a wrapper for
`svymean`

in the one-sample case and for
`svyglm`

in the two-sample case. Degrees of freedom are
`degf(design)-1`

for the one-sample test and `degf(design)-2`

for the two-sample case.

```
svyttest(formula, design, ...)
```

`formula` |
Formula, |

`design` |
survey design object |

`...` |
for methods |

Object of class `htest`

`t.test`

```
data(api)
dclus2<-svydesign(id=~dnum+snum, fpc=~fpc1+fpc2, data=apiclus2)
tt<-svyttest(enroll~comp.imp, dclus2)
tt
confint(tt, level=0.9)
svyttest(enroll~I(stype=="E"),dclus2)
svyttest(I(api00-api99)~0, dclus2)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.