maward-sci / c_scenarios

1 stars 0 forks source link

logistic equation is only correct for scale = 1 #18

Closed cdibble closed 3 months ago

cdibble commented 3 months ago
seagrass_area_m2 <- asymptote / (1 + exp((midpoint - years) * scale))

Shouldn't this line be something like...

seagrass_area_m2 <- asymptote / (1 + exp(-1*scale(years - midpoint)))

???

cdibble commented 3 months ago

nvm I realized my own typo was the issue