Nothing
MicSim 4.0.0 replaces the simulation engine and adds an object-based interface for building, checking and running models. Scripts written for 3.0.0 still run through the classic functions, which are now deprecated. Simulated results differ from 3.0.0, also with the same seed due to numerous bug fixes (see "Changes to simulated results").
state_space() declares the state variables, transition() and transitions() declare the transitions with their rate functions (supplied as functions, not by name), and move() and moves_of() select transitions that change one state variable. micsim_model() combines them with the population, immigrants, simulation horizon, maximum age and MicSim version. update() changes parts of a model, validate() checks it and simulate() runs it. The workflow supports the native pipe (|>).add_subsystem(): fertility() creates newborns, whose states are set with newborn_rule() and from_mother(), and school_enrolment() moves school entry to a fixed calendar month. The subsystem approach will be the backbone of any future extensions of MicSim.simulate() returns a micsim_result with the simulated population, the model, the seed and run diagnostics. It has print(), summary(), as.data.frame(), as_long() and as_wide() methods. reestimate() estimates the transition rates back from the result and compares them with the supplied rates and plot() shows the comparison. simulate() does this by default (reestimate = FALSE turns it off).?MicSim-concepts, explains the terms used throughout the documentation.micSim(), micSimParallel(), buildTransitionMatrix(), convertToLongFormat(), convertToWideFormat() and getInDays_my(). They remain exported and run on the new engine, but show a message once per R session naming the replacement (micsim_model(), add_subsystem() and simulate(); as_long() and as_wide(); getFirstDayOfMonth()). Set options(MicSim.show_deprecation = FALSE) to turn the messages off. They will be removed in a future release.NA and are rejected as simulation inputs. Rate functions still receive age, calendar time and duration in years of 365.25 days.simulate() and micSim() draw one from R's current random-number state, so set.seed() before the call still makes a run reproducible; simulate() records the seed in its result. Apart from that one draw, the caller's random-number state, including the generator kind, is left unchanged.convertToLongFormat() no longer reads stateSpace, simHorizon and other objects from the global environment. micSim() stores what the conversion needs with its result. Pass stateSpace to give the state-variable columns their names.absStates argument in a different order no longer mislabels them. absStates is ignored.micSimParallel() splits the population into exactly cores parts, and the identifiers of newborns no longer collide with supplied identifiers.fertTr patterns that match no transition, and duration-dependent rates on transitions that change several state variables at once.currDate becomes yyyymmdd in getInDays(), and daysSince01011970 becomes days in getYear(), getMonth(), getDay() and getInDateFormat(). Calls that pass the arguments by position are unaffected.micsim_model() uses max_age = 100 by default.simulate() warns when it differs from the installed version.parallel package. snowfall and rlecuyer are no longer needed. R >= 4.1 is required.[1] Howard Hinnant, chrono-Compatible Low-Level Date Algorithms, page dated 2021-09-01: https://howardhinnant.github.io/date_algorithms.html. MicSim adapts days_from_civil and civil_from_days.
yyyymmdd, e.g. 20221017 for October 17th, 2022. New functions have been designed and included into the package facilitating the handling of dates within the simulation.micSim function has been extended by another more complex example to highlight the versality of the package.micSim or micSimParallel function).micSimParallel.rlecuyer.micSim that it can also deal with a single life course.convertToLongFormat leading to wrong ordering of the event sequences of individuals born during simulation.convertToWideFormat, related to request for NA values.buildTransitionMatrix can handle covariate dependent mortality rates of every kind, e.g., mortality rates depending on health status and gender.convertToWideFormat to convert simulation output into wide format.micSim function: Children who are part of the base population had been enrolled one year to late. Now, enrollment dates are OK.micSim function to handle deterministc events (marked by Inf rates).buildTransitionMatrix.buildTransitionMatrix to facilitate using transition rates which depend on covariates such as gender and marital status.buildTransitionMatrix.micSim occuring if the simulation is asked not to produce newborns (concerns argument fertTr=c()).Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.