Package 'datastat'

Title: Dataset for Statistical Analysis
Description: Data are essential in statistical analysis. This data package consists of four datasets for descriptive statistics, two datasets for statistical hypothesis testing, and two datasets for regression analysis. All of the datasets are based on Rattanalertnusorn, A. (2024) <https://www.researchgate.net/publication/371944275_porkaermxarlaeakarprayuktchingan_R_and_its_applications>.
Authors: Atchanut Rattanalertnusorn [aut, cre]
Maintainer: Atchanut Rattanalertnusorn <[email protected]>
License: CC0
Version: 0.1.0
Built: 2024-12-14 06:12:52 UTC
Source: https://github.com/cran/datastat

Help Index


Data set number 1 for descriptive statistics

Description

A dataset of the final scores of 10 students

Usage

data51

Format

data51 is a data frame with 10 rows and 1 column:

x

Final score of each student

Source

<https://www.researchgate.net/publication/371944275_porkaermxarlaeakarprayuktchingan_R_and_its_applications>

References

Rattanalertnusorn, A. (2024). R and Its Application. TPN Press Ltd., Part. ISBN: 978-616-603-060-0. pp.122-123.

Examples

data51

Data set number 2 for descriptive statistics

Description

A dataset of midterm scores from 5 students. Each student took the exam two subjects: Thai and English

Usage

data52

Format

data52 is a data frame with 5 rows and 2 columns:

x

Midterm score of English subject

y

Midterm score of Thai subject

Source

<https://www.researchgate.net/publication/371944275_porkaermxarlaeakarprayuktchingan_R_and_its_applications>

References

Rattanalertnusorn, A. (2024). R and Its Application. TPN Press Ltd., Part. ISBN: 978-616-603-060-0. pp.125-128.

Examples

data52

Data set number 3 for descriptive statistics

Description

A dataset of the weights of 10 persons measure in kilogram

Usage

data53

Format

data53 is a data frame with 10 rows and 1 column:

x

Weight of each person

Source

<https://www.researchgate.net/publication/371944275_porkaermxarlaeakarprayuktchingan_R_and_its_applications>

References

Rattanalertnusorn, A. (2024). R and Its Application. TPN Press Ltd., Part. ISBN: 978-616-603-060-0. pp.129-130.

Examples

data53

Data set number 4 for descriptive statistics

Description

A dataset of five students. Each student has name, age and gender

Usage

data54

Format

data54 is a data frame with 5 rows and 3 columns:

name

Student name

age

Student age

gender

Student gender

Source

<https://www.researchgate.net/publication/371944275_porkaermxarlaeakarprayuktchingan_R_and_its_applications>

References

Rattanalertnusorn, A. (2024). R and Its Application. TPN Press Ltd., Part. ISBN: 978-616-603-060-0. pp.147.

Examples

data54

Data set for statistical hypothesis testing

Description

A dataset of the weight of two car types (type A and type B). The weight measured in kilograms

Usage

data81

Format

data81 is a data frame with 10 rows and 2 columns:

wtcar.a

Weight of car type A

wtcar.b

Weight of car type B

Source

<https://www.researchgate.net/publication/371944275_porkaermxarlaeakarprayuktchingan_R_and_its_applications>

References

Rattanalertnusorn, A. (2024). R and Its Application. TPN Press Ltd., Part. ISBN: 978-616-603-060-0. pp.237.

Examples

data81

Data set for the paired t-test

Description

A dataset of the pre-test and post-test scores

Usage

data82

Format

data82 is a data frame with 15 rows and 2 columns:

pretest

The pre-test score

posttest

The post-test score

Source

<https://www.researchgate.net/publication/371944275_porkaermxarlaeakarprayuktchingan_R_and_its_applications>

References

Rattanalertnusorn, A. (2024). R and Its Application. TPN Press Ltd., Part. ISBN: 978-616-603-060-0. pp.247.

Examples

data82

Data set for simple linear regression model

Description

A dataset of the advertising costs and sales

Usage

data91

Format

data91 is a data frame with 9 rows and 2 columns:

Advcosts

The advertising costs are measured in a hundred thousand baht

Sales

The sales are measured in a million bath

Source

<https://www.researchgate.net/publication/371944275_porkaermxarlaeakarprayuktchingan_R_and_its_applications>

References

Rattanalertnusorn, A. (2024). R and Its Application. TPN Press Ltd., Part. ISBN: 978-616-603-060-0. pp.265-266.

Examples

data91

Data set for multiple linear regression model

Description

A dataset of salary, overtime, and savings per month of 12 employees

Usage

data92

Format

data91 is a data frame with 12 rows and 3 columns:

x1

The salary of employees is measured in baht

x2

The overtime of employees is measured in baht

y

The savings per month of employees are measured in baht

Source

<https://www.researchgate.net/publication/371944275_porkaermxarlaeakarprayuktchingan_R_and_its_applications>

References

Rattanalertnusorn, A. (2024). R and Its Application. TPN Press Ltd., Part. ISBN: 978-616-603-060-0. pp.275.

Examples

data92