Skip to content

Practical 8 Stochastic IBM Ab levels can go negative #10

Description

@kaitejohnson

Problem

In the solutions code we have Ab waning as

antib[i] <- antib[i] - wane * dt

And antib starts at 0.

antib <- rep(0, n) # Antibody concentration for each individual

  1. I don't think this is biologically plausible, but lmk if that was meant to be log Abs...
  2. As such, vaccination can have no/minimal effect if Ab levels are well below 1.

Suggested fix
Enforce Ab levels to be positive by adding max(0, new Ab level)

antib[i] <- max(0, antib[i] - wane * dt)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions