Displaying 1 result from an estimated 1 matches for "yy_ext".
Did you mean:
my_ext
2008 Jun 05
1
R-code embedded in VBE -- Type mismatch errors
...yy = intercept+slope*xx
fitted_model = exp(yy)+1
# Add a tail factor if max_settle_time > no_of_years
if (max_settle_time > no_of_years){
xx_ext = c(no_of_years:max_settle_time)
yy_ext = intercept + slope*xx_ext
}
# the reason for a double if is that the else condition
doesn't seem to work... I'm sure it's just me
if (max_settle_time <= no_of_years) yy_ext = 0
tail_factor=prod(exp(yy_ext)+1...