Dear Jeffrey,
when running render_book("index.Rmd") the compilation runs smoothly up until the stage processing file: child-labor.Rmd where it stops as it cannot find the weight object:
Quitting from lines 54-57 (child-labor.Rmd)
Error in eval(extras, data, env) : object 'weight' not found
Calls: local ... eval -> <Anonymous> -> model.frame.default -> eval -> eval
Execution halted
Error in Rscript_render(f, render_args, render_meta) :
Failed to compile child-labor.Rmd
I believe this is because the variable is not created in child_labour.rda since data("child_labor", package = "masteringmetrics") yields
head(child_labor)
yob year sob indEduc lnwkwage cl7 cl8 cl9
1 1907 1950 1 4 3.885355 FALSE FALSE FALSE
2 1908 1950 1 7 4.251239 FALSE FALSE FALSE
3 1908 1950 1 10 4.232931 FALSE FALSE FALSE
4 1908 1950 1 8 1.570217 FALSE FALSE FALSE
5 1908 1950 1 8 4.230477 FALSE FALSE FALSE
6 1907 1950 22 10 4.114964 TRUE FALSE FALSE
while the original Stata file http://masteringmetrics.com/wp-content/uploads/2015/02/AA_small.dta_.zip does contain weight.
Could you look into this issue please? Thanks!
Regards,
Michael
Dear Jeffrey,
when running
render_book("index.Rmd")the compilation runs smoothly up until the stageprocessing file: child-labor.Rmdwhere it stops as it cannot find theweightobject:I believe this is because the variable is not created in
child_labour.rdasincedata("child_labor", package = "masteringmetrics")yieldswhile the original Stata file http://masteringmetrics.com/wp-content/uploads/2015/02/AA_small.dta_.zip does contain
weight.Could you look into this issue please? Thanks!
Regards,
Michael