Skip to content

Commit

Permalink
Merge pull request #4 from SamT123/master
Browse files Browse the repository at this point in the history
Fix bug in calculating residuals
  • Loading branch information
shwilks authored Feb 27, 2024
2 parents 0b7e44e + 0235d03 commit eff5ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ablandscape_fit.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ ablandscape.fit <- function(
)

# Get residuals
fit_residuals <- fit$logtiters - fit$fitted.values
fit_residuals <- t(t(fit$logtiters) - fit$fitted.values)

fit$residuals <- fit_residuals
fit$residuals[fit$morethans | fit$lessthans] <- NA
Expand Down

0 comments on commit eff5ff6

Please sign in to comment.