Watts-College / cpp-529-spr-2022

https://watts-college.github.io/cpp-529-spr-2022/
0 stars 2 forks source link

Final Dashboard: Drivers of Change Error #29

Open JPRayes opened 2 years ago

JPRayes commented 2 years ago

I added all of the covariate labels to the "Drivers of Change" portion of the dashboard.

image

When I run the document, I get an error:

image

Anybody else having this issue? I check, double-checked, and triple-checked to make sure my code was straight, but I could be going crazy at this point.

JasonSills commented 2 years ago

Hi @JPRayes,

First, double check your variable names in button.values. You have mhv.2000 and mhv.2010. What were the names you assigned them when you built your data set? It's likely mhv.00 and mhv.10. If this does not help you'll want to post your code from the following section labeled, "Predicting Change". Please post the code, rather than images.

dholford commented 2 years ago

@JPRayes

You may also want to try changing your pre-selected from the covariate labels to the covariates.

So "White, non-Hispanic" would become "pnhwht12" and make that same switch for the rest.

You probably already fixed it, but just in case.