Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying a range in the lookback #8

Open
jeremysze opened this issue Apr 15, 2020 · 0 comments
Open

Specifying a range in the lookback #8

jeremysze opened this issue Apr 15, 2020 · 0 comments

Comments

@jeremysze
Copy link

My panel data is not fully balanced and I wanted to select controls in the lookback between 1 to 6 months. So I was trying to specify a range in the look back and the reduce_data function appears to work. However, I was wondering if this is a functionality that was designed into your function?

reduced_data <- reduce_data(data = rem_data, treat = "treat",
                            tm = "BMI_time", entry = "entry_m_time",
                            id = "newid", lookback = c(1:6))

The function worked but I have this warning:

Warning message in if ((lookback == floor(lookback)) == FALSE) {:
"the condition has length > 1 and only the first element will be used"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant