Displaying 1 result from an estimated 1 matches for "xbabies".
Did you mean:
babies
2012 Aug 07
2
Passing arguments to a function within a function ...
...ow how to specify its arguments
Here are example data and the functions:
########################################################
## Example data frame with population, concentration and cases ##
x = data.frame(Name = LETTERS[1:10],
pop=sample(x=1000:10000,size=10),
Xbabies = 0.106,
Xkids = 0.232,
Xteens = 0.375,
Xadults = 0.235,
Xaged = 0.52,
cases = sample(x=100:500,size=10),
conc = sample(x=20:125,size=10)
)
## Two of the published dose-response relationships...