Skip to content

variable "weight" not contained in child_labor.rda #3

Description

@linc0380

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions