hi im trying to do a z test on R but not getting any value for z. may i pls be guided to it? thank you!
Can you post code, not a screenshot? This includes an example of the Babies
dataset.
ok. these are variations i tried:
z.test(Babies, alternative="greater", mu=3.2627500, stdev=0.5423668)
z.test(Babies, alternative="less", mu=3.2627500, stdev=0.5423668)
z.test(Babies, alternative="two.sided", mu=3.2627500, stdev=0.5423668)
thank you!
Babies dataset
LENGTH | HEAD | WEIGHT |
---|---|---|
47.00 | 32.00 | 2.73 |
48.00 | 35.50 | 3.13 |
49.00 | 36.00 | 3.41 |
53.00 | 41.70 | 3.39 |
53.00 | 35.00 | 3.43 |
49.00 | 33.00 | 3.03 |
50.00 | 36.00 | 3.99 |
50.00 | 34.50 | 3.14 |
49.00 | 32.00 | 3.08 |
58.00 | 37.00 | 4.38 |
58.50 | 36.50 | 3.75 |
53.00 | 35.50 | 3.22 |
57.00 | 35.50 | 4.30 |
47.50 | 32.50 | 2.22 |
49.00 | 33.00 | 3.07 |
45.50 | 32.50 | 2.50 |
50.00 | 35.00 | 3.48 |
51.00 | 34.50 | 2.98 |
47.00 | 35.50 | 2.83 |
47.50 | 36.00 | 3.18 |
Can you make that reproducible? You can post the output of dput(head(Babies))
.
Can you also list the libraries you are using?
library(pastecs)
library(BSDA) # just guessing this one - but I don't think I am right.
Babies <- tibble::tribble(
~LENGTH, ~HEAD, ~WEIGHT,
47, 32, 2.73,
48, 35.5, 3.13,
49, 36, 3.41,
53, 41.7, 3.39,
53, 35, 3.43,
49, 33, 3.03,
50, 36, 3.99,
50, 34.5, 3.14,
49, 32, 3.08,
58, 37, 4.38,
58.5, 36.5, 3.75,
53, 35.5, 3.22,
57, 35.5, 4.3,
47.5, 32.5, 2.22,
49, 33, 3.07,
45.5, 32.5, 2.5,
50, 35, 3.48,
51, 34.5, 2.98,
47, 35.5, 2.83,
47.5, 36, 3.18
)
Read the article.
ok thank you. i figured it out already. thanks again!
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.