health_status: Check your health status

Description Usage Arguments Value Author(s) Examples

Description

This function helps you to evaluate your health status

Usage

1
2
health_status(data = annual_aqi, cbsa, year, smoke = 1, exercise = 1,
  gene = 1)

Arguments

data

Dataset to use for analysing health status.

cbsa

A CBSA in US.

year

A numeric. Year in which you want to analyze the air quality.

smoke

Whether people smoke or not, equal to -1 if you smoke, else is 1. Default is 1.

exercise

Whether people has certain exercise every day, equal to -1 if you don't, else is 1. Default is 1.

gene

Whether people has certain gene may cause disease happen,equal to -1 for bad gene or 1 for good gene. Default is 1.

Value

Return which kind of health status you are in. Healthy, sub healthy or unhealthy?

Author(s)

Yiquan Xu

Examples

1
health_status(cbsa = "Ames, IA", year = 2008)

PHP2560-Statistical-Programming-R/r-package-beautiful-day documentation built on May 30, 2019, 3:50 p.m.