Using the table( ) command shows that, in this sample, 36/50=.72 of the infants walked by 1 year. The variable 'walkby12' that takes on the value of 1 for infants who walked by 1 year of age, and 0 for infants who did not start walking until after they were a year old. By default, R will perform a two-tailed test. ![]() ![]() For example, in the Age at Walking example, let's test the null hypothesis that 50% of infants start walking by 12 months of age. ![]() The prop.test( ) command performs one- and two-sample tests for proportions, and gives a confidence interval for a proportion as part of the output. ![]() 2.3 z-tests for proportions, categorical outcomes
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |