File: Chapter.8.4.R

package info (click to toggle)
r-cran-learnbayes 2.15.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,864 kB
  • sloc: sh: 15; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 332 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
#################################################
# Section 8.4  A Two-Sided Test of a Normal Mean
#################################################

library(LearnBayes)

 weights=c(182, 172, 173, 176, 176, 180, 173, 174, 179, 175)
 data=c(mean(weights),length(weights),3)
 t=c(.5,1,2,4,8)
 mnormt.twosided(170,.5,t,data)