simstudy
simstudy copied to clipboard
Error checking genSpline generates unwanted warning
In the unit testing the following test (properly) throws an error, but also throws a warning that causes problems. We need to remove the warning.
expect_error(genSpline( dt = dt, newvar = "weight",
predictor = "x1", theta = theta1,
knots = knots, degree = 3, newrange = "1;a",
noise.var = .025), regexp = "Non-numbers entered in range")
It is currently commented out.