Learn R Programming

dauR (version 1.0)

twoway: This dataset illustrates the application of two-way ANOVA

Description

A researcher seeks to investigate whether an individual’s life satisfaction (happiness) is associated with gender and working status. The variable Gender includes two categories: Male and Female, while Working_Status comprises three categories: Self-employed, Student and Job. A random sample of ten participants was selected from each category. Life satisfaction was measured on a scale ranging from 0 to 100, with higher scores indicating greater happiness. Therefore, the dependent variable is life satisfaction (happiness), and the independent variables are gender and working status.

Usage

twoway

Arguments

Format

A data frame with 60 rows and 3 variables:

Happiness

Measurement of happiness

Gender

Gender of individuals

Working_Status

Working status of individuals. The classes are "Job", "Self_employed" and "Student"

Examples

Run this code
data(twoway, package = "dauR")
head(twoway)

Run the code above in your browser using DataLab