Aliases: freq1way
Keywords: htest
### ** Examples ##Body image data: data(body.df) eth.table = with(body.df, table(ethnicity)) freq1way(eth.table)
data: eth.table n = 246 Individual (large sample) 95% CIs (adjusted for 4 multiple comparisons) sample prop conf.lower conf.upper Asian 0.203 0.139 0.267 Europn 0.407 0.328 0.485 Maori 0.264 0.194 0.334 Pacific 0.126 0.073 0.179 Chi-square test for uniformity X-squared = 41.5772, df = 3, p-value = 4.933e-09
95% CIs for differences in true proportions (rowname-colname) (adjusted for 6 multiple comparisons) Europn Maori Pacific Asian (-0.33,-0.076)* (-0.176,0.054) (-0.018,0.173) Europn (0.007,0.278)* (0.167,0.394)* Maori (0.036,0.241)*
freq1way(eth.table,hypothprob=c(0.2,0.4,0.3,0.1))
data: eth.table n = 246 Individual (large sample) 95% CIs (adjusted for 4 multiple comparisons) sample prop conf.lower conf.upper hypoth prob Asian 0.203 0.139 0.267 0.2 Europn 0.407 0.328 0.485 0.4 Maori 0.264 0.194 0.334 0.3 Pacific 0.126 0.073 0.179 0.1 Chi-square test for hypothesized probabilities X-squared = 2.7534, df = 3, p-value = 0.4312