Learn R Programming

bda (version 1.1.1-7)

getbdata: Birth data anaylysis.

Description

To compute the density function of various variables for birth data.

Usage

getbdata(x,type='head',gender="male",location="rc",filter=FALSE)

Arguments

x
Data frame of the birth data.
type
The variable whose density is to be computed: length, weight, head (or ofc), chest, mother.s.age, gestation (or ga).
gender
Gender of the births based on which the density is to be computed: "male" (default),"female".
location
Location of the births based on which the density to be computed: "r","u","zz","bz","sz","rc".
filter
Filter the data? Default: FALSE. If "TRUE", the data will be filtered such that the analysis will be performed based on those with GA>=38, singleton livebirth, not zero head, mother's age not missing.

See Also

birth,smkde,histospline.

Examples

Run this code
data(birth)
getbdata(birth,type='head')

Run the code above in your browser using DataLab