From noreply at r-forge.r-project.org Sun Mar 1 04:40:13 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Sun, 1 Mar 2015 04:40:13 +0100 (CET) Subject: [Pomp-commits] r1118 - pkg/pomp pkg/pomp/inst/include pkg/pomp/src www/vignettes Message-ID: <20150301034013.BAD50183C1E@r-forge.r-project.org> Author: kingaa Date: 2015-03-01 04:40:12 +0100 (Sun, 01 Mar 2015) New Revision: 1118 Added: www/vignettes/ecology.csl Modified: pkg/pomp/DESCRIPTION pkg/pomp/inst/include/pomp.h pkg/pomp/src/pomp.h Log: - rearrange pomp.h Modified: pkg/pomp/DESCRIPTION =================================================================== --- pkg/pomp/DESCRIPTION 2015-02-28 17:56:04 UTC (rev 1117) +++ pkg/pomp/DESCRIPTION 2015-03-01 03:40:12 UTC (rev 1118) @@ -1,8 +1,8 @@ Package: pomp Type: Package Title: Statistical Inference for Partially Observed Markov Processes -Version: 0.62-1 -Date: 2015-02-27 +Version: 0.62-2 +Date: 2015-02-28 Authors at R: c(person(given=c("Aaron","A."),family="King", role=c("aut","cre"),email="kingaa at umich.edu"), person(given=c("Edward","L."),family="Ionides",role=c("aut")), Modified: pkg/pomp/inst/include/pomp.h =================================================================== --- pkg/pomp/inst/include/pomp.h 2015-02-28 17:56:04 UTC (rev 1117) +++ pkg/pomp/inst/include/pomp.h 2015-03-01 03:40:12 UTC (rev 1118) @@ -8,201 +8,9 @@ #include #include -// FACILITIES FOR EXTRACTING R OBJECTS FROM THE 'USERDATA' SLOT -const SEXP get_pomp_userdata (const char *name); -const int *get_pomp_userdata_int (const char *name); -const double *get_pomp_userdata_double (const char *name); - // FACILITY FOR EVALUATING A SET OF PERIODIC BSPLINE BASIS FUNCTIONS void periodic_bspline_basis_eval (double x, double period, int degree, int nbasis, double *y); -// PROTOTYPE FOR PARAMETER TRANSFORMATION FUNCTION. -typedef void pomp_transform_fn (double *pt, double *p, int *parindex); - -// PROTOTYPE FOR STOCHASTIC SIMULATION ALGORITHM REACTION-RATE FUNCTION, AS USED BY "GILLESPIE.SIM": -typedef double pomp_ssa_rate_fn(int j, double t, const double *x, const double *p, - int *stateindex, int *parindex, int *covindex, - int ncovar, double *covars); -// Description: -// on input: -// j = integer specifying the number of the reaction whose rate is desired -// t = time at which the rates are to be evaluated -// x = vector of state variables -// p = vector of parameters -// stateindex = pointer to vector of integers pointing to the states in 'x' in the order specified by -// the 'statenames' argument of 'SSA.simulator' -// parindex = pointer to vector of integers pointing to the parameters in 'p' in the order specified by -// the 'paramnames' argument of 'SSA.simulator' -// covindex = pointer to vector of integers pointing to the covariates in 'covars' in the order -// specified by the 'covarnames' argument of 'SSA.simulator' -// ncovars = number of covariates -// covars = pointer to a vector containing the values of the covariates at time t, as interpolated -// from the covariate table supplied to 'SSA.simulator' -// returns the rate of the j-th reaction - -// PROTOTYPE FOR ONE-STEP SIMULATOR, AS USED BY "EULER.SIM" AND "ONESTEP.SIM": -typedef void pomp_onestep_sim(double *x, const double *p, - const int *stateindex, const int *parindex, const int *covindex, - int ncovars, const double *covars, - double t, double dt); -// Description: -// on input: -// x = pointer to state vector -// p = pointer to parameter vector -// stateindex = pointer to vector of integers pointing to the states in 'x' in the order specified by -// the 'statenames' argument of 'euler.simulator' -// parindex = pointer to vector of integers pointing to the parameters in 'p' in the order specified by -// the 'paramnames' argument of 'euler.simulator' -// covindex = pointer to vector of integers pointing to the covariates in 'covars' in the order -// specified by the 'covarnames' argument of 'euler.simulator' -// ncovars = number of covariates -// covars = pointer to a vector containing the values of the covariates at time t, as interpolated -// from the covariate table supplied to 'euler.simulator' -// t = time at the beginning of the Euler step -// dt = size (duration) of the Euler step -// on output: -// x = contains the new state vector (i.e., at time t+dt) -// -// NB: There is no need to call GetRNGstate() or PutRNGstate() in the body of the user-defined function. -// The RNG is initialized before any call to this function, and the RNG state is written afterward. -// Inclusion of these calls in the user-defined function may result in significant slowdown. - - -// PROTOTYPE FOR ONE-STEP LOG PROBABILITY DENSITY FUNCTION, AS USED BY "ONESTEP.DENS": -typedef void pomp_onestep_pdf(double *f, - double *x1, double *x2, double t1, double t2, const double *p, - const int *stateindex, const int *parindex, const int *covindex, - int ncovars, const double *covars); -// Description: -// on input: -// x1 = pointer to state vector at time t1 -// x2 = pointer to state vector at time t2 -// t1 = time corresponding to x1 -// t2 = time corresponding to x2 -// p = pointer to parameter vector -// stateindex = pointer to vector of integers indexing the states in 'x' in the order specified by -// the 'statenames' argument of 'euler.density' -// parindex = pointer to vector of integers indexing the parameters in 'p' in the order specified by -// the 'paramnames' argument of 'euler.density' -// covindex = pointer to vector of integers indexing the parameters in 'covar'' in the order specified by -// the 'covarnames' argument of 'euler.density' -// ncovars = number of covariates -// covars = pointer to a vector containing the values of the covariates at time t, as interpolated -// from the covariate table supplied to 'euler.density' -// on output: -// f = pointer to the probability density (a single scalar) - -// PROTOTYPE FOR DETERMINISTIC SKELETON EVALUATION -typedef void pomp_skeleton (double *f, double *x, double *p, - int *stateindex, int *parindex, int *covindex, - int ncovars, double *covars, double t); - -// Description: -// on input: -// x = pointer to state vector at time t -// p = pointer to parameter vector -// stateindex = pointer to vector of integers indexing the states in 'x' in the order specified by -// the 'statenames' slot -// parindex = pointer to vector of integers indexing the parameters in 'p' in the order specified by -// the 'paramnames' slot -// covindex = pointer to vector of integers indexing the parameters in 'covar'' in the order specified by -// the 'covarnames' slot -// ncovars = number of covariates -// covars = pointer to a vector containing the values of the covariates at time t, as interpolated -// from the covariate table supplied to 'pomp.skeleton' -// t = time at the beginning of the Euler step -// on output: -// f = pointer to value of the map or vectorfield (a vector of the same length as 'x') - -// PROTOTYPE FOR MEASUREMENT MODEL SIMULATION -typedef void pomp_measure_model_simulator (double *y, double *x, double *p, - int *obsindex, int *stateindex, int *parindex, int *covindex, - int ncovars, double *covars, double t); -// Description: -// on input: -// x = pointer to state vector at time t -// p = pointer to parameter vector -// obsindex = pointer to vector of integers indexing the variables in 'y' in the order specified by -// the 'obsnames' slot -// stateindex = pointer to vector of integers indexing the states in 'x' in the order specified by -// the 'statenames' slot -// parindex = pointer to vector of integers indexing the parameters in 'p' in the order specified by -// the 'paramnames' slot -// covindex = pointer to vector of integers indexing the parameters in 'covar'' in the order specified by -// the 'covarnames' slot -// ncovars = number of covariates -// covars = pointer to a vector containing the values of the covariates at time t, as interpolated -// from the covariate table supplied to 'pomp.skeleton' -// t = time at the beginning of the Euler step -// on output: -// y = pointer to vector containing simulated observations (length = nobs = nrow(data)) -// -// NB: There is no need to call GetRNGstate() or PutRNGstate() in the body of the user-defined function. -// The RNG is initialized before any call to this function, and the RNG state is written afterward. -// Inclusion of these calls in the user-defined function may result in significant slowdown. - - -// PROTOTYPE FOR MEASUREMENT MODEL DENSITY EVALUATOR -typedef void pomp_measure_model_density (double *lik, double *y, double *x, double *p, int give_log, - int *obsindex, int *stateindex, int *parindex, int *covindex, - int ncovars, double *covars, double t); -// Description: -// on input: -// y = pointer to vector of observables at time t -// x = pointer to state vector at time t -// p = pointer to parameter vector -// give_log = should the log likelihood be returned? -// obsindex = pointer to vector of integers indexing the variables in 'y' in the order specified by -// the 'obsnames' slot -// stateindex = pointer to vector of integers indexing the states in 'x' in the order specified by -// the 'statenames' slot -// parindex = pointer to vector of integers indexing the parameters in 'p' in the order specified by -// the 'paramnames' slot -// covindex = pointer to vector of integers indexing the parameters in 'covar'' in the order specified by -// the 'covarnames' slot -// ncovars = number of covariates -// covars = pointer to a vector containing the values of the covariates at time t, as interpolated -// from the covariate table supplied to 'pomp.skeleton' -// t = time at the beginning of the Euler step -// on output: -// lik = pointer to scalar containing (log) likelihood - -// PROTOTYPE FOR PRIOR SIMULATION -typedef void pomp_rprior (double *p, int *parindex); -// Description: -// on input: -// p = pointer to parameter vector -// parindex = pointer to vector of integers indexing the parameters in 'p' in the order specified by -// the 'paramnames' slot -// on output: -// p = pointer to vector containing draws from the prior -// -// NB: There is no need to call GetRNGstate() or PutRNGstate() in the body of the user-defined function. -// The RNG is initialized before any call to this function, and the RNG state is written afterward. -// Inclusion of these calls in the user-defined function may result in significant slowdown. - -// PROTOTYPE FOR PRIOR DENSITY EVALUATION -typedef void pomp_dprior (double *lik, double *p, int give_log, int *parindex); -// Description: -// on input: -// p = pointer to parameter vector -// give_log = should the log likelihood be returned? -// parindex = pointer to vector of integers indexing the parameters -// in 'p' in the order specified by the 'paramnames' slot -// on output: -// lik = pointer to vector containing likelihoods - -// UTILITY FOR EXPONENTIAL/GEOMETRIC RATE CONVERSION -// This function computes r such that if -// N ~ geometric(prob=1-exp(-r dt)) and T ~ exponential(rate=R), -// then E[N dt] = E[T] -// i.e., the rate r for an Euler process that gives the same -// expected waiting time as the exponential process it approximates. -// In particular r -> R as dt -> 0. -static R_INLINE double exp2geom_rate_correction (double R, double dt) { - return (dt > 0) ? log(1.0+R*dt)/dt : R; -} - // UTILITY FOR GAMMA WHITENOISE // This function draws a random increment of a gamma whitenoise process. // This will have expectation=dt and variance=(sigma^2*dt) @@ -379,6 +187,17 @@ for (i = 0; i < n; i++) xt[i] /= sum; } +// UTILITY FOR EXPONENTIAL/GEOMETRIC RATE CONVERSION +// This function computes r such that if +// N ~ geometric(prob=1-exp(-r dt)) and T ~ exponential(rate=R), +// then E[N dt] = E[T] +// i.e., the rate r for an Euler process that gives the same +// expected waiting time as the exponential process it approximates. +// In particular r -> R as dt -> 0. +static R_INLINE double exp2geom_rate_correction (double R, double dt) { + return (dt > 0) ? log(1.0+R*dt)/dt : R; +} + static R_INLINE double rbetabinom (double size, double prob, double theta) { return rbinom(size,rbeta(prob*theta,(1.0-prob)*theta)); } @@ -405,4 +224,188 @@ return (give_log) ? f : exp(f); } +// FACILITIES FOR EXTRACTING R OBJECTS FROM THE 'USERDATA' SLOT +const SEXP get_pomp_userdata (const char *name); +const int *get_pomp_userdata_int (const char *name); +const double *get_pomp_userdata_double (const char *name); + +// THE FOLLOWING ARE C PROTOTYPES FOR COMPONENTS OF POMP MODELS. +// THEY CANNOT BE USED WITHIN C SNIPPETS. + +// prototype for stochastic simulation algorithm reaction-rate function, as used by "gillespie.sim": +typedef double pomp_ssa_rate_fn(int j, double t, const double *x, const double *p, + int *stateindex, int *parindex, int *covindex, + int ncovar, double *covars); +// Description: +// on input: +// j = integer specifying the number of the reaction whose rate is desired +// t = time at which the rates are to be evaluated +// x = vector of state variables +// p = vector of parameters +// stateindex = pointer to vector of integers pointing to the states in 'x' in the order specified by +// the 'statenames' argument of 'SSA.simulator' +// parindex = pointer to vector of integers pointing to the parameters in 'p' in the order specified by +// the 'paramnames' argument of 'SSA.simulator' +// covindex = pointer to vector of integers pointing to the covariates in 'covars' in the order +// specified by the 'covarnames' argument of 'SSA.simulator' +// ncovars = number of covariates +// covars = pointer to a vector containing the values of the covariates at time t, as interpolated +// from the covariate table supplied to 'SSA.simulator' +// returns the rate of the j-th reaction + +// prototype for one-step simulator, as used by "euler.sim" and "onestep.sim": +typedef void pomp_onestep_sim(double *x, const double *p, + const int *stateindex, const int *parindex, const int *covindex, + int ncovars, const double *covars, + double t, double dt); +// Description: +// on input: +// x = pointer to state vector +// p = pointer to parameter vector +// stateindex = pointer to vector of integers pointing to the states in 'x' in the order specified by +// the 'statenames' argument of 'euler.simulator' +// parindex = pointer to vector of integers pointing to the parameters in 'p' in the order specified by +// the 'paramnames' argument of 'euler.simulator' +// covindex = pointer to vector of integers pointing to the covariates in 'covars' in the order +// specified by the 'covarnames' argument of 'euler.simulator' +// ncovars = number of covariates +// covars = pointer to a vector containing the values of the covariates at time t, as interpolated +// from the covariate table supplied to 'euler.simulator' +// t = time at the beginning of the Euler step +// dt = size (duration) of the Euler step +// on output: +// x = contains the new state vector (i.e., at time t+dt) +// +// NB: There is no need to call GetRNGstate() or PutRNGstate() in the body of the user-defined function. +// The RNG is initialized before any call to this function, and the RNG state is written afterward. +// Inclusion of these calls in the user-defined function may result in significant slowdown. + + +// PROTOTYPE FOR ONE-STEP LOG PROBABILITY DENSITY FUNCTION, AS USED BY "ONESTEP.DENS": +typedef void pomp_onestep_pdf(double *f, + double *x1, double *x2, double t1, double t2, const double *p, + const int *stateindex, const int *parindex, const int *covindex, + int ncovars, const double *covars); +// Description: +// on input: +// x1 = pointer to state vector at time t1 +// x2 = pointer to state vector at time t2 +// t1 = time corresponding to x1 +// t2 = time corresponding to x2 +// p = pointer to parameter vector +// stateindex = pointer to vector of integers indexing the states in 'x' in the order specified by +// the 'statenames' argument of 'euler.density' +// parindex = pointer to vector of integers indexing the parameters in 'p' in the order specified by +// the 'paramnames' argument of 'euler.density' +// covindex = pointer to vector of integers indexing the parameters in 'covar'' in the order specified by +// the 'covarnames' argument of 'euler.density' +// ncovars = number of covariates +// covars = pointer to a vector containing the values of the covariates at time t, as interpolated +// from the covariate table supplied to 'euler.density' +// on output: +// f = pointer to the probability density (a single scalar) + +// prototype for deterministic skeleton evaluation +typedef void pomp_skeleton (double *f, double *x, double *p, + int *stateindex, int *parindex, int *covindex, + int ncovars, double *covars, double t); + +// Description: +// on input: +// x = pointer to state vector at time t +// p = pointer to parameter vector +// stateindex = pointer to vector of integers indexing the states in 'x' in the order specified by +// the 'statenames' slot +// parindex = pointer to vector of integers indexing the parameters in 'p' in the order specified by +// the 'paramnames' slot +// covindex = pointer to vector of integers indexing the parameters in 'covar'' in the order specified by +// the 'covarnames' slot +// ncovars = number of covariates +// covars = pointer to a vector containing the values of the covariates at time t, as interpolated +// from the covariate table supplied to 'pomp.skeleton' +// t = time at the beginning of the Euler step +// on output: +// f = pointer to value of the map or vectorfield (a vector of the same length as 'x') + +// prototype for measurement model simulation +typedef void pomp_measure_model_simulator (double *y, double *x, double *p, + int *obsindex, int *stateindex, int *parindex, int *covindex, + int ncovars, double *covars, double t); +// Description: +// on input: +// x = pointer to state vector at time t +// p = pointer to parameter vector +// obsindex = pointer to vector of integers indexing the variables in 'y' in the order specified by +// the 'obsnames' slot +// stateindex = pointer to vector of integers indexing the states in 'x' in the order specified by +// the 'statenames' slot +// parindex = pointer to vector of integers indexing the parameters in 'p' in the order specified by +// the 'paramnames' slot +// covindex = pointer to vector of integers indexing the parameters in 'covar'' in the order specified by +// the 'covarnames' slot +// ncovars = number of covariates +// covars = pointer to a vector containing the values of the covariates at time t, as interpolated +// from the covariate table supplied to 'pomp.skeleton' +// t = time at the beginning of the Euler step +// on output: +// y = pointer to vector containing simulated observations (length = nobs = nrow(data)) +// +// NB: There is no need to call GetRNGstate() or PutRNGstate() in the body of the user-defined function. +// The RNG is initialized before any call to this function, and the RNG state is written afterward. +// Inclusion of these calls in the user-defined function may result in significant slowdown. + + +// prototype for measurement model density evaluator +typedef void pomp_measure_model_density (double *lik, double *y, double *x, double *p, int give_log, + int *obsindex, int *stateindex, int *parindex, int *covindex, + int ncovars, double *covars, double t); +// Description: +// on input: +// y = pointer to vector of observables at time t +// x = pointer to state vector at time t +// p = pointer to parameter vector +// give_log = should the log likelihood be returned? +// obsindex = pointer to vector of integers indexing the variables in 'y' in the order specified by +// the 'obsnames' slot +// stateindex = pointer to vector of integers indexing the states in 'x' in the order specified by +// the 'statenames' slot +// parindex = pointer to vector of integers indexing the parameters in 'p' in the order specified by +// the 'paramnames' slot +// covindex = pointer to vector of integers indexing the parameters in 'covar'' in the order specified by +// the 'covarnames' slot +// ncovars = number of covariates +// covars = pointer to a vector containing the values of the covariates at time t, as interpolated +// from the covariate table supplied to 'pomp.skeleton' +// t = time at the beginning of the Euler step +// on output: +// lik = pointer to scalar containing (log) likelihood + +// prototype for prior simulation +typedef void pomp_rprior (double *p, int *parindex); +// Description: +// on input: +// p = pointer to parameter vector +// parindex = pointer to vector of integers indexing the parameters in 'p' in the order specified by +// the 'paramnames' slot +// on output: +// p = pointer to vector containing draws from the prior +// +// NB: There is no need to call GetRNGstate() or PutRNGstate() in the body of the user-defined function. +// The RNG is initialized before any call to this function, and the RNG state is written afterward. +// Inclusion of these calls in the user-defined function may result in significant slowdown. + +// prototype for prior density evaluation +typedef void pomp_dprior (double *lik, double *p, int give_log, int *parindex); +// Description: +// on input: +// p = pointer to parameter vector +// give_log = should the log likelihood be returned? +// parindex = pointer to vector of integers indexing the parameters +// in 'p' in the order specified by the 'paramnames' slot +// on output: +// lik = pointer to vector containing likelihoods + +// prototype for parameter transformation function. +typedef void pomp_transform_fn (double *pt, double *p, int *parindex); + #endif Modified: pkg/pomp/src/pomp.h =================================================================== --- pkg/pomp/src/pomp.h 2015-02-28 17:56:04 UTC (rev 1117) +++ pkg/pomp/src/pomp.h 2015-03-01 03:40:12 UTC (rev 1118) @@ -8,201 +8,9 @@ #include #include -// FACILITIES FOR EXTRACTING R OBJECTS FROM THE 'USERDATA' SLOT -const SEXP get_pomp_userdata (const char *name); -const int *get_pomp_userdata_int (const char *name); -const double *get_pomp_userdata_double (const char *name); - // FACILITY FOR EVALUATING A SET OF PERIODIC BSPLINE BASIS FUNCTIONS void periodic_bspline_basis_eval (double x, double period, int degree, int nbasis, double *y); -// PROTOTYPE FOR PARAMETER TRANSFORMATION FUNCTION. -typedef void pomp_transform_fn (double *pt, double *p, int *parindex); - -// PROTOTYPE FOR STOCHASTIC SIMULATION ALGORITHM REACTION-RATE FUNCTION, AS USED BY "GILLESPIE.SIM": -typedef double pomp_ssa_rate_fn(int j, double t, const double *x, const double *p, - int *stateindex, int *parindex, int *covindex, - int ncovar, double *covars); -// Description: -// on input: -// j = integer specifying the number of the reaction whose rate is desired -// t = time at which the rates are to be evaluated -// x = vector of state variables -// p = vector of parameters -// stateindex = pointer to vector of integers pointing to the states in 'x' in the order specified by -// the 'statenames' argument of 'SSA.simulator' -// parindex = pointer to vector of integers pointing to the parameters in 'p' in the order specified by -// the 'paramnames' argument of 'SSA.simulator' -// covindex = pointer to vector of integers pointing to the covariates in 'covars' in the order -// specified by the 'covarnames' argument of 'SSA.simulator' -// ncovars = number of covariates -// covars = pointer to a vector containing the values of the covariates at time t, as interpolated -// from the covariate table supplied to 'SSA.simulator' -// returns the rate of the j-th reaction - -// PROTOTYPE FOR ONE-STEP SIMULATOR, AS USED BY "EULER.SIM" AND "ONESTEP.SIM": -typedef void pomp_onestep_sim(double *x, const double *p, - const int *stateindex, const int *parindex, const int *covindex, - int ncovars, const double *covars, - double t, double dt); -// Description: -// on input: -// x = pointer to state vector -// p = pointer to parameter vector -// stateindex = pointer to vector of integers pointing to the states in 'x' in the order specified by -// the 'statenames' argument of 'euler.simulator' -// parindex = pointer to vector of integers pointing to the parameters in 'p' in the order specified by -// the 'paramnames' argument of 'euler.simulator' -// covindex = pointer to vector of integers pointing to the covariates in 'covars' in the order -// specified by the 'covarnames' argument of 'euler.simulator' -// ncovars = number of covariates -// covars = pointer to a vector containing the values of the covariates at time t, as interpolated -// from the covariate table supplied to 'euler.simulator' -// t = time at the beginning of the Euler step -// dt = size (duration) of the Euler step -// on output: -// x = contains the new state vector (i.e., at time t+dt) -// -// NB: There is no need to call GetRNGstate() or PutRNGstate() in the body of the user-defined function. -// The RNG is initialized before any call to this function, and the RNG state is written afterward. -// Inclusion of these calls in the user-defined function may result in significant slowdown. - - -// PROTOTYPE FOR ONE-STEP LOG PROBABILITY DENSITY FUNCTION, AS USED BY "ONESTEP.DENS": -typedef void pomp_onestep_pdf(double *f, - double *x1, double *x2, double t1, double t2, const double *p, - const int *stateindex, const int *parindex, const int *covindex, - int ncovars, const double *covars); -// Description: -// on input: -// x1 = pointer to state vector at time t1 -// x2 = pointer to state vector at time t2 -// t1 = time corresponding to x1 -// t2 = time corresponding to x2 -// p = pointer to parameter vector -// stateindex = pointer to vector of integers indexing the states in 'x' in the order specified by -// the 'statenames' argument of 'euler.density' -// parindex = pointer to vector of integers indexing the parameters in 'p' in the order specified by -// the 'paramnames' argument of 'euler.density' -// covindex = pointer to vector of integers indexing the parameters in 'covar'' in the order specified by -// the 'covarnames' argument of 'euler.density' -// ncovars = number of covariates -// covars = pointer to a vector containing the values of the covariates at time t, as interpolated -// from the covariate table supplied to 'euler.density' -// on output: -// f = pointer to the probability density (a single scalar) - -// PROTOTYPE FOR DETERMINISTIC SKELETON EVALUATION -typedef void pomp_skeleton (double *f, double *x, double *p, - int *stateindex, int *parindex, int *covindex, - int ncovars, double *covars, double t); - -// Description: -// on input: -// x = pointer to state vector at time t -// p = pointer to parameter vector -// stateindex = pointer to vector of integers indexing the states in 'x' in the order specified by -// the 'statenames' slot -// parindex = pointer to vector of integers indexing the parameters in 'p' in the order specified by -// the 'paramnames' slot -// covindex = pointer to vector of integers indexing the parameters in 'covar'' in the order specified by -// the 'covarnames' slot -// ncovars = number of covariates -// covars = pointer to a vector containing the values of the covariates at time t, as interpolated -// from the covariate table supplied to 'pomp.skeleton' -// t = time at the beginning of the Euler step -// on output: -// f = pointer to value of the map or vectorfield (a vector of the same length as 'x') - -// PROTOTYPE FOR MEASUREMENT MODEL SIMULATION -typedef void pomp_measure_model_simulator (double *y, double *x, double *p, - int *obsindex, int *stateindex, int *parindex, int *covindex, - int ncovars, double *covars, double t); -// Description: -// on input: -// x = pointer to state vector at time t -// p = pointer to parameter vector -// obsindex = pointer to vector of integers indexing the variables in 'y' in the order specified by -// the 'obsnames' slot -// stateindex = pointer to vector of integers indexing the states in 'x' in the order specified by -// the 'statenames' slot -// parindex = pointer to vector of integers indexing the parameters in 'p' in the order specified by -// the 'paramnames' slot -// covindex = pointer to vector of integers indexing the parameters in 'covar'' in the order specified by -// the 'covarnames' slot -// ncovars = number of covariates -// covars = pointer to a vector containing the values of the covariates at time t, as interpolated -// from the covariate table supplied to 'pomp.skeleton' -// t = time at the beginning of the Euler step -// on output: -// y = pointer to vector containing simulated observations (length = nobs = nrow(data)) -// -// NB: There is no need to call GetRNGstate() or PutRNGstate() in the body of the user-defined function. -// The RNG is initialized before any call to this function, and the RNG state is written afterward. -// Inclusion of these calls in the user-defined function may result in significant slowdown. - - -// PROTOTYPE FOR MEASUREMENT MODEL DENSITY EVALUATOR -typedef void pomp_measure_model_density (double *lik, double *y, double *x, double *p, int give_log, - int *obsindex, int *stateindex, int *parindex, int *covindex, - int ncovars, double *covars, double t); -// Description: -// on input: -// y = pointer to vector of observables at time t -// x = pointer to state vector at time t -// p = pointer to parameter vector -// give_log = should the log likelihood be returned? -// obsindex = pointer to vector of integers indexing the variables in 'y' in the order specified by -// the 'obsnames' slot -// stateindex = pointer to vector of integers indexing the states in 'x' in the order specified by -// the 'statenames' slot -// parindex = pointer to vector of integers indexing the parameters in 'p' in the order specified by -// the 'paramnames' slot -// covindex = pointer to vector of integers indexing the parameters in 'covar'' in the order specified by -// the 'covarnames' slot -// ncovars = number of covariates -// covars = pointer to a vector containing the values of the covariates at time t, as interpolated -// from the covariate table supplied to 'pomp.skeleton' -// t = time at the beginning of the Euler step -// on output: -// lik = pointer to scalar containing (log) likelihood - -// PROTOTYPE FOR PRIOR SIMULATION -typedef void pomp_rprior (double *p, int *parindex); -// Description: -// on input: -// p = pointer to parameter vector -// parindex = pointer to vector of integers indexing the parameters in 'p' in the order specified by -// the 'paramnames' slot -// on output: -// p = pointer to vector containing draws from the prior -// -// NB: There is no need to call GetRNGstate() or PutRNGstate() in the body of the user-defined function. -// The RNG is initialized before any call to this function, and the RNG state is written afterward. -// Inclusion of these calls in the user-defined function may result in significant slowdown. - -// PROTOTYPE FOR PRIOR DENSITY EVALUATION -typedef void pomp_dprior (double *lik, double *p, int give_log, int *parindex); -// Description: -// on input: -// p = pointer to parameter vector [TRUNCATED] To get the complete diff run: svnlook diff /svnroot/pomp -r 1118 From noreply at r-forge.r-project.org Sun Mar 1 04:40:57 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Sun, 1 Mar 2015 04:40:57 +0100 (CET) Subject: [Pomp-commits] r1119 - pkg/pomp/R pkg/pomp/inst pkg/pomp/inst/examples pkg/pomp/man pkg/pomp/tests www/content www/vignettes Message-ID: <20150301034058.0A337183C1E@r-forge.r-project.org> Author: kingaa Date: 2015-03-01 04:40:56 +0100 (Sun, 01 Mar 2015) New Revision: 1119 Removed: pkg/pomp/inst/examples/verhulst.R pkg/pomp/man/verhulst.Rd pkg/pomp/tests/verhulst.R pkg/pomp/tests/verhulst.Rout.save Modified: pkg/pomp/R/pomp-methods.R pkg/pomp/inst/NEWS pkg/pomp/inst/NEWS.Rd pkg/pomp/man/example.Rd pkg/pomp/tests/steps.R pkg/pomp/tests/steps.Rout.save www/content/NEWS.html www/vignettes/Makefile www/vignettes/index.html Log: - fix bug in partrans - remove 'verhulst' example - remove reference to 'advanced topics' vignette from webpage Modified: pkg/pomp/R/pomp-methods.R =================================================================== --- pkg/pomp/R/pomp-methods.R 2015-03-01 03:40:12 UTC (rev 1118) +++ pkg/pomp/R/pomp-methods.R 2015-03-01 03:40:56 UTC (rev 1119) @@ -28,8 +28,11 @@ partrans.internal <- function (object, params, dir = c("forward","inverse"), .getnativesymbolinfo = TRUE, ...) { if (!object at has.trans) return(params) + pompLoad(object) dir <- switch(match.arg(dir),forward=1L,inverse=-1L) - .Call(do_partrans,object,params,dir,.getnativesymbolinfo) + rv <- .Call(do_partrans,object,params,dir,.getnativesymbolinfo) + pompUnload(object) + rv } setMethod("partrans","pomp", @@ -310,4 +313,3 @@ invisible(NULL) } ) - Modified: pkg/pomp/inst/NEWS =================================================================== --- pkg/pomp/inst/NEWS 2015-03-01 03:40:12 UTC (rev 1118) +++ pkg/pomp/inst/NEWS 2015-03-01 03:40:56 UTC (rev 1119) @@ -1,5 +1,12 @@ _N_e_w_s _f_o_r _p_a_c_k_a_g_e '_p_o_m_p' +_C_h_a_n_g_e_s _i_n '_p_o_m_p' _v_e_r_s_i_o_n _0._6_2-_2: + + ? Bug fix in ?partrans? when transformations are implemented + using ?Csnippet?s. + + ? Remove the ?verhulst? example. + _C_h_a_n_g_e_s _i_n '_p_o_m_p' _v_e_r_s_i_o_n _0._6_2-_1: ? ?mif? now has the default value ?var.factor=1?. Since Modified: pkg/pomp/inst/NEWS.Rd =================================================================== --- pkg/pomp/inst/NEWS.Rd 2015-03-01 03:40:12 UTC (rev 1118) +++ pkg/pomp/inst/NEWS.Rd 2015-03-01 03:40:56 UTC (rev 1119) @@ -1,5 +1,11 @@ \name{NEWS} \title{News for package `pomp'} +\section{Changes in \pkg{pomp} version 0.62-2}{ + \itemize{ + \item Bug fix in \code{partrans} when transformations are implemented using \code{Csnippet}s. + \item Remove the \code{verhulst} example. + } +} \section{Changes in \pkg{pomp} version 0.62-1}{ \itemize{ \item \code{mif} now has the default value \code{var.factor=1}. Deleted: pkg/pomp/inst/examples/verhulst.R =================================================================== --- pkg/pomp/inst/examples/verhulst.R 2015-03-01 03:40:12 UTC (rev 1118) +++ pkg/pomp/inst/examples/verhulst.R 2015-03-01 03:40:56 UTC (rev 1119) @@ -1,1052 +0,0 @@ -require(pomp) - -dat <- '"time";"obs" -0,1;12476,9463966376 -0,2;10728,2422378213 -0,3;11398,0776385115 -0,4;12287,9670238814 -0,5;9012,37523428899 -0,6;8452,39753669702 -0,7;9704,7441287775 -0,8;8963,78424859124 -0,9;7829,66389402983 -1;7655,43492706061 -1,1;9309,04592787201 -1,2;7946,94132184123 -1,3;12108,6790891141 -1,4;14198,8647151384 -1,5;12927,6349958936 -1,6;16760,392326066 -1,7;11420,2006149761 -1,8;12798,0730275012 -1,9;11126,6555465736 -2;12268,966760168 -2,1;12889,140814792 -2,2;15717,842837741 -2,3;16476,4476949001 -2,4;13935,8229597974 -2,5;11274,5690427355 -2,6;12038,307109693 -2,7;16606,6627272479 -2,8;18198,4621610355 -2,9;17293,0054680149 -3;12523,849186477 -3,1;10313,2154355352 -3,2;9321,36401435259 -3,3;10799,8076207109 -3,4;10178,8374334587 -3,5;10045,1158889129 -3,6;11025,1281020003 -3,7;10169,2849982066 -3,8;8681,07015468727 -3,9;10732,796788325 -4;11036,7965511601 -4,1;11868,8147354882 -4,2;13625,7117038416 -4,3;11265,4772635401 -4,4;10141,6251649885 -4,5;10867,4578828498 -4,6;12785,2102229267 -4,7;11328,7462817584 -4,8;12631,6392612663 -4,9;11990,4877952651 -5;11707,021358751 -5,1;11467,9348717264 -5,2;11138,9674897421 -5,3;10828,0402696172 -5,4;10693,5753292854 -5,5;8070,20512554236 -5,6;7974,66822200446 -5,7;12124,8774955935 -5,8;10571,6897970932 -5,9;10408,3525902188 -6;9947,10683615605 -6,1;6761,26080348258 -6,2;7672,5615626058 -6,3;6700,89947532411 -6,4;9957,70955089761 -6,5;6984,15360685567 -6,6;8711,27713852725 -6,7;8845,09832738289 -6,8;6151,45542760105 -6,9;5909,9033310504 -7;5677,0462793129 -7,1;4685,26869088051 -7,2;6081,7401479026 -7,3;5140,81107070182 -7,4;5987,21047593122 -7,5;5958,39974011806 -7,6;5797,10888222691 -7,7;8969,30480435117 -7,8;7154,13424413776 -7,9;7001,79895206227 -8;6835,58722221115 -8,1;7178,49582555569 -8,2;7068,30093611577 -8,3;7477,13697964531 -8,4;8772,554138563 -8,5;8022,86659094765 -8,6;8372,0317907956 -8,7;10041,3593267306 -8,8;10253,050990357 -8,9;9043,82119751564 -9;10045,5914827808 -9,1;8645,9514960239 -9,2;7587,78596251839 -9,3;8050,67704946183 -9,4;12766,8084185733 -9,5;11320,2397899506 -9,6;11983,2137256095 -9,7;10346,5261277883 -9,8;10976,0207971127 -9,9;10596,5951721337 -10;12354,9165211917 -10,1;13176,0001734934 -10,2;10787,1844790958 -10,3;9016,89457113492 -10,4;9591,14684777673 -10,5;9326,59125815507 -10,6;8400,48447975349 -10,7;8103,47670668761 -10,8;6850,46195015796 -10,9;8523,22233334717 -11;7320,06708241798 -11,1;6761,31990109052 -11,2;10335,7413628739 -11,3;8452,63560033498 -11,4;7651,84663783688 -11,5;10973,5604541944 -11,6;9445,95763629494 -11,7;10218,29998992 -11,8;7766,96969085216 -11,9;7792,66151934471 -12;11724,2680465198 -12,1;9046,55821600569 -12,2;7933,82281121758 -12,3;8494,97595285483 -12,4;12847,3887298016 -12,5;10294,8960103345 -12,6;15253,0634118407 -12,7;14400,4899470299 -12,8;12691,4502676006 -12,9;12476,3346535563 -13;11290,0609563828 -13,1;11593,0442976639 -13,2;11445,9423045149 -13,3;10381,2431323292 -13,4;11264,5376923105 -13,5;11285,9320427566 -13,6;10710,3502098923 -13,7;10396,059083809 -13,8;10729,9941311348 -13,9;8584,80968880257 -14;9123,06769305207 -14,1;9551,82625036035 -14,2;12759,0676102405 -14,3;10886,7202223913 -14,4;8689,0430008371 -14,5;8601,59754664362 -14,6;9227,67154381367 -14,7;10759,4161716665 -14,8;8701,93376658181 -14,9;8694,06775689441 -15;7120,05485126926 -15,1;7871,86018020619 -15,2;11325,3190917209 -15,3;11031,3141538231 -15,4;8537,06017947308 -15,5;7721,65289483558 -15,6;12768,3261913139 -15,7;11373,8084037005 -15,8;7561,75216737958 -15,9;9022,9974341319 -16;10469,6335508079 -16,1;12518,4220722121 -16,2;15126,603804632 -16,3;11534,1997794343 -16,4;13622,6376508151 -16,5;9752,91900516775 -16,6;9571,21351591001 -16,7;7344,68254397997 -16,8;7597,08688114403 -16,9;5829,235899961 -17;5346,16678188154 -17,1;5653,51588369056 -17,2;4013,32857668548 -17,3;5341,62826889271 -17,4;5337,97795220073 -17,5;4758,90474968552 -17,6;3707,93581860354 -17,7;5146,90259738539 -17,8;4741,19590656026 -17,9;4381,03681098208 -18;5283,89194896795 -18,1;5977,00409400307 -18,2;5080,90486298864 -18,3;5700,55920879932 -18,4;5067,57442433348 -18,5;5969,1004674428 -18,6;5943,39373403795 -18,7;7872,16036106282 -18,8;7176,37802849479 -18,9;6773,32638300943 -19;6576,68995103676 -19,1;6302,66909129431 -19,2;8409,6290202459 -19,3;8110,29631442576 -19,4;6230,32936264843 -19,5;7030,42554727497 -19,6;8209,18759666583 -19,7;9345,93343556614 -19,8;7744,4408105053 -19,9;8674,56078556814 -20;9386,18815897299 -20,1;5970,37048855152 -20,2;8980,4210971737 -20,3;10154,3104546652 -20,4;8170,35370424287 -20,5;8835,16412467681 -20,6;7498,96166288369 -20,7;5652,13634438877 -20,8;5593,66362700379 -20,9;5626,54486340093 -21;6547,73225655557 -21,1;7096,12518257777 -21,2;8187,61397499477 -21,3;7816,96018309476 -21,4;9365,74592375056 -21,5;8919,79510386407 -21,6;11311,3544390941 -21,7;12334,8818534128 -21,8;12091,0402723564 -21,9;10224,4460329214 -22;10672,0533887018 -22,1;10495,9906471543 -22,2;7573,49486741521 -22,3;8806,85834649576 -22,4;9198,35221065198 -22,5;9993,33431906456 -22,6;10288,8725272112 -22,7;9051,0076124758 -22,8;8550,00334114443 -22,9;7368,74316241947 -23;8145,88224943311 -23,1;11024,7919142578 -23,2;9726,97632179983 -23,3;11464,9267284175 -23,4;11743,8728109547 -23,5;9012,19675930479 -23,6;9267,67553897285 -23,7;9563,73866062666 -23,8;10005,7522969854 -23,9;9133,23696685598 -24;9216,48900855386 -24,1;10468,8746182724 -24,2;9110,06864599419 -24,3;10841,7518151104 -24,4;12174,1893998248 -24,5;13070,8058195246 -24,6;11698,4516180048 -24,7;11905,0519445065 -24,8;9876,34239469928 -24,9;12551,5200696618 -25;9365,74240446989 -25,1;6017,63591596322 -25,2;7640,65921225047 -25,3;5316,22529995531 -25,4;8336,35554660404 -25,5;7972,59496069947 -25,6;6018,76020610333 -25,7;5930,74680893522 -25,8;8125,15276684146 -25,9;6321,26849791774 -26;7958,72797913122 -26,1;9461,90822052943 -26,2;8020,43480175057 -26,3;10615,6672924436 -26,4;7391,70620508135 -26,5;8518,52900238336 -26,6;7017,42000930683 -26,7;7675,82085117962 -26,8;10808,7105784239 -26,9;10748,6491137723 -27;10479,4609041952 -27,1;10796,5170427456 -27,2;10060,9111730096 -27,3;9862,72499672297 -27,4;10824,6714772015 -27,5;12425,1994314164 -27,6;10566,9979712047 -27,7;15242,2310985226 -27,8;15665,3710490534 -27,9;15772,9985656924 -28;20487,8144661072 -28,1;18792,1801144891 -28,2;21890,1242688365 -28,3;17789,9278083276 -28,4;12527,0593191164 -28,5;9485,10170282966 -28,6;9086,90637262223 -28,7;8120,91418137307 -28,8;6396,87622237125 -28,9;8704,93793118881 -29;6636,92325009947 -29,1;7059,7275114992 -29,2;9884,25516276591 -29,3;7430,30889135978 -29,4;7873,89272206418 -29,5;7867,48892187301 -29,6;10205,3190518609 -29,7;8617,89343568966 -29,8;8367,97516430218 -29,9;7883,30701968611 -30;11693,7127377259 -30,1;11272,082746678 -30,2;10597,3139796781 -30,3;10221,468666787 -30,4;9649,42170112549 -30,5;9441,45104781857 -30,6;7034,17260633305 -30,7;6291,18674650048 -30,8;7020,41233302552 -30,9;7175,27956531368 -31;5137,58723952299 -31,1;5610,72021416387 -31,2;6037,37933378762 -31,3;5350,60575631053 -31,4;4716,83497273108 -31,5;5431,82706570032 -31,6;5536,16390831763 -31,7;6381,37876490288 -31,8;6229,79583824138 -31,9;6997,03740427396 -32;11809,3722683047 -32,1;12878,2027253708 -32,2;12806,5885481948 -32,3;8861,34414376624 -32,4;9563,42807795813 -32,5;7835,71085280059 -32,6;11596,64632993 -32,7;9941,61435212074 -32,8;10652,7994903906 -32,9;10737,9549762833 -33;12558,8906120463 -33,1;8979,50961185162 -33,2;11293,5490293136 -33,3;15476,7686330012 -33,4;12958,4212233989 -33,5;12817,6569678597 -33,6;13388,4366814068 -33,7;12698,1131571398 -33,8;12154,8999203219 -33,9;10509,7164307354 -34;12567,8299055534 -34,1;9648,8807880893 -34,2;10848,7000406457 -34,3;9219,05521552105 -34,4;9321,56045456677 -34,5;7898,3631363727 -34,6;9060,06902573551 -34,7;9898,09727439412 -34,8;8210,08894889617 -34,9;9599,78378335742 -35;11854,9123261205 -35,1;9925,397231923 -35,2;11140,7100737521 -35,3;9816,59464276197 -35,4;10901,1451494259 -35,5;10634,8415449419 -35,6;9634,17841921968 -35,7;10487,7551481321 -35,8;8990,24352331104 -35,9;8332,83815549775 -36;8417,92866429414 -36,1;6192,30093657545 -36,2;6928,54602777178 -36,3;8207,90424929284 -36,4;6741,28696413681 -36,5;7389,39354728816 -36,6;6257,86927420529 -36,7;6774,41840573745 -36,8;4418,07727278885 -36,9;6109,82762770082 -37;7336,94874052948 -37,1;6023,50754478991 -37,2;6417,99273668786 -37,3;6321,07640991656 -37,4;6664,27718915005 -37,5;7426,85616952988 -37,6;7000,63296618831 -37,7;7621,69045880012 -37,8;6643,17095829111 -37,9;10539,2362260966 -38;9458,54273253344 -38,1;9232,71599901011 -38,2;7839,39459458997 -38,3;14839,0426572895 -38,4;11577,3620594544 -38,5;10201,91094914 -38,6;10991,0967331595 -38,7;8224,04482027097 -38,8;8856,90020551015 -38,9;7453,46596616546 -39;7524,12377272976 -39,1;8737,01215046318 -39,2;7686,35765818987 -39,3;8855,54602424936 -39,4;8262,02007098897 -39,5;8619,28755950972 -39,6;10252,8935594443 -39,7;7776,16343583888 -39,8;6858,67432567885 -39,9;8760,61654710644 -40;9622,97033404669 -40,1;9921,0869260319 -40,2;11844,7598216088 -40,3;12945,6261794604 -40,4;14825,1271602584 -40,5;10508,5632563249 -40,6;9798,12025726799 -40,7;10267,0412454815 -40,8;11354,5024437676 -40,9;13326,9619205658 -41;10274,890726593 -41,1;8673,01309387427 -41,2;8757,73021352446 -41,3;9764,24066478204 -41,4;10500,2582767496 -41,5;12467,1317044053 -41,6;11335,9342838068 -41,7;9474,89463722844 -41,8;11144,3234118078 -41,9;10836,7300270209 -42;11077,420427938 -42,1;11799,5256118085 -42,2;11023,0733084436 -42,3;15344,2310305759 -42,4;14599,413593436 -42,5;15386,0648664141 -42,6;14684,2261050675 -42,7;15325,7884563881 -42,8;19754,0861031911 -42,9;16679,5671880502 -43;13130,5469383685 -43,1;16164,5991605316 -43,2;13919,1677124579 -43,3;12382,6488658348 -43,4;14701,2437251083 -43,5;11443,3546429148 -43,6;9585,0565144986 -43,7;8934,35681503501 -43,8;11115,2308431103 -43,9;10202,8710798149 -44;11115,8212748502 -44,1;12094,1881576191 -44,2;13254,3758833824 -44,3;15130,8798999096 -44,4;11483,4484928252 -44,5;13195,0721694759 -44,6;10473,0754189766 -44,7;13356,8460825789 -44,8;11578,6930334603 -44,9;12616,3321110414 -45;12051,4699332613 -45,1;14553,8975722223 -45,2;10014,252007852 -45,3;14087,4551199516 -45,4;10327,5961599629 -45,5;11928,1382657893 -45,6;9052,63266829724 -45,7;10698,955023338 -45,8;10004,5113427391 -45,9;6771,5545184479 -46;8514,37984821228 -46,1;6617,4714442464 -46,2;8885,25370142548 -46,3;9118,76931768063 -46,4;7692,60376297994 -46,5;7520,52415804022 -46,6;6622,6016762273 -46,7;6052,32308209712 -46,8;7293,97788402771 -46,9;6138,38815400682 -47;4591,71737188944 -47,1;5470,55674137514 -47,2;5992,00573923157 -47,3;6939,80299894226 -47,4;7007,14556179378 -47,5;5444,57759540926 -47,6;6564,94840722865 -47,7;6389,96846959213 -47,8;8505,59827740137 -47,9;6555,93874124059 -48;6409,82467147517 -48,1;6919,9851611954 -48,2;5857,54645397159 -48,3;7516,42411930509 -48,4;9660,85589378418 -48,5;7882,59464507283 -48,6;7937,08813551117 -48,7;8745,5436631991 -48,8;9506,92561168197 -48,9;9866,53718222788 -49;9771,46296573487 -49,1;7972,95801313969 -49,2;9105,99477453911 -49,3;8964,86495276766 -49,4;8581,32803260173 -49,5;8344,4219814017 -49,6;7358,26859109201 -49,7;5381,03593167284 -49,8;7110,9006717466 -49,9;6820,43360908152 -50;8297,79230785321 -50,1;7663,00203410761 -50,2;7578,4007052904 -50,3;7967,38267168311 -50,4;7229,17182742463 -50,5;6596,98676173792 -50,6;6942,61425786679 -50,7;7435,38304196609 -50,8;6372,5087691826 -50,9;6623,10789929817 -51;6558,78603260941 -51,1;7423,27083653525 -51,2;12183,4777339393 -51,3;7779,16129116554 -51,4;12555,5842577588 -51,5;11023,2217699979 -51,6;8651,90043471913 -51,7;9961,29264196097 -51,8;8030,24504111739 -51,9;10975,1742197206 -52;8459,70762398174 -52,1;9676,56491646763 -52,2;7820,04980182388 -52,3;10787,1933271458 -52,4;9623,19765863186 -52,5;9855,38025336279 -52,6;8842,02859727836 -52,7;11752,8214971606 -52,8;8083,2807807658 -52,9;7321,42312366985 -53;8205,79844667963 -53,1;9615,49843148054 -53,2;9658,62633697096 -53,3;7713,75569474053 -53,4;12955,0848871974 -53,5;10254,836212151 -53,6;10444,5441836165 -53,7;9827,2522704155 -53,8;12885,7649577728 -53,9;11223,6503199689 -54;10903,4056935272 -54,1;13019,1174217624 -54,2;10921,6041856756 -54,3;11231,5698171515 -54,4;11381,7148489584 -54,5;11025,7971771427 -54,6;10754,3293580904 -54,7;12806,2717596169 -54,8;10607,6057399477 -54,9;10243,6551139101 -55;11627,7992637409 -55,1;11554,967235077 -55,2;11248,710823903 -55,3;10609,4245068699 -55,4;10207,0421438915 -55,5;11511,6953168914 -55,6;9922,16104578969 -55,7;10446,3760608161 -55,8;10476,1739647886 -55,9;14907,2621095441 -56;13681,2204033392 -56,1;17719,7811548912 -56,2;11565,4730437729 -56,3;11000,5874259337 -56,4;10935,3551309711 -56,5;9790,68075500014 -56,6;7717,58784432254 -56,7;5805,16785056102 -56,8;6720,09027920395 -56,9;5057,14754323012 -57;5787,6716885105 -57,1;5812,2971133207 -57,2;4985,56860134047 -57,3;5710,95091127253 -57,4;6432,79966438961 -57,5;7065,30719329072 -57,6;9685,13278810539 -57,7;7986,78985544796 -57,8;8685,07056222583 -57,9;7219,04903411052 -58;6213,93854335405 -58,1;9857,94458422158 -58,2;8680,61528628408 -58,3;8250,9194865143 -58,4;8491,30347817182 -58,5;11860,2058396431 -58,6;11774,6787839129 -58,7;9061,59105982336 -58,8;7393,79862469031 -58,9;6824,8913201083 -59;8115,88179748415 -59,1;7827,50347141874 -59,2;8835,09272260034 -59,3;7588,84203395042 -59,4;6846,34054572442 -59,5;6873,97558814903 -59,6;7805,83374545487 -59,7;7687,28131537552 -59,8;8346,75332138581 -59,9;7407,37565574723 -60;8329,52806493768 -60,1;7261,42310700191 -60,2;7312,21203058107 -60,3;9040,66086102091 -60,4;10493,644571701 -60,5;10741,8304373751 -60,6;9400,13489289287 -60,7;7971,83973414781 -60,8;10505,096939718 -60,9;10174,5280652284 -61;8961,95745119093 -61,1;5669,11508784949 -61,2;6407,04800074438 -61,3;8050,83204948429 -61,4;7255,61275788112 -61,5;8184,24254935309 -61,6;10146,7699666647 -61,7;7814,09192485262 -61,8;8114,97879829567 -61,9;5973,24381661191 -62;6509,96334300783 -62,1;9265,71805030568 -62,2;8449,07346056122 -62,3;11410,5882935058 -62,4;11571,0545840239 -62,5;10518,7965063701 -62,6;12505,2818804168 -62,7;13583,0754408911 -62,8;11716,7625724768 -62,9;9743,15145841789 -63;11159,3714619204 -63,1;10725,7136583695 -63,2;12489,0170100189 -63,3;14724,0726294381 -63,4;13225,1323407495 -63,5;15210,5074706416 -63,6;12408,5060482511 -63,7;10423,4160804753 -63,8;9852,51341647643 -63,9;10859,251224785 -64;11310,0309981004 -64,1;10322,1740790313 -64,2;9651,2503732872 -64,3;10393,4605321383 -64,4;10519,6621716649 -64,5;9442,1104529839 -64,6;10619,8876288285 -64,7;7459,04054791979 -64,8;8924,43582722977 -64,9;9585,49354883113 -65;8546,46477435247 -65,1;9369,95910410088 -65,2;11327,0195620211 -65,3;10265,2535623682 -65,4;10225,0353762898 -65,5;12942,1275496785 -65,6;13879,1700370883 -65,7;11710,2515545662 -65,8;10030,8698030822 -65,9;10593,4007423685 -66;9897,64771687591 -66,1;10446,3186465722 -66,2;11527,4668774637 -66,3;10467,0972589471 -66,4;6880,39688322924 -66,5;7071,21501883189 -66,6;9031,11573222015 -66,7;8042,6525271921 -66,8;8558,69169285023 -66,9;7861,29160593894 -67;8695,81984358475 -67,1;9702,77188916079 -67,2;11186,0949031785 -67,3;11167,0910356868 -67,4;11961,6696779951 -67,5;10247,8322757368 -67,6;8821,11960135626 -67,7;8887,61165305998 -67,8;6691,73279945521 -67,9;7610,74447137737 -68;9733,23566615167 -68,1;9085,64090950561 -68,2;10284,9550627579 -68,3;10811,2916582545 -68,4;9391,07226609754 -68,5;12096,1050391271 -68,6;11628,1420392599 -68,7;13266,1259531116 -68,8;10234,9314997338 -68,9;9238,39818182283 -69;8774,38633019121 -69,1;9473,17889910746 -69,2;10642,4441653773 -69,3;10439,4764932204 -69,4;13537,4356327428 -69,5;13387,0204026066 -69,6;12397,8465827829 -69,7;11415,6763255387 -69,8;11213,9686451852 -69,9;13289,3403171439 -70;10673,2874664237 -70,1;10964,3907671097 -70,2;10083,6308587883 -70,3;9072,64020755984 -70,4;8833,6705905021 -70,5;10895,5437375126 -70,6;11210,7420279216 -70,7;14896,1558643885 -70,8;13758,8134136559 -70,9;14512,6330898726 -71;13100,4131914116 -71,1;16699,4044720392 -71,2;16213,6434037868 -71,3;14618,6070860439 -71,4;19868,5152648034 -71,5;19101,5738782585 -71,6;13758,2601088466 -71,7;13306,2314200894 -71,8;11373,0895217935 -71,9;12564,0158787171 -72;13652,971104091 -72,1;13649,198816615 -72,2;10410,2680430208 -72,3;9371,41925917821 -72,4;10802,3451243264 -72,5;10496,3777705406 -72,6;10427,4529659678 -72,7;8288,48084959863 -72,8;7914,92356114429 -72,9;7458,71296154734 -73;7408,46299118695 -73,1;10075,7675545749 -73,2;8588,0297978611 -73,3;10157,7622710703 -73,4;10735,4916453127 -73,5;11000,7086254733 -73,6;12209,7124379228 -73,7;11079,1235522696 -73,8;10740,4077116903 -73,9;11026,6343326999 -74;9229,8528436727 -74,1;8446,85186918626 -74,2;9176,94484037695 -74,3;8559,01899327047 -74,4;10441,4143168649 -74,5;7850,59989141906 -74,6;6554,09778798869 -74,7;7309,6387149569 -74,8;7813,65258355211 -74,9;6519,72537562819 -75;7281,76820218333 -75,1;6417,82387295662 -75,2;8715,31455764381 -75,3;9726,02860887345 -75,4;6383,70636241777 -75,5;5368,64993966141 -75,6;6462,35462362343 -75,7;6694,0620678292 -75,8;6983,85535222503 -75,9;7383,97726464175 -76;6478,83490079305 -76,1;7023,15474529047 -76,2;4635,84389988871 -76,3;5405,63894365854 -76,4;5811,11956807765 -76,5;7255,08805377115 -76,6;4982,18157403915 -76,7;5036,42395226714 -76,8;4949,21470545351 -76,9;6843,89425538785 -77;7791,08031759526 -77,1;7547,2423043476 -77,2;7894,4013629537 -77,3;8084,8471195441 -77,4;7139,14603127704 -77,5;6754,90483960691 -77,6;5793,20224175837 -77,7;6341,3764256013 -77,8;5226,56337508388 -77,9;9019,07349349038 -78;11005,7499946334 -78,1;6819,5439379699 -78,2;9676,28715646289 -78,3;10842,6511317926 -78,4;9041,65774191533 -78,5;8724,37746271774 -78,6;10917,9976845158 -78,7;9630,19704501064 -78,8;10342,8641868793 -78,9;9850,40333496814 -79;14373,4791294866 -79,1;10984,257476849 -79,2;12523,6194478227 -79,3;10359,7984539939 -79,4;9388,50981538731 -79,5;8792,06749187442 -79,6;9887,25372677859 -79,7;10240,0264327785 -79,8;9414,49499511916 -79,9;9409,1585806543 -80;8256,27993117445 -80,1;10109,9689986108 -80,2;8810,75356093514 -80,3;8487,8597620045 -80,4;7314,70398989786 -80,5;5954,64620612273 -80,6;5472,0689570879 -80,7;8516,9913583844 -80,8;7028,70452497178 -80,9;7176,70945013414 -81;8836,04205086905 -81,1;6833,37706122905 -81,2;5772,81111567026 -81,3;7917,01670397021 -81,4;8887,21522534304 -81,5;7128,22688216862 -81,6;6935,91146287728 -81,7;7367,82805560655 -81,8;6217,58333853471 -81,9;7014,73644082161 -82;8027,46607023035 -82,1;8010,91844945424 -82,2;8347,2730173685 -82,3;7783,89576145179 -82,4;9525,36964179416 -82,5;7306,71604886285 -82,6;8175,47193642342 -82,7;7670,36960543746 -82,8;6771,53108893947 -82,9;9666,46498036726 -83;8998,20644570531 -83,1;8799,23321073932 -83,2;9731,35534497201 -83,3;10903,0827800629 -83,4;11164,545010449 -83,5;11484,280309072 -83,6;9318,51072620255 -83,7;7887,53271831702 -83,8;9972,34531975077 -83,9;7875,75574454626 -84;9588,93473056082 -84,1;10657,4289683724 -84,2;6907,34260389456 -84,3;9271,65225838068 -84,4;9349,66682883138 -84,5;8155,00455217325 -84,6;8858,99485261673 -84,7;8176,16575854411 -84,8;9364,3989893682 -84,9;10949,699835543 -85;14138,7514645031 -85,1;14787,3977642603 -85,2;11598,6661283384 -85,3;9325,81565706009 -85,4;9233,51516322209 -85,5;8460,04326433859 -85,6;9311,98132341824 -85,7;10776,8249435738 -85,8;9587,17800884098 -85,9;13891,4904717529 -86;12889,1070201789 -86,1;17899,9902117379 -86,2;17444,2285156656 -86,3;18056,3503319583 -86,4;15612,7072314106 -86,5;14955,2208666585 -86,6;16960,0784410482 -86,7;13863,8866647341 -86,8;12723,3032389705 -86,9;9975,55118299347 -87;12388,3676647969 -87,1;10776,1904103485 -87,2;10950,4769587152 -87,3;12236,2263983746 -87,4;11298,5375734901 -87,5;12927,927633043 -87,6;11003,1795197235 -87,7;8144,08718193333 -87,8;12301,0507511971 -87,9;12951,1207543641 -88;11685,0785172223 -88,1;8637,63532902613 -88,2;13055,3331803727 -88,3;11323,0791653795 -88,4;9988,510777286 -88,5;10599,1227751211 -88,6;11886,1728367984 -88,7;14181,1200974492 -88,8;13586,1479808546 -88,9;10954,066919755 -89;10983,4105494501 -89,1;7923,28294630162 -89,2;10740,1482794747 -89,3;9286,04975328939 -89,4;9067,96496157309 -89,5;12697,2495647524 -89,6;14011,9776483089 -89,7;13802,3013501114 -89,8;15063,3473788581 -89,9;15344,6767524379 -90;16570,5624674954 -90,1;13642,1930656728 -90,2;14305,4840410133 -90,3;11366,3920369854 -90,4;13277,9693802317 -90,5;13235,2942003651 -90,6;14955,2981112903 -90,7;16169,1139558071 -90,8;13444,2839371485 -90,9;9089,95755863969 -91;10172,4279448728 -91,1;6940,32198519605 -91,2;8390,47860364237 -91,3;7414,30561059461 -91,4;6631,61379612151 -91,5;7382,43970679747 -91,6;7846,49840204285 -91,7;6375,83248132266 -91,8;5844,69087984361 -91,9;5535,71694385237 -92;6306,27700382616 -92,1;5543,68132810144 -92,2;5969,84707901585 -92,3;5896,84887734867 -92,4;5486,3140909155 -92,5;6252,6684931635 -92,6;5441,88953068394 -92,7;5903,48825888603 -92,8;6057,33942696069 -92,9;6218,08517661229 -93;6106,57717134311 -93,1;5260,34007029175 -93,2;7097,62559594772 -93,3;7546,54717362485 -93,4;5241,65663212615 -93,5;7857,51199603327 -93,6;7305,74973786767 -93,7;8053,73249390559 -93,8;5606,09439713797 -93,9;5916,25347371313 -94;7476,2810824586 -94,1;7535,95038119899 -94,2;7118,01225805734 -94,3;5417,43414439005 -94,4;6084,90027931049 -94,5;6033,54071910334 -94,6;6297,66793938372 -94,7;6488,07976214268 -94,8;5320,47703827806 -94,9;7379,15231259575 -95;8596,08724172797 -95,1;6040,7827704137 -95,2;9027,10261957848 -95,3;13023,9250654291 -95,4;11353,1465785939 -95,5;13034,4668353095 -95,6;9897,7255935645 -95,7;10034,4478960321 -95,8;12405,0884488056 -95,9;13280,4917757347 -96;11050,6976345327 -96,1;9376,82423282411 -96,2;11672,511263973 -96,3;12325,8857487411 -96,4;12864,7329154346 -96,5;11756,4838244404 -96,6;8774,68402681564 -96,7;11210,4534735627 -96,8;12050,5699255764 -96,9;10033,007387701 -97;9100,86901019109 -97,1;8465,01561048677 -97,2;6263,04092971508 -97,3;8371,58581960713 -97,4;6592,20082902912 -97,5;7092,46572314113 -97,6;6379,42521485691 -97,7;6662,74267805176 -97,8;6523,40233092788 -97,9;11152,360549344 -98;9957,87092735192 -98,1;11763,7776849331 -98,2;10618,4983158747 -98,3;10881,4526960639 -98,4;15918,2801309712 -98,5;11277,605268996 -98,6;11771,9477684394 -98,7;11476,8778079714 -98,8;9615,44036830025 -98,9;8875,11567888828 -99;7490,14304885959 -99,1;9144,82105960135 -99,2;8375,25061336304 -99,3;9589,24404525066 -99,4;11374,2525438976 -99,5;14051,3721983154 -99,6;10764,3972257284 -99,7;8359,59149358557 -99,8;8337,10533957384 -99,9;8322,99799776905 -100;8327,29982114169 -' - -pomp( - data=read.csv2(text=dat), - times="time", - t0=0, - params=c(n.0=10000,K=10000,r=0.9,sigma=0.4,tau=0.1), - rprocess=euler.sim( - step.fun=function(x,t,params,delta.t,...){ - r <- params["r"] - K <- params["K"] - sigma <- params["sigma"] - n <- x["n"] - rnorm( - n=1, - mean=n+r*n*(1-n/K)*delta.t, - sd=sigma*n*sqrt(delta.t) - ) - }, - delta.t=0.01 - ), - dprocess=onestep.dens( - dens.fun=function(x1,x2,t1,t2,params,log,...){ - delta.t <- t2-t1 - r <- params["r"] - K <- params["K"] - sigma <- params["sigma"] - n <- x1["n"] - dnorm( - x=x2["n"], - mean=n+r*n*(1-n/K)*delta.t, - sd=sigma*n*sqrt(delta.t), - log=log - ) - } - ), - measurement.model=obs~lnorm(meanlog=log(n),sdlog=log(1+tau)), - skeleton.type="vectorfield", - skeleton=function(x,t,params,...){ - r <- params["r"] - K <- params["K"] - n <- x["n"] - f <- r*n*(1-n/K) - names(f) <- "n" - f - } - ) -> verhulst - -c("verhulst") Modified: pkg/pomp/man/example.Rd =================================================================== --- pkg/pomp/man/example.Rd 2015-03-01 03:40:12 UTC (rev 1118) +++ pkg/pomp/man/example.Rd 2015-03-01 03:40:56 UTC (rev 1119) @@ -46,7 +46,7 @@ \code{\link{blowflies}}, \code{\link{dacca}}, \code{\link{gompertz}}, \code{\link{ou2}}, \code{\link{ricker}}, \code{\link{rw2}}, \code{\link{euler.sir}}, \code{\link{gillespie.sir}}, - \code{\link{bbs}}, \code{\link{verhulst}} + \code{\link{bbs}} } \keyword{models} \keyword{datasets} Deleted: pkg/pomp/man/verhulst.Rd =================================================================== --- pkg/pomp/man/verhulst.Rd 2015-03-01 03:40:12 UTC (rev 1118) +++ pkg/pomp/man/verhulst.Rd 2015-03-01 03:40:56 UTC (rev 1119) @@ -1,29 +0,0 @@ -\name{verhulst} -\alias{verhulst} -\docType{data} -\title{Simple Verhulst-Pearl (logistic) model.} -\description{ - \code{verhulst} is a \code{pomp} object encoding a univariate stochastic logistic model with measurement error. -} -\details{ - The model is written as an Ito diffusion, \deqn{dn = r n \left(1-\frac{n}{K}\right) dt + \sigma n dW}{dn = r n (1-n/K) dt + sigma n dW}, where \eqn{W} is a Wiener process. - It is implemented using the \code{\link{euler.sim}} plug-in. -} -\examples{ -pompExample(verhulst) -plot(verhulst) -coef(verhulst) -params <- cbind( - c(n.0=100,K=10000,r=0.2,sigma=0.4,tau=0.1), - c(n.0=1000,K=11000,r=0.1,sigma=0.4,tau=0.1) - ) -x <- simulate(verhulst,params=params,states=TRUE) -matplot(time(verhulst),t(x['n',,]),type='l') -y <- trajectory(verhulst,params=params) -matlines(time(verhulst),t(y['n',,]),type='l',lwd=2) -} -\seealso{ - \code{\link{pomp}} -} -\keyword{models} -\keyword{datasets} Modified: pkg/pomp/tests/steps.R =================================================================== --- pkg/pomp/tests/steps.R 2015-03-01 03:40:12 UTC (rev 1118) +++ pkg/pomp/tests/steps.R 2015-03-01 03:40:56 UTC (rev 1119) @@ -9,9 +9,8 @@ y <- simulate(ricker,times=tm,states=TRUE)["N",,] stopifnot(identical(x,y)) -pompExample(verhulst) -coef(verhulst,c("n.0","sigma")) <- c(15,0) +pompExample(euler.sir) tm <- sort(runif(n=100,max=1)) -x <- trajectory(verhulst,times=tm)["n",,] -y <- simulate(verhulst,times=tm,states=TRUE)["n",,] +x <- trajectory(euler.sir,times=tm)["I",,] +y <- simulate(euler.sir,times=tm,states=TRUE)["I",,] table(cut(x-y,breaks=c(-Inf,seq(-0.2,0.2,by=0.01),Inf),ordered=T)) Modified: pkg/pomp/tests/steps.Rout.save =================================================================== --- pkg/pomp/tests/steps.Rout.save 2015-03-01 03:40:12 UTC (rev 1118) +++ pkg/pomp/tests/steps.Rout.save 2015-03-01 03:40:56 UTC (rev 1119) @@ -30,17 +30,16 @@ > y <- simulate(ricker,times=tm,states=TRUE)["N",,] > stopifnot(identical(x,y)) > -> pompExample(verhulst) +> pompExample(euler.sir) newly created object(s): - verhulst -> coef(verhulst,c("n.0","sigma")) <- c(15,0) + euler.sir > tm <- sort(runif(n=100,max=1)) -> x <- trajectory(verhulst,times=tm)["n",,] -> y <- simulate(verhulst,times=tm,states=TRUE)["n",,] +> x <- trajectory(euler.sir,times=tm)["I",,] +> y <- simulate(euler.sir,times=tm,states=TRUE)["I",,] > table(cut(x-y,breaks=c(-Inf,seq(-0.2,0.2,by=0.01),Inf),ordered=T)) (-Inf,-0.2] (-0.2,-0.19] (-0.19,-0.18] (-0.18,-0.17] (-0.17,-0.16] - 0 0 0 0 0 + 96 0 0 0 0 (-0.16,-0.15] (-0.15,-0.14] (-0.14,-0.13] (-0.13,-0.12] (-0.12,-0.11] 0 0 0 0 0 (-0.11,-0.1] (-0.1,-0.09] (-0.09,-0.08] (-0.08,-0.07] (-0.07,-0.06] @@ -48,16 +47,16 @@ (-0.06,-0.05] (-0.05,-0.04] (-0.04,-0.03] (-0.03,-0.02] (-0.02,-0.01] 0 0 0 0 0 (-0.01,0] (0,0.01] (0.01,0.02] (0.02,0.03] (0.03,0.04] - 0 13 11 11 8 + 0 0 0 0 0 (0.04,0.05] (0.05,0.06] (0.06,0.07] (0.07,0.08] (0.08,0.09] - 13 13 8 3 3 + 0 0 0 0 0 (0.09,0.1] (0.1,0.11] (0.11,0.12] (0.12,0.13] (0.13,0.14] - 11 6 0 0 0 + 0 0 0 0 0 (0.14,0.15] (0.15,0.16] (0.16,0.17] (0.17,0.18] (0.18,0.19] 0 0 0 0 0 (0.19,0.2] (0.2, Inf] - 0 0 + 0 4 > > proc.time() user system elapsed - 0.632 0.044 0.697 + 0.570 0.030 0.587 Deleted: pkg/pomp/tests/verhulst.R =================================================================== --- pkg/pomp/tests/verhulst.R 2015-03-01 03:40:12 UTC (rev 1118) +++ pkg/pomp/tests/verhulst.R 2015-03-01 03:40:56 UTC (rev 1119) @@ -1,11 +0,0 @@ -library(pomp) - -pompExample(verhulst) - -tail(as(verhulst,"data.frame")) -tail(as.data.frame(verhulst)) - -coef(verhulst,c("n.0","sigma")) <- c(100,0.2) -time(verhulst) <- 1:100 - -tail(as.data.frame(simulate(verhulst,seed=1066L))) Deleted: pkg/pomp/tests/verhulst.Rout.save =================================================================== --- pkg/pomp/tests/verhulst.Rout.save 2015-03-01 03:40:12 UTC (rev 1118) +++ pkg/pomp/tests/verhulst.Rout.save 2015-03-01 03:40:56 UTC (rev 1119) @@ -1,57 +0,0 @@ - -R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet" -Copyright (C) 2014 The R Foundation for Statistical Computing -Platform: x86_64-unknown-linux-gnu (64-bit) - -R is free software and comes with ABSOLUTELY NO WARRANTY. -You are welcome to redistribute it under certain conditions. -Type 'license()' or 'licence()' for distribution details. - -R is a collaborative project with many contributors. -Type 'contributors()' for more information and -'citation()' on how to cite R or R packages in publications. - -Type 'demo()' for some demos, 'help()' for on-line help, or -'help.start()' for an HTML browser interface to help. -Type 'q()' to quit R. - -> library(pomp) -Loading required package: subplex -Loading required package: nloptr -> -> pompExample(verhulst) -newly created object(s): - verhulst -> -> tail(as(verhulst,"data.frame")) - time obs -995 99.5 14051.372 -996 99.6 10764.397 -997 99.7 8359.591 -998 99.8 8337.105 -999 99.9 8322.998 -1000 100.0 8327.300 -> tail(as.data.frame(verhulst)) - time obs -995 99.5 14051.372 -996 99.6 10764.397 -997 99.7 8359.591 -998 99.8 8337.105 -999 99.9 8322.998 -1000 100.0 8327.300 -> -> coef(verhulst,c("n.0","sigma")) <- c(100,0.2) -> time(verhulst) <- 1:100 -> -> tail(as.data.frame(simulate(verhulst,seed=1066L))) - time obs n -95 95 11528.048 10993.019 -96 96 7829.730 9218.963 -97 97 9483.337 9642.360 -98 98 9819.607 8914.544 -99 99 8753.751 9082.258 -100 100 9202.150 9452.477 -> -> proc.time() - user system elapsed - 0.696 0.044 0.755 Modified: www/content/NEWS.html =================================================================== --- www/content/NEWS.html 2015-03-01 03:40:12 UTC (rev 1118) +++ www/content/NEWS.html 2015-03-01 03:40:56 UTC (rev 1119) @@ -8,6 +8,19 @@

News for package ‘pomp’

+

Changes in pomp version 0.62-2

+ + +
    +
  • Bug fix in partrans when transformations are implemented using Csnippets. +

    +
  • +
  • Remove the verhulst example. +

    +
+ + + [TRUNCATED] To get the complete diff run: svnlook diff /svnroot/pomp -r 1119 From noreply at r-forge.r-project.org Sun Mar 1 04:41:10 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Sun, 1 Mar 2015 04:41:10 +0100 (CET) Subject: [Pomp-commits] r1120 - www/vignettes Message-ID: <20150301034110.A3ECF183C1E@r-forge.r-project.org> Author: kingaa Date: 2015-03-01 04:41:09 +0100 (Sun, 01 Mar 2015) New Revision: 1120 Added: www/vignettes/getting_started.R www/vignettes/getting_started.Rmd www/vignettes/getting_started.html Modified: www/vignettes/Makefile www/vignettes/pomp.bib www/vignettes/pomp.pdf Log: - remove advanced topics vignette - add getting_started vignette - update Makefile Modified: www/vignettes/Makefile =================================================================== --- www/vignettes/Makefile 2015-03-01 03:40:56 UTC (rev 1119) +++ www/vignettes/Makefile 2015-03-01 03:41:09 UTC (rev 1120) @@ -7,7 +7,7 @@ default: vignettes clean -vignettes: advanced_topics_in_pomp.pdf advanced_topics_in_pomp.R intro_to_pomp.pdf intro_to_pomp.R +vignettes: intro_to_pomp.pdf intro_to_pomp.R getting_started.html getting_started.R %.R: %.Rnw $(RSCRIPT) -e 'library(knitr); purl("$*.Rnw")' @@ -15,6 +15,9 @@ %.tex: %.Rnw $(RSCRIPT) -e 'library(knitr); knit("$*.Rnw")' +%.R: %.Rmd + $(RSCRIPT) -e 'library(knitr); purl("$*.Rmd")' + %.pdf: %.tex $(PDFLATEX) $* -$(BIBTEX) $* @@ -27,4 +30,3 @@ $(RM) -r cache figure $(RM) *.c *.o *.so *.bak $(RM) Rplots.pdf - $(RM) -r figure Added: www/vignettes/getting_started.R =================================================================== --- www/vignettes/getting_started.R (rev 0) +++ www/vignettes/getting_started.R 2015-03-01 03:41:09 UTC (rev 1120) @@ -0,0 +1,215 @@ +## ----opts,include=FALSE-------------------------------------------------- +library(knitr) +prefix <- "getting-started" +opts_chunk$set( + progress=TRUE, + prompt=FALSE,tidy=FALSE,highlight=TRUE, + strip.white=TRUE, + warning=FALSE, + message=FALSE, + error=FALSE, + echo=TRUE, + cache=TRUE, + results='markup', + fig.show='asis', + size='small', + fig.lp="fig:", + fig.path=paste0("figure/",prefix,"-"), + cache.path=paste0("cache/",prefix,"-"), + fig.pos="h!", + fig.align='center', + fig.height=4,fig.width=6.83, + out.width="\\linewidth", + dpi=300, + dev='png', + dev.args=list(bg='transparent') + ) + +## ----prelims,echo=F,cache=F---------------------------------------------- +set.seed(594709947L) +require(ggplot2) +require(plyr) +require(reshape2) +require(magrittr) +require(pomp) +theme_set(theme_bw()) +stopifnot(packageVersion("pomp")>="0.62-1") +options( + keep.source=TRUE, + stringsAsFactors=FALSE, + encoding="UTF-8" + ) + +## ----eval=FALSE---------------------------------------------------------- +## install.packages("pomp",repos="http://R-Forge.R-Project.org") + +## ----eval=FALSE---------------------------------------------------------- +## cat("#include +## void hello (void) { +## Rprintf(\"hello world!\\n\"); +## }",file="hello.c") +## system("R CMD SHLIB hello.c") +## dyn.load(paste0("hello",.Platform$dynlib.ext)) +## .C("hello",PACKAGE="hello") + +## ----load-parus-data----------------------------------------------------- +parus.dat <- read.csv(text=" + year,pop + 1960,148 + 1961,258 + 1962,185 + 1963,170 + 1964,267 + 1965,239 + 1966,196 + 1967,132 + 1968,167 + 1969,186 + 1970,128 + 1971,227 + 1972,174 + 1973,177 + 1974,137 + 1975,172 + 1976,119 + 1977,226 + 1978,166 + 1979,161 + 1980,199 + 1981,306 + 1982,206 + 1983,350 + 1984,214 + 1985,175 + 1986,211" + ) + +## ----parus-plot---------------------------------------------------------- +ggplot(data=parus.dat,mapping=aes(x=year,y=pop))+ + geom_line()+geom_point()+ + expand_limits(y=0)+ + theme_classic() + +## ----logistic-step-fun--------------------------------------------------- +step.fun <- Csnippet(" + double dW = rnorm(0,sqrt(dt)); + N += r*N*(1-N/K)*dt+sigma*N*dW; + ") + +## ----logistic-pomp1,cache=FALSE------------------------------------------ +parus <- pomp(data=parus.dat,time="year",t0=1959, + rprocess=euler.sim(step.fun=step.fun,delta.t=1/365), + statenames="N",paramnames=c("r","K","sigma")) + +## ----logistic-simul1----------------------------------------------------- +simStates <- simulate(parus,nsim=10,params=c(r=0.2,K=200,sigma=0.5,N.0=200),states=TRUE) + +## ----logistic-plot1,echo=FALSE------------------------------------------- +melt(simStates) %>% + dcast(rep+time~variable) %>% + ggplot(mapping=aes(x=time,y=N,group=rep,color=factor(rep)))+ + geom_line()+guides(color=FALSE)+ + theme_classic() + +## ----logistic-rmeasure--------------------------------------------------- +rmeas <- Csnippet(" + pop = rpois(phi*N); + ") + +## ----logistic-pomp2,cache=FALSE------------------------------------------ +parus <- pomp(parus,rmeasure=rmeas,paramnames="phi",statenames="N") + +## ----logistic-simul2----------------------------------------------------- +sim <- simulate(parus,params=c(r=0.2,K=200,phi=0.5,sigma=0.5,N.0=200), + nsim=10,obs=TRUE,states=TRUE) + +## ----logistic-plot2,echo=FALSE------------------------------------------- +sim %>% melt() %>% + ggplot(mapping=aes(x=time,y=value,group=rep,color=factor(rep)))+ + geom_line()+ + guides(color=FALSE)+scale_y_sqrt()+ + facet_grid(variable~.,scales="free_y") + +sim %>% melt() %>% dcast(rep+time~variable,value.var='value') %>% + ggplot(mapping=aes(x=N,y=pop,color=factor(rep)))+ + geom_point()+scale_x_sqrt()+scale_y_sqrt()+ + coord_equal()+ + guides(color=FALSE) + +## ----logistic-dmeasure--------------------------------------------------- +dmeas <- Csnippet(" + lik = dpois(pop,phi*N,give_log); + ") + +## ----logistic-pomp3,cache=FALSE------------------------------------------ +parus <- pomp(parus,dmeasure=dmeas,paramnames="phi",statenames="N") + +## ----logistic-pfilter---------------------------------------------------- +pf <- pfilter(parus,Np=1000,params=c(r=0.2,K=200,phi=0.5,sigma=0.5,N.0=200)) +logLik(pf) + +## ----logistic-skeleton,cache=FALSE--------------------------------------- +skel <- Csnippet(" + DN = r*N*(1-N/K); + ") + +parus <- pomp(parus,skeleton=skel,skeleton.type="vectorfield",statenames="N",paramnames=c("r","K")) + +## ----logistic-traj1------------------------------------------------------ +pars <- parmat(c(r=1,K=200,phi=0.5,sigma=0.5,N.0=20),5) +pars["N.0",] <- seq(20,300,length=5) +traj <- trajectory(parus,params=pars,times=seq(1959,1970,by=0.01)) + +## ----logistic-plot3,echo=FALSE------------------------------------------- +trajectory(parus,params=pars,times=seq(1959,1970,by=0.01),as.data.frame=TRUE) %>% + ggplot(mapping=aes(x=time,y=N,group=traj,color=traj))+ + guides(color=FALSE)+ + geom_line() + +## ----bh-stepfun---------------------------------------------------------- +bh.step <- Csnippet(" + double eps = rlnorm(-sigma*sigma/2,sigma); + N = a*N/(1+b*N)*eps; + ") + +## ----bh-skeleton--------------------------------------------------------- +bh.skel <- Csnippet(" + DN = a*N/(1+b*N); + ") + +## ----bh-pomp1,cache=FALSE------------------------------------------------ +parus.bh <- pomp(parus,rprocess=discrete.time.sim(bh.step,delta.t=1),skeleton=bh.skel,skeleton.type="map",skelmap.delta.t=1,statenames="N",paramnames=c("a","b","sigma")) + +## ----bh-test------------------------------------------------------------- +coef(parus.bh) <- c(a=1.1,b=5e-4,sigma=0.5,N.0=30,phi=1) +sim <- simulate(parus.bh) +traj <- trajectory(parus.bh) +pf <- pfilter(parus.bh,Np=1000) + +## ----logistic-partrans,cache=FALSE--------------------------------------- +partrans <- Csnippet(" + Tr = exp(r); + TK = exp(K); + ") + +parinvtrans <- Csnippet(" + Tr = log(r); + TK = log(K); + ") + +parus <- pomp(parus,parameter.transform=partrans,parameter.inv.transform=parinvtrans, + paramnames=c("r","K")) + +## ----logistic-partrans-test,include=FALSE,cache=FALSE-------------------- +p <- c(r=1,K=200,phi=1,N.0=200,sigma=0.5) +coef(parus,transform=TRUE) <- partrans(parus,p,dir="inv") +stopifnot(all.equal(p,coef(parus))) + +## ----tempfile-view,eval=FALSE-------------------------------------------- +## op <- options(verbose=TRUE) +## +## parus <- pomp(data=parus.dat,times="year",t0=1959,rprocess=euler.sim(step.fun,delta.t=1/365), +## dmeasure=dmeas,rmeasure=rmeas,statenames="N",paramnames=c("r","phi","K","N.0","sigma")) +## +## options(op) + Added: www/vignettes/getting_started.Rmd =================================================================== --- www/vignettes/getting_started.Rmd (rev 0) +++ www/vignettes/getting_started.Rmd 2015-03-01 03:41:09 UTC (rev 1120) @@ -0,0 +1,461 @@ +--- +title: "Getting started with pomp" +author: "Aaron A. King" +date: "02/28/2015" +output: + html_document: + theme: flatly + toc: yes +bibliography: pomp.bib +csl: ecology.csl +--- + +Licensed under the [Creative Commons attribution-noncommercial license](http://creativecommons.org/licenses/by-nc/3.0). +Please share and remix noncommercially, mentioning its origin. +![CC-BY_NC](http://pomp.r-forge.r-project.org/graphics/cc-by-nc.png) + +```{r opts,include=FALSE} +library(knitr) +prefix <- "getting-started" +opts_chunk$set( + progress=TRUE, + prompt=FALSE,tidy=FALSE,highlight=TRUE, + strip.white=TRUE, + warning=FALSE, + message=FALSE, + error=FALSE, + echo=TRUE, + cache=TRUE, + results='markup', + fig.show='asis', + size='small', + fig.lp="fig:", + fig.path=paste0("figure/",prefix,"-"), + cache.path=paste0("cache/",prefix,"-"), + fig.pos="h!", + fig.align='center', + fig.height=4,fig.width=6.83, + out.width="\\linewidth", + dpi=300, + dev='png', + dev.args=list(bg='transparent') + ) +``` + + +```{r prelims,echo=F,cache=F} +set.seed(594709947L) +require(ggplot2) +require(plyr) +require(reshape2) +require(magrittr) +require(pomp) +theme_set(theme_bw()) +stopifnot(packageVersion("pomp")>="0.62-1") +options( + keep.source=TRUE, + stringsAsFactors=FALSE, + encoding="UTF-8" + ) +``` + +## Partially observed Markov process (POMP) models + +As its name implies `pomp` is focused on partially observed Markov process models. +These are also known as state-space model, hidden Markov models, and stochastic dynamical systems models. +Such models consist of an unobserved stochastic *state process*, connected to the data via an explicit model of the observation process. +We refer to the former as the *process model* and the latter as the *measurement model*. +Each model is, in fact, a probability distribution. +If we let $Y_t$ denote the measurement process at time $t$ and $X_t$ the state process, then by definition, the process model is determined by the density $f_{X_t|X_{t-1}}$ and the measurement process by the density $f_{Y_t|X_t}$. +We think of the data, $y^*_t$, $t=1,\dots,T$ as being a single realization of the $Y$ process. +To implement a POMP model in `pomp`, we have to specify the measurement and process distributions. + +Note however, that, for each of the process and the measurement model there are two distinct operations that we might wish to perform: + +1. we might wish to *simulate*, i.e., to draw a (pseudo)random sample from the distribution, or +2. we might wish to *evaluate the density* itself at given values of $X_t$ and/or $Y_t$. + +We refer to the simulation of $f_{X_t|X_{t-1}}$ as the *rprocess* component of the POMP model, the evaluation of $f_{X_t|X_{t-1}}$ as the *dprocess* component, the simulation of $f_{Y_t|X_t}$, as the *rmeasure* component, and the evaluation of $f_{Y_t|X_t}$ as the *dmeasure* component. +Methods that make no use of the *dprocess* component are called "plug-and-play" methods. +At present, `pomp` is focused on such methods, so there is no reason to focus on the dprocess component any further. +In the following, we will illustrate and explain how one specifies the rprocess, rmeasure, and dmeasure components of a model in `pomp`. +We will illustrate this using some simple examples. + +----------------------------------- +![schematic1](http://pomp.r-forge.r-project.org/graphics/state_space_diagram1.png) + +Schematic of the structure of a POMP showing causal relations and direction of information flow. +**The key perspective to keep in mind is that the model is to be viewed as the process that generated the data.** + +----------------------------------- +![schematic2](http://pomp.r-forge.r-project.org/graphics/state_space_diagram2.png) + +Another POMP model schematic, showing dependence among model variables. +State variables, $x$, at time $t$ depend only on state variables at the previous timestep. +Measurements, $y$, at time $t$ depend only on the state at that time. +Formally, $\mathrm{Prob}[X_t|X_1,\dots,X_{t-1},Y_1,\dots,Y_{t-1}]=\mathrm{Prob}[X_t|X_{t-1}]$ and $\mathrm{Prob}[Y_t|X_1,\dots,X_{t},Y_1,\dots,Y_{t-1}]=\mathrm{Prob}[Y_t|X_{t}]$ for all $t=1,\dots,T$. + +----------------------------------- + +## Preliminaries + +### Installing the package + +To get started, we must install `pomp`, if it is not already installed. +The package can be downloaded from CRAN, but the latest version is always available at the package homepage on R-Forge. +Run the following to install this to download and install the latest version. +```{r eval=FALSE} +install.packages("pomp",repos="http://R-Forge.R-Project.org") +``` + +### Important information for Windows and Mac users. + +In this document, we will implement `pomp` models using the package's `Csnippet` facility. +This allows the user to write model components using snippets of C code, which is then compiled and linked into a running `R` session. +This typically affords a manyfold increase in computation time. +It is possible to avoid `Csnippet`s entirely by writing model components as `R` functions, but the resulting implementations are typically too slow to be of practical use. + +**Note to Windows users.** +To use `Csnippet`s, you must be able to compile C codes. +Compilers are not typically installed on Windows systems. +To achieve full functionality of `pomp` on a Windows computer, therefore, you must install the `Rtools` suite. +See http://cran.r-project.org/bin/windows/Rtools for downloads and instructions. + +**Note to Mac users.** +Although a variety of compilers are freely available for the Mac platform, they are not typically installed by default. + +The `Csnippet` functionality in essence requires that you be able to use `R CMD SHLIB`. +To see if you can do this, execute the following in an `R` session. +```{r eval=FALSE} +cat("#include + void hello (void) { + Rprintf(\"hello world!\\n\"); + }",file="hello.c") +system("R CMD SHLIB hello.c") +dyn.load(paste0("hello",.Platform$dynlib.ext)) +.C("hello",PACKAGE="hello") +``` +If you see the "hello world" message printed, your system should support `Csnippet`. + + +### Loading data + +We will illustrate `pomp` by performing a limited data analysis on a set of bird abundance data. +The data are from annual censuses of a population of *Parus major* (Great Tit) in Wytham Wood, Oxfordshire. +They were retrieved as dataset #10163 from the Global Population Dynamics Database version 2 (NERC Centre for Population Biology, Imperial College, 2010). +The original source is @McCleery1991. + +We load the data by doing +```{r load-parus-data} +parus.dat <- read.csv(text=" + year,pop + 1960,148 + 1961,258 + 1962,185 + 1963,170 + 1964,267 + 1965,239 + 1966,196 + 1967,132 + 1968,167 + 1969,186 + 1970,128 + 1971,227 + 1972,174 + 1973,177 + 1974,137 + 1975,172 + 1976,119 + 1977,226 + 1978,166 + 1979,161 + 1980,199 + 1981,306 + 1982,206 + 1983,350 + 1984,214 + 1985,175 + 1986,211" + ) +``` + +Here is a plot of these data: + +```{r parus-plot} +ggplot(data=parus.dat,mapping=aes(x=year,y=pop))+ + geom_line()+geom_point()+ + expand_limits(y=0)+ + theme_classic() +``` + +## Specifying a continuous-time process model + +To keep things simple, let's attempt to explain these data using a very simple model of stable but stochastic population dynamics, the logistic, or Verhulst-Pearl, equation with environmental stochasticity. +We'll write this model as a stochastic differential equation (SDE), specifically an Ito diffusion: +$$dN = r\,N\,\left(1-\frac{N}{K}\right)\,dt+\sigma\,N\,dW(t),$$ +where $N$ is the population size, $r$ is a fixed rate, the so-called "Malthusian parameter", $K$ is the population's "carrying capacity", $\sigma$ describes the intensity of extrinsic stochastic forcing on the system, and $dW$ is an increment of a standard Wiener process. +[Those unfamiliar with Wiener processes and Ito diffusions will find it useful to visualize $dW(t)$, for each time $t$, as a normal random variable with mean zero and standard deviation $\sqrt{dt}$.] +To implement this model in `pomp`, we must tell the package how to simulate this model. +The easiest way to simulate such an SDE is via the *Euler-Maruyama* method. +In this approximation, we take a large number of very small steps, each of duration $\Delta t$. +At each step, we hold the right-hand side of the above equation constant, compute $\Delta N$ using that equation, and increment $N$ accordingly. +`pomp` gives us the `euler.sim` function to assist us in implementing the Euler-Maruyama method. +To use it, we must encode the computations that take a single step. +The best way to do this is to write a snippet of code in the C language. +The following is such a snippet for the stochastic logistic equation above. + +```{r logistic-step-fun} +step.fun <- Csnippet(" + double dW = rnorm(0,sqrt(dt)); + N += r*N*(1-N/K)*dt+sigma*N*dW; + ") +``` + +This is just a snippet of C code: not all the variables are declared and the context of the snippet is not specified. +When given this snippet, `pomp` will provide the necessary declarations and context, compile the resulting C code, dynamically link to it, and use it to simulate realizations of the process model. +We cause all this to happen when we construct an object of class `pomp` via a call to the constructor function, which is also named `pomp`: + +```{r logistic-pomp1,cache=FALSE} +parus <- pomp(data=parus.dat,time="year",t0=1959, + rprocess=euler.sim(step.fun=step.fun,delta.t=1/365), + statenames="N",paramnames=c("r","K","sigma")) +``` + +In the above, we've specified an Euler-Maruyama time-step of about one day. +The `t0` argument specifies that we are going to treat the stochastic state process as being initialized in year 1959. +We use the `statenames` and `paramnames` arguments to indicate which of the undeclared variables in the `Csnippet` `step.fun` are state variables and which are fixed parameters. +Since `dW` is a local variable, we must provide an ordinary C declaration for it. +Note that `dt` is a variable that is defined in the context of this snippet; it is actually provided by `pomp` and will contain the size of the Euler step. +The `rnorm` function is part of the [`R` API](http://cran.r-project.org/doc/manuals/r-release/R-exts.html#The-R-API): see the [manual on "Writing R Extensions"](http://cran.r-project.org/doc/manuals/r-release/R-exts.html) for a description of this and the other [distribution functions provided as part of the `R` API](http://cran.r-project.org/doc/manuals/r-release/R-exts.html#Distribution-functions). +Finally, note that the state variable `N` is over-written by this snippet: it's value when the first line is executed is overwritten by the second line. + +[A full set of rules for writing `pomp` C snippets is given below][rules]. + +With the process model in place, we can simulate the process model using the `simulate` function and plot several realizations for a given set of parameters. + +```{r logistic-simul1} +simStates <- simulate(parus,nsim=10,params=c(r=0.2,K=200,sigma=0.5,N.0=200),states=TRUE) +``` +```{r logistic-plot1,echo=FALSE} +melt(simStates) %>% + dcast(rep+time~variable) %>% + ggplot(mapping=aes(x=time,y=N,group=rep,color=factor(rep)))+ + geom_line()+guides(color=FALSE)+ + theme_classic() +``` + + +## Specifying the measurement model + +Although it is the process model that is usually the focus of an investigator's interest, the measurement model is equally important because it connects the process model to the data. +For this example, let's model the observations using a Poisson distribution: +$$\mathrm{pop}_t \sim \mathrm{Poisson}(\phi\,N),$$ +where $\mathrm{pop}_t$ is our census population size at time $t$, $N$ is the true population size, and $\phi$ is a scaling parameter. + +### The rmeasure component + +The following snippet encodes the rmeasure component for this model. +```{r logistic-rmeasure} +rmeas <- Csnippet(" + pop = rpois(phi*N); + ") +``` +In this snippet of code, `N` is the state variable, `phi` is another parameter, and `pop` is the name of our observable, as defined in the dataset `parus.dat`. +The `rpois` function is part of the [`R` API](http://cran.r-project.org/doc/manuals/r-release/R-exts.html#The-R-API): it takes a single argument---the Poisson distribution's parameter---and returns a pseudo-random draw from the Poisson distribution with that parameter. +As with the `step.fun` snippet above, execution of this snippet causes `pop` to be overwritten. + +To fold this into our `pomp` object, we do +```{r logistic-pomp2,cache=FALSE} +parus <- pomp(parus,rmeasure=rmeas,paramnames="phi",statenames="N") +``` +Note that, again, we must tell `pomp` which of the variables is a parameter and which is a state variable. +We can now simulate from the full POMP model and plot the results. +```{r logistic-simul2} +sim <- simulate(parus,params=c(r=0.2,K=200,phi=0.5,sigma=0.5,N.0=200), + nsim=10,obs=TRUE,states=TRUE) +``` +```{r logistic-plot2,echo=FALSE} +sim %>% melt() %>% + ggplot(mapping=aes(x=time,y=value,group=rep,color=factor(rep)))+ + geom_line()+ + guides(color=FALSE)+scale_y_sqrt()+ + facet_grid(variable~.,scales="free_y") + +sim %>% melt() %>% dcast(rep+time~variable,value.var='value') %>% + ggplot(mapping=aes(x=N,y=pop,color=factor(rep)))+ + geom_point()+scale_x_sqrt()+scale_y_sqrt()+ + coord_equal()+ + guides(color=FALSE) +``` + +### The dmeasure component + +The following snippet encodes the dmeasure component. +```{r logistic-dmeasure} +dmeas <- Csnippet(" + lik = dpois(pop,phi*N,give_log); + ") +``` +and we fold it into the `pomp` object via +```{r logistic-pomp3,cache=FALSE} +parus <- pomp(parus,dmeasure=dmeas,paramnames="phi",statenames="N") +``` + +In the `dmeas` snippet, `dpois` again comes from the [`R` API](http://cran.r-project.org/doc/manuals/r-release/R-exts.html#The-R-API). +It takes three arguments, the datum, the Poisson parameter, and `give_log`. +When `give_log=0`, `dpois` returns the Poisson likelihood; +when `give_log=1`, `dpois` returns the log of this likelihood. +When this snippet is executed, `pomp` will provide the value of `give_log` according to its needs. +It is the user's responsibility to make sure that the correct value is returned. + +Since we now have both the rprocess and the dmeasure components in place, we can perform a particle filtering operation to estimate the log likelihood at any given point in parameter space. +For example, we can do +```{r logistic-pfilter} +pf <- pfilter(parus,Np=1000,params=c(r=0.2,K=200,phi=0.5,sigma=0.5,N.0=200)) +logLik(pf) +``` + +## A continuous-time deterministic skeleton + +A deterministic skeleton of the logistic model is obtained by taking $\sigma\to 0$, which leads to the deterministic differential equation +$$\frac{dN}{dt} = r\,N\,\left(1-\frac{N}{K}\right).$$ +The following snippet encodes this deterministic skeleton and folds it into the `pomp` object. +```{r logistic-skeleton,cache=FALSE} +skel <- Csnippet(" + DN = r*N*(1-N/K); + ") + +parus <- pomp(parus,skeleton=skel,skeleton.type="vectorfield",statenames="N",paramnames=c("r","K")) +``` +Note that in this snippet, `DN` is filled with the value of the time-derivative of `N`. +[See below for a complete set of rules for writing C snippets for `pomp`][rules]. + +With the deterministic skeleton in place we can generate several trajectories of the skeleton using `trajectory`, as follows, and plot the result. +```{r logistic-traj1} +pars <- parmat(c(r=1,K=200,phi=0.5,sigma=0.5,N.0=20),5) +pars["N.0",] <- seq(20,300,length=5) +traj <- trajectory(parus,params=pars,times=seq(1959,1970,by=0.01)) +``` +```{r logistic-plot3,echo=FALSE} +trajectory(parus,params=pars,times=seq(1959,1970,by=0.01),as.data.frame=TRUE) %>% + ggplot(mapping=aes(x=time,y=N,group=traj,color=traj))+ + guides(color=FALSE)+ + geom_line() +``` + +## Specifying a discrete-time process model and skeleton + +Let us demonstrate the implementation of discrete-time process models by replacing the continuous-time logistic equation used above with the stochastic Beverton-Holt model +$$N_{t+1}=\frac{a\,N_t}{1+b\,N_t}\,\varepsilon_t,$$ +where $a$ and $b$ are parameters and $\varepsilon_t\sim\mathrm{Lognormal}(-\tfrac{1}{2}\sigma^2,\sigma)$. + +Since we are now dealing with a discrete-time model, `euler.sim` will no longer construct an appropriate rprocess component. +Instead, we can use `discrete.time.sim`, which also takes a C snippet encoding the one-step simulation. +The following snippet simulates a single iteration of the stochastic Beverton-Holt map +```{r bh-stepfun} +bh.step <- Csnippet(" + double eps = rlnorm(-sigma*sigma/2,sigma); + N = a*N/(1+b*N)*eps; + ") +``` +A corresponding skeleton is the deterministic Beverton-Holt map obtained by setting $e_t=1$ in the above equation. +A snippet that implements this map is +```{r bh-skeleton} +bh.skel <- Csnippet(" + DN = a*N/(1+b*N); + ") +``` +Note that, as in the continuous case, we indicate the new value of the state variable by prepending `D` to the variable name. + +We create a new `pomp` object based on this process model but with the same rmeasure and dmeasure components as in `parus` by executing +```{r bh-pomp1,cache=FALSE} +parus.bh <- pomp(parus,rprocess=discrete.time.sim(bh.step,delta.t=1),skeleton=bh.skel,skeleton.type="map",skelmap.delta.t=1,statenames="N",paramnames=c("a","b","sigma")) +``` +The following codes compute some simulations, a trajectory of the skeleton, and run a particle filtering operation. +```{r bh-test} +coef(parus.bh) <- c(a=1.1,b=5e-4,sigma=0.5,N.0=30,phi=1) +sim <- simulate(parus.bh) +traj <- trajectory(parus.bh) +pf <- pfilter(parus.bh,Np=1000) +``` + +## Parameter transformations + +We can specify model-specific parameter transformations using C snippets. +The following implements log transformation of the $r$ and $K$ parameters of the logistic model and folds them into the `pomp` object `parus`. +```{r logistic-partrans,cache=FALSE} +partrans <- Csnippet(" + Tr = exp(r); + TK = exp(K); + ") + +parinvtrans <- Csnippet(" + Tr = log(r); + TK = log(K); + ") + +parus <- pomp(parus,parameter.transform=partrans,parameter.inv.transform=parinvtrans, + paramnames=c("r","K")) +``` +```{r logistic-partrans-test,include=FALSE,cache=FALSE} +p <- c(r=1,K=200,phi=1,N.0=200,sigma=0.5) +coef(parus,transform=TRUE) <- partrans(parus,p,dir="inv") +stopifnot(all.equal(p,coef(parus))) +``` + +## Rules for writing C snippets + +To fully understand how `pomp` makes use of C snippets, it is informative to have a look at the C file created by any call to `pomp` involving one or more C snippets. +Run the following in an `R` session and view the C file that is created in the session's temporary directory. +```{r tempfile-view,eval=FALSE} +op <- options(verbose=TRUE) + +parus <- pomp(data=parus.dat,times="year",t0=1959,rprocess=euler.sim(step.fun,delta.t=1/365), + dmeasure=dmeas,rmeasure=rmeas,statenames="N",paramnames=c("r","phi","K","N.0","sigma")) + +options(op) +``` + +### General rules + +1. C snippets must be valid C. They will embedded verbatim in a template file which will then be compiled by a call to `R CMD SHLIB`. If the resulting file does not compile, an error message wil be generated. No attempt is made by `pomp` to interpret this message. Typically, compilation errors are due to either the snippet's being invalid C or one or more undeclared variables. +1. Each state variable or parameter must be left undeclared in the snippet and declared in the corresponding argument to `pomp`, i.e., in either `statenames` or `paramnames`. Compiler errors that complain about undeclared state variables or parameters are likely due to failure to include these parameters in the appropriate vector of names. +1. Names of observables are determined by their names in the data. They must be referred to in measurement model snippets (rmeasure or dmeasure) by those names. +1. If the `pomp` object contains a table of covariates (see `?pomp`), then the variables in the covariate table will be available by their names in the context within which the snippet is executed. +1. `R` variables with names containing dots are replaced in the C codes by variable names in which all dots have been replaced by underscores ("_"). +1. A C snippet can declare local variables. Be careful not to use names that match those of state variables, observables, or parameters. The latter must never be declared within a snippet. +1. The header `R.h`, provided with `R`, will be included, making all of the [`R` C API](http://cran.r-project.org/doc/manuals/r-release/R-exts.html#The-R-API) available for use in the snippet. +1. The header `pomp.h`, provided with `pomp`, will be included, making all of the `pomp` C API available for use in every snippet. Do `file.show(system.file("include/pomp.h",package="pomp"))` to view this header file. +1. Snippets of C code passed to the `globals` argument of `pomp` will be included at the head of the generated C file. This can be used to define global variables, define useful functions, and include header files. + +### C snippets implementing Euler steps for use by `euler.sim` + +1. The ultimate goal of such a snippet is to replace the state variables with their new random values at the end of the time interval. Accordingly, each state variable should be over-written with its new value. +1. In addition to the states, parameters, covariates (if any), and observables, the variables `t` and `dt`, containing respectively the time at the beginning of the Euler step and the Euler step's duration, will be defined in the context in which the snippet is executed. + +### C snippets implementing the rmeasure component + +1. The ultimate goal of such a snippet is to fill the observables with random values drawn from the measurement model distribution. Accordingly, each observable should be assigned a new value. +1. In addition to the states, parameters, covariates (if any), and observables, the variable `t`, containing the time of the observation, will be defined in the context in which the snippet is executed. + +### C snippets implementing the dmeasure component + +1. The ultimate goal of such a snippet is to fill the `lik` variable with the likelihood of the data given the state. Alternatively, if `give_log=1`, `lik` should be filled with the log likelihood. +1. In addition to the states, parameters, covariates (if any), and observables, the variable `t`, containing the time of the observation, will be defined in the context in which the snippet is executed. + +### C snippets implementing the deterministic skeleton + +1. For each state variable, there is a corresponding component of the deterministic skeleton. The goal of such a snippet is to compute all the components. +1. When the skeleton is a map, the component corresponding to state variable `x` is named `Dx` and is the new value of `x` after one iteration of the map. +1. When the skeleton is a vectorfield, the component corresponding to state variable `x` is named `Dx` and is the value of $dx/dt$. +1. As with the other C snippets, all states, parameters and covariates, as well as the current time, `t`, will be defined in the context within which the snippet is executed. + +### C snippets implementing parameter transformations + +1. The parameter transformation taking a parameter vector from the scale defined by the model codes to another scale is specified as the `parameter.inv.transform` whilst the transformation taking a parameter vector from the alternative scale to that on which the model is defined is specified as the `parameter.transform`. +1. The goal of a either of these snippets is the computation of the values of the transformed parameters. The value of transformed parameter `x` should be assigned to variable `Tx`. +1. Time- and covariate-dependent transformations are not allowed. Therefore, the variables `t` and any covariates will not be available in the context within which a parameter transformation snippet is executed. + +## References + [TRUNCATED] To get the complete diff run: svnlook diff /svnroot/pomp -r 1120 From noreply at r-forge.r-project.org Sun Mar 1 16:17:09 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Sun, 1 Mar 2015 16:17:09 +0100 (CET) Subject: [Pomp-commits] r1121 - pkg/pomp pkg/pomp/man www/content www/vignettes Message-ID: <20150301151709.5AD1C18731C@r-forge.r-project.org> Author: kingaa Date: 2015-03-01 16:17:08 +0100 (Sun, 01 Mar 2015) New Revision: 1121 Modified: pkg/pomp/DESCRIPTION pkg/pomp/man/csnippet.Rd www/content/vignettes.htm www/vignettes/getting_started.R www/vignettes/getting_started.Rmd www/vignettes/getting_started.html www/vignettes/pomp.pdf Log: - improve Csnippet help page - simplify the Getting Started vignette - update the package vignettes webpage (remove intro and advanced topics vignettes) Modified: pkg/pomp/DESCRIPTION =================================================================== --- pkg/pomp/DESCRIPTION 2015-03-01 03:41:09 UTC (rev 1120) +++ pkg/pomp/DESCRIPTION 2015-03-01 15:17:08 UTC (rev 1121) @@ -1,8 +1,8 @@ Package: pomp Type: Package Title: Statistical Inference for Partially Observed Markov Processes -Version: 0.62-2 -Date: 2015-02-28 +Version: 0.62-3 +Date: 2015-03-01 Authors at R: c(person(given=c("Aaron","A."),family="King", role=c("aut","cre"),email="kingaa at umich.edu"), person(given=c("Edward","L."),family="Ionides",role=c("aut")), @@ -25,18 +25,18 @@ MailingList: Subscribe to pomp-announce at r-forge.r-project.org for announcements by going to http://lists.r-forge.r-project.org/mailman/listinfo/pomp-announce. Collate: aaa.R authors.R generics.R eulermultinom.R csnippet.R pomp-fun.R plugins.R builder.R - parmat.R logmeanexp.R slice-design.R + parmat.R logmeanexp.R slice-design.R profile-design.R sobol.R bsplines.R sannbox.R - pomp-class.R load.R pomp.R pomp-methods.R - rmeasure-pomp.R rprocess-pomp.R init-state-pomp.R - dmeasure-pomp.R dprocess-pomp.R skeleton-pomp.R + pomp-class.R load.R pomp.R pomp-methods.R + rmeasure-pomp.R rprocess-pomp.R init-state-pomp.R + dmeasure-pomp.R dprocess-pomp.R skeleton-pomp.R dprior-pomp.R rprior-pomp.R - simulate-pomp.R trajectory-pomp.R plot-pomp.R - pfilter.R pfilter-methods.R minim.R traj-match.R + simulate-pomp.R trajectory-pomp.R plot-pomp.R + pfilter.R pfilter-methods.R minim.R traj-match.R bsmc.R bsmc2.R mif.R mif-methods.R proposals.R pmcmc.R pmcmc-methods.R - nlf-funcs.R nlf-guts.R nlf-objfun.R nlf.R + nlf-funcs.R nlf-guts.R nlf-objfun.R nlf.R probe.R probe-match.R basic-probes.R spect.R spect-match.R abc.R abc-methods.R example.R Modified: pkg/pomp/man/csnippet.Rd =================================================================== --- pkg/pomp/man/csnippet.Rd 2015-03-01 03:41:09 UTC (rev 1120) +++ pkg/pomp/man/csnippet.Rd 2015-03-01 15:17:08 UTC (rev 1121) @@ -6,7 +6,7 @@ For including snippets of C code in \code{pomp} objects. } \usage{ - Csnippet(text); + Csnippet(text) } \arguments{ \item{text}{ @@ -18,12 +18,68 @@ } \section{Using C snippets to accelerate computations}{ From version 0.50, \pkg{pomp} provides a facility whereby users can define their model's components using inline C code. - The \code{pomp} constructor combines these \code{Csnippet}s into a compilable C file stored in the \R session's temporary directory. - They are then compiled (via \code{\link[=SHLIB]{R CMD SHLIB}}) into dynamically loadable shared objects. - This is then dynamically loaded as needed. + Furnishing one or more \code{Csnippet}s as arguments to the \code{pomp} constructor causes them to be written to a C file stored in the \R session's temporary directory, which is then compiled (via \code{\link[=SHLIB]{R CMD SHLIB}}) into a dynamically loadable shared object file. + This is then loaded as needed. - Instructions for writing models using \code{Csnippet}s, along with examples, are given in the tutorials on the \href{http://pomp.r-forge.r-project.org}{package website}. + \strong{Note to Windows and Mac users:} + By default, your \R installation may not support \code{\link[=SHLIB]{R CMD SHLIB}}. + Have a look at the tutorials on the package website for instructions on enabling this powerful feature of \R. + + In writing a \code{Csnippet} one must bear in mind both the \emph{goal} of the snippet, i.e., what computation it is intended to perform, and the \emph{context} in which it will be executed. + Details of both of these are given below in the form of rules governing the use of \code{Csnippet}s. + Illustrative examples are given in the tutorials on the \href{http://pomp.r-forge.r-project.org}{package website}. } +\section{General rules for writing C snippets}{ + \enumerate{ + \item C snippets must be valid C. They will embedded verbatim in a template file which will then be compiled by a call to \code{R CMD SHLIB}. If the resulting file does not compile, an error message wil be generated. No attempt is made by \pkg{pomp} to interpret this message. Typically, compilation errors are due to either invalid C syntax or undeclared variables. + \item State variables, parameters, observables, and covariates must be left undeclared in the snippet. State variables and parameters must be declared in either the \code{statenames} or \code{paramnames} argument to \code{pomp}, as appropriate. Compiler errors that complain about undeclared state variables or parameters are usually due to failure to include these parameters in the appropriate vector of names. + \item A C snippet can declare local variables. Be careful not to use names that match those of state variables, observables, or parameters. The latter must never be declared within a snippet. + \item Names of observables are determined by their names in the data. They must be referred to in measurement model snippets (rmeasure or dmeasure) by those names. + \item If the \code{pomp} object contains a table of covariates (see \code{\link{pomp}}), then the variables in the covariate table will be available, by their names, in the context within which the snippet is executed. + \item \R variables with names containing dots (\sQuote{.}) are replaced in the C codes by variable names in which all dots have been replaced by underscores (\sQuote{_}). + \item The header \file{R.h}, provided with \R, will be included in the generated C file, making all of the \href{http://cran.r-project.org/doc/manuals/r-release/R-exts.html#The-R-API}{\R C API} available for use in the snippet. + \item The header \file{pomp.h}, provided with \pkg{pomp}, will also be included, making all of the \pkg{pomp} C API available for use in every snippet. Do \preformatted{file.show(system.file("include/pomp.h",package="pomp"))} to view this header file. + \item Snippets of C code passed to the \code{globals} argument of \code{pomp} will be included at the head of the generated C file. This can be used to declare global variables, define useful functions, and include arbitrary header files. + } +} +\section{Rules for writing \code{rmeasure} snippets}{ + \enumerate{ + \item The goal of such a snippet is to fill the observables with random values drawn from the measurement model distribution. Accordingly, each observable should be assigned a new value. + \item In addition to the states, parameters, covariates (if any), and observables, the variable \code{t}, containing the time of the observation, will be defined in the context in which the snippet is executed. + } +} +\section{Rules for writing \code{dmeasure} snippets}{ + \enumerate{ + \item The goal of such a snippet is to fill the \code{lik} variable with the likelihood of the data given the state. Alternatively, if \code{give_log=1}, \code{lik} should be filled with the log likelihood. + \item In addition to the states, parameters, covariates (if any), and observables, the variable \code{t}, containing the time of the observation, will be defined in the context in which the snippet is executed. + } +} +\section{Rules for writing \code{euler.sim} and \code{discrete.time.sim} snippets}{ + \enumerate{ + \item The goal of such a snippet is to replace the state variables with their new random values at the end of the time interval. Accordingly, each state variable should be over-written with its new value. + \item In addition to the states, parameters, covariates (if any), and observables, the variables \code{t} and \code{dt}, containing respectively the time at the beginning of the Euler step and the Euler step's duration, will be defined in the context in which the snippet is executed. + } +} +\section{Rules for writing \code{skeleton} snippets}{ + \enumerate{ + \item For each state variable, there is a corresponding component of the deterministic skeleton. The goal of such a snippet is to compute all the components. + \item When the skeleton is a map, the component corresponding to state variable \code{x} is named \code{Dx} and is the new value of \code{x} after one iteration of the map. + \item When the skeleton is a vectorfield, the component corresponding to state variable \code{x} is named \code{Dx} and is the value of $dx/dt$. + \item As with the other C snippets, all states, parameters and covariates, as well as the current time, \code{t}, will be defined in the context within which the snippet is executed. + } +} +\section{Rules for writing parameter transformation snippets}{ + \enumerate{ + \item The parameter transformation mapping a parameter vector from the scale defined by the model codes to another scale is specified as the \code{parameter.inv.transform} whilst the transformation mapping a parameter vector from the alternative scale to that on which the model is defined is specified as the \code{parameter.transform}. + \item The goal of a these snippets is the computation of the values of the transformed parameters. The value of transformed parameter \code{x} should be assigned to variable \code{Tx}. + \item Time-, state-, and covariate-dependent transformations are not allowed. Therefore, neither the time, nor any state variables, nor any of the covariates will be available in the context within which a parameter transformation snippet is executed. + } +} +\section{Viewing the generated C code}{ + It can be useful to view the C code generated by calling \code{pomp} with one or more \code{Csnippet} arguments. + To do so, set \code{options(verbose=TRUE)} before calling \code{pomp}. + A message giving the name of the generated C file (in the session temporary directory) will be printed. +} \author{Aaron A. King \email{kingaa at umich dot edu}} \seealso{ \code{\link{pomp}}, \code{\link{plugins}}, and the tutorials on the \href{http://pomp.r-forge.r-project.org}{package website}. Modified: www/content/vignettes.htm =================================================================== --- www/content/vignettes.htm 2015-03-01 03:41:09 UTC (rev 1120) +++ www/content/vignettes.htm 2015-03-01 15:17:08 UTC (rev 1121) @@ -2,16 +2,10 @@ - - - + + + - - - - - - Modified: www/vignettes/getting_started.R =================================================================== --- www/vignettes/getting_started.R 2015-03-01 03:41:09 UTC (rev 1120) +++ www/vignettes/getting_started.R 2015-03-01 15:17:08 UTC (rev 1121) @@ -33,7 +33,7 @@ require(magrittr) require(pomp) theme_set(theme_bw()) -stopifnot(packageVersion("pomp")>="0.62-1") +stopifnot(packageVersion("pomp")>="0.62-2") options( keep.source=TRUE, stringsAsFactors=FALSE, @@ -205,11 +205,3 @@ coef(parus,transform=TRUE) <- partrans(parus,p,dir="inv") stopifnot(all.equal(p,coef(parus))) -## ----tempfile-view,eval=FALSE-------------------------------------------- -## op <- options(verbose=TRUE) -## -## parus <- pomp(data=parus.dat,times="year",t0=1959,rprocess=euler.sim(step.fun,delta.t=1/365), -## dmeasure=dmeas,rmeasure=rmeas,statenames="N",paramnames=c("r","phi","K","N.0","sigma")) -## -## options(op) - Modified: www/vignettes/getting_started.Rmd =================================================================== --- www/vignettes/getting_started.Rmd 2015-03-01 03:41:09 UTC (rev 1120) +++ www/vignettes/getting_started.Rmd 2015-03-01 15:17:08 UTC (rev 1121) @@ -1,7 +1,6 @@ --- title: "Getting started with pomp" author: "Aaron A. King" -date: "02/28/2015" output: html_document: theme: flatly @@ -14,6 +13,8 @@ Please share and remix noncommercially, mentioning its origin. ![CC-BY_NC](http://pomp.r-forge.r-project.org/graphics/cc-by-nc.png) +This document compiled with `pomp` version `r packageVersion("pomp")`. + ```{r opts,include=FALSE} library(knitr) prefix <- "getting-started" @@ -51,7 +52,7 @@ require(magrittr) require(pomp) theme_set(theme_bw()) -stopifnot(packageVersion("pomp")>="0.62-1") +stopifnot(packageVersion("pomp")>="0.62-2") options( keep.source=TRUE, stringsAsFactors=FALSE, @@ -229,7 +230,7 @@ The `rnorm` function is part of the [`R` API](http://cran.r-project.org/doc/manuals/r-release/R-exts.html#The-R-API): see the [manual on "Writing R Extensions"](http://cran.r-project.org/doc/manuals/r-release/R-exts.html) for a description of this and the other [distribution functions provided as part of the `R` API](http://cran.r-project.org/doc/manuals/r-release/R-exts.html#Distribution-functions). Finally, note that the state variable `N` is over-written by this snippet: it's value when the first line is executed is overwritten by the second line. -[A full set of rules for writing `pomp` C snippets is given below][rules]. +A full set of rules for writing `pomp` C snippets is given in the package help `?Csnippet`. With the process model in place, we can simulate the process model using the `simulate` function and plot several realizations for a given set of parameters. @@ -328,7 +329,7 @@ parus <- pomp(parus,skeleton=skel,skeleton.type="vectorfield",statenames="N",paramnames=c("r","K")) ``` Note that in this snippet, `DN` is filled with the value of the time-derivative of `N`. -[See below for a complete set of rules for writing C snippets for `pomp`][rules]. +See the package help (`?Csnippet`) for a complete set of rules for writing C snippets. With the deterministic skeleton in place we can generate several trajectories of the skeleton using `trajectory`, as follows, and plot the result. ```{r logistic-traj1} @@ -403,59 +404,4 @@ stopifnot(all.equal(p,coef(parus))) ``` -## Rules for writing C snippets - -To fully understand how `pomp` makes use of C snippets, it is informative to have a look at the C file created by any call to `pomp` involving one or more C snippets. -Run the following in an `R` session and view the C file that is created in the session's temporary directory. -```{r tempfile-view,eval=FALSE} -op <- options(verbose=TRUE) - -parus <- pomp(data=parus.dat,times="year",t0=1959,rprocess=euler.sim(step.fun,delta.t=1/365), - dmeasure=dmeas,rmeasure=rmeas,statenames="N",paramnames=c("r","phi","K","N.0","sigma")) - -options(op) -``` - -### General rules - -1. C snippets must be valid C. They will embedded verbatim in a template file which will then be compiled by a call to `R CMD SHLIB`. If the resulting file does not compile, an error message wil be generated. No attempt is made by `pomp` to interpret this message. Typically, compilation errors are due to either the snippet's being invalid C or one or more undeclared variables. -1. Each state variable or parameter must be left undeclared in the snippet and declared in the corresponding argument to `pomp`, i.e., in either `statenames` or `paramnames`. Compiler errors that complain about undeclared state variables or parameters are likely due to failure to include these parameters in the appropriate vector of names. -1. Names of observables are determined by their names in the data. They must be referred to in measurement model snippets (rmeasure or dmeasure) by those names. -1. If the `pomp` object contains a table of covariates (see `?pomp`), then the variables in the covariate table will be available by their names in the context within which the snippet is executed. -1. `R` variables with names containing dots are replaced in the C codes by variable names in which all dots have been replaced by underscores ("_"). -1. A C snippet can declare local variables. Be careful not to use names that match those of state variables, observables, or parameters. The latter must never be declared within a snippet. -1. The header `R.h`, provided with `R`, will be included, making all of the [`R` C API](http://cran.r-project.org/doc/manuals/r-release/R-exts.html#The-R-API) available for use in the snippet. -1. The header `pomp.h`, provided with `pomp`, will be included, making all of the `pomp` C API available for use in every snippet. Do `file.show(system.file("include/pomp.h",package="pomp"))` to view this header file. -1. Snippets of C code passed to the `globals` argument of `pomp` will be included at the head of the generated C file. This can be used to define global variables, define useful functions, and include header files. - -### C snippets implementing Euler steps for use by `euler.sim` - -1. The ultimate goal of such a snippet is to replace the state variables with their new random values at the end of the time interval. Accordingly, each state variable should be over-written with its new value. -1. In addition to the states, parameters, covariates (if any), and observables, the variables `t` and `dt`, containing respectively the time at the beginning of the Euler step and the Euler step's duration, will be defined in the context in which the snippet is executed. - -### C snippets implementing the rmeasure component - -1. The ultimate goal of such a snippet is to fill the observables with random values drawn from the measurement model distribution. Accordingly, each observable should be assigned a new value. -1. In addition to the states, parameters, covariates (if any), and observables, the variable `t`, containing the time of the observation, will be defined in the context in which the snippet is executed. - -### C snippets implementing the dmeasure component - -1. The ultimate goal of such a snippet is to fill the `lik` variable with the likelihood of the data given the state. Alternatively, if `give_log=1`, `lik` should be filled with the log likelihood. -1. In addition to the states, parameters, covariates (if any), and observables, the variable `t`, containing the time of the observation, will be defined in the context in which the snippet is executed. - -### C snippets implementing the deterministic skeleton - -1. For each state variable, there is a corresponding component of the deterministic skeleton. The goal of such a snippet is to compute all the components. -1. When the skeleton is a map, the component corresponding to state variable `x` is named `Dx` and is the new value of `x` after one iteration of the map. -1. When the skeleton is a vectorfield, the component corresponding to state variable `x` is named `Dx` and is the value of $dx/dt$. -1. As with the other C snippets, all states, parameters and covariates, as well as the current time, `t`, will be defined in the context within which the snippet is executed. - -### C snippets implementing parameter transformations - -1. The parameter transformation taking a parameter vector from the scale defined by the model codes to another scale is specified as the `parameter.inv.transform` whilst the transformation taking a parameter vector from the alternative scale to that on which the model is defined is specified as the `parameter.transform`. -1. The goal of a either of these snippets is the computation of the values of the transformed parameters. The value of transformed parameter `x` should be assigned to variable `Tx`. -1. Time- and covariate-dependent transformations are not allowed. Therefore, the variables `t` and any covariates will not be available in the context within which a parameter transformation snippet is executed. - ## References - -[rules]:./getting_started.html##rules-for-writing-c-snippets "Rules for writing C snippets" Modified: www/vignettes/getting_started.html =================================================================== --- www/vignettes/getting_started.html 2015-03-01 03:41:09 UTC (rev 1120) +++ www/vignettes/getting_started.html 2015-03-01 15:17:08 UTC (rev 1121) @@ -10,7 +10,6 @@ -Getting started with pomp @@ -64,7 +63,6 @@

Licensed under the Creative Commons attribution-noncommercial license. Please share and remix noncommercially, mentioning its origin.
CC-BY_NC

+

This document compiled with pomp version 0.62.2.

Partially observed Markov process (POMP) models

As its name implies pomp is focused on partially observed Markov process models. These are also known as state-space model, hidden Markov models, and stochastic dynamical systems models. Such models consist of an unobserved stochastic state process, connected to the data via an explicit model of the observation process. We refer to the former as the process model and the latter as the measurement model. Each model is, in fact, a probability distribution. If we let \(Y_t\) denote the measurement process at time \(t\) and \(X_t\) the state process, then by definition, the process model is determined by the density \(f_{X_t|X_{t-1}}\) and the measurement process by the density \(f_{Y_t|X_t}\). We think of the data, \(y^*_t\), \(t=1,\dots,T\) as being a single realization of the \(Y\) process. To implement a POMP model in pomp, we have to specify the measurement and process distributions.

@@ -108,18 +99,20 @@
+ + [TRUNCATED] To get the complete diff run: svnlook diff /svnroot/pomp -r 1121 From noreply at r-forge.r-project.org Sun Mar 1 17:21:55 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Sun, 1 Mar 2015 17:21:55 +0100 (CET) Subject: [Pomp-commits] r1122 - www/graphics Message-ID: <20150301162155.5A11B187270@r-forge.r-project.org> Author: kingaa Date: 2015-03-01 17:21:55 +0100 (Sun, 01 Mar 2015) New Revision: 1122 Added: www/graphics/pomp_schematic1.png www/graphics/pomp_schematic2.png Removed: www/graphics/state_space_diagram1.png www/graphics/state_space_diagram2.png Log: - change figures Added: www/graphics/pomp_schematic1.png =================================================================== --- www/graphics/pomp_schematic1.png (rev 0) +++ www/graphics/pomp_schematic1.png 2015-03-01 16:21:55 UTC (rev 1122) @@ -0,0 +1,371 @@ +?PNG + + +IHDR?1???TsRGB???bKGD??????? pHYs  ??tIME?:t0IG IDATx???$E???O?Yr%?d? ??"?EEqEAPQPD at 2 +HT?H??K?9??{??Y??v???tOw????8?#SPrb???????~iv??c??8=l??:Yo???tS?Z??PTg?*[??JWp.???}!????M???$?_? S?=???( ?*9?3EN?2?????<?7a&?)??%?p?$ ?????F?~?zj?>??M{??a?[??sQBR?NL?|+???;1?$]?`/>cc?. +P7~X1?7g+vIR?M????.??1?h?K??h?\]??G???S??&??????la????H7?J=4WNU#??oYe?*??? >??v`??'@L????D??}K6???#?,1C?>?H?,$??Q?na???5?*????*??,?igb????S{gwZ?G?_?X`??:+??????u??K?? +??T~?L9{?????.?fu{C??|_????QK)]? 5?>Y '??9_U7??>K?v??? +?eD?X?Q???\???d????V????? ?$O'??1?9?E??$m?R???+?6K(?9?Z?,\???6}???A6/ ??????P???NSB??crx a? ??L?nHvY?h.?g?AI/?W??mo????z!?V/C???g`8?D?n???????/?`Q????2?g? [{WkQwU?]"0?)?S?v?f??f?m??EK????????3?b=??9??u?uT?5 ?????y?~!?R?: ?? ?f?*e???\?#?~9?@?@?t+??c?h?k??oB?????e??v_??&??????b? ?-??? ??S?yS%?2?????l?l???A? +???A?G?0`d?????e;??g??*??\?g?'x???R??D?E?????3?P?X?|=???i???vj-???lR???[????b]? G?;L#??K?????U??ti??u??D)??I? ?Z~ =??Zdw:????#???n%??? ???U??????x|?,???g?(W?d?:?A?6N?3V?-??J???u;? +??????Vl??) ?-L???j?o?>4? +????ii???IB????g??????K(Dv?0 ?# ?9?mA???5Y?U?????? +?y!?nB?W?C?4/j" ?!?<?G??`zY?[=30 ??t?K?0??@??Zi??|?? ????N????|???|?P??z/ +?a?a??4???0?p?N??zZ>y!"??Lc &2???I????????a????X/-????0?????0n/+??3 ) ?q???M6T??iI_S??:M?~e.?R?/e?5?K`q??-Ojc??/e?S'???Zf??=(V???:??~??iu[?????H;?!?6?3? +???$???M?x???????O&?q??$F{????%?Vtdc?iA????O?M?_ ???????C?? +?]??D??vL8???d???4uB?li?Yb:???es??9?O^?#?VI??)}?h???[#T????6?s?@?????Aj?W?? X??? N?????)?xw??^SyN???j?D??eKs??]?N4Q??\?=??????P^]??)???=??_h'Cs?B;?b?y?t)????eC:X?? K<{6??^?|? ????????!~????]???W!??i??f?????si?O?????jO?\F?z?X??}?AQ?rs?5????H? +J?G???@????\P?i??G???!???Lf???????:???l)y?????H' ???R-???vV????W?s?M??7???|???2 ???t? ???b??5?8?R:&??2?O ??4IV????{50`??????w?N??~?s? ?JQN?.C] +?E9P;+???j?G^N??zy??xU)(?E4?????.)?Z3 ?&7???fx???;?n?p ?|?.]K?>?8#?qB?? ?%~???;29?s?ffLm???gLNCk??? +??X?;?9?Nd)o"?J`?(??>"?????"?=?????G?????????9?@?`4vq?2???????M;b????????diR?M=???n?YV??M>??????iJ?M????n???g??vb???*?D?x????????8>?? ?? 8??3P 6zW??7? 8??3?!}y??C?\?p?g ??? +1?Dd?????3??0?5?????m??>??*$t???J? ???? ?????u???f?????H???\?g ??Ij&<??/ +/ 3 +&? ????Nl?n??VqB^??:??J?K? ???????B??????d???a7gl????]????l?? ?7??||?_?I??p??????k?? iu??zc??#1?3?? +??? pb?8?'???H9?~????Y??30%6fiv?)?'???????o?|A$)/ilm??>?+EPp???S?!?? t??WT???V?B????EU?r?S?gw?]???2u]q????????z????????gg???L?Q??#p@~/|T?W?T???G??=,`?)??_J.u???F??0???ud?;??? +??? ??l~Q?????L???????h???? +??MR>?? +5?????????M??OC????#6?F?Majq???4E???)???????-???????b?o?kE?&$k?????j5???a?1?r?X??$??`? u?w2Y+u???J;6?1???i ??x?????????a?J?????U??_??W???????????????????h/~n?Ke?;???6E?i?????jp??\,a\?C?a?O?Nv?GN?'???#????@?>?'6y?'!e?????????x*k$oBP6kg????????p]??g??=???&????9??=(?]g?f????r??9??>(?? ?/????I5?-?kM|?:W?j???]~???1?y\???y??No d?S???W{`6? +??{q??????????-|'? bK?M?5?????r?n?w7?*?>?????l?????P??W?5W??V?Jm??y??R ?w????Vzb??z?\??*?~?_)?h]m?*?f??s5????{???v.??NaP??????[ +??oSk?????w?Z?nNU???????_D??`????a?????oj? +??K?Q????A??]??BJ??W^O?CR??Y ??!9??g?7){??/?n????5??>?I???2eyL?@???1??????w*???N??[????8?????_b;??M??EF????=?????S?V?{???x[????? w +v?? ?=Q????ow??%j#?4?6??Y??'v7??2z ? +???=??P????M?:?p\????????mege??? ?h?6?11}Kg???? ???|??v?#??D???LMN??'???????V?3oEG???X?8??q?? ?4? ????U=? t???pY??)&?V????f???6?cv?|E ? ?DZ????p13?# ?4?S?I??&e???????D?dX?4]??????>ub?8?N???g? +S??o5`?T???X?|  +???$r???????H???^=E??R?&g?????g ??x???J?O1pPJ^?? +ZFe?(???~?C?Q.??aRJ?y??1?p??&??#??m?r?? ?fd??????fh???fTi?mL?????/? + +K ??????x>v??v??p???e`3?????M{?Re??GN??3??5?a??p??N`???wO??R?t&?+X?a~7?]> ?1??U??????a{??????n +?*L?+?q????'|I?oA+?? ??????????8k?|??? ????#???????????"?h??g38I?Hpqze`1?z?[?.c????,?wl?p?VR7?)pr?%?-?H(Pf???????sq???F?5?????s*????1P??zC?NX?w????.\.,P???>3??????mbs?????(a?$?#?|??Q?n???Q?X??]??????k??j;?~r??h?p???| /j>???w?a??4?x.)??kv?????3U{?k9??0[??x??3p??U??}e?wj???.?3p_?.?\?j?X^dG?V?XF-?g??.U??P?R^????2?{/{e???c???????????????Mg30)?(????]?%?3?:?v??W?'??j?=?.?d`)??s^?8???U.X???l +CN?=?3?D?Rx?@?AI?l?J`?F???PVQ??%yH????XVPuyr?^?_ ? +??????2,? ???wiE??DxDx\?e?Pz?;v??>N? ??lFK?iPv%????*iy8??u8z??^?????H??Zl?`?3a??|?#??*??'?L +C?L?v'&????o?????9l?f$q?? +??;?;U;?=K???=8I0??: ?????d?]??tk%1pl+??~??*? ???O??#?6O???,?Ded?m:lC?? +v2`?F??k6?B?)????%???????}????`]??8.???C$?~? +$?/h?????N??????}?*i}?? +M-?,?j????7???/!G??K?(??????B???,??*?s>w:??E?&1; q!?? ??4m???e?~8 at o?q???)Y?0{?C9@ ????y???????? ??o???,+'>]G*???0<6y??Q?i?? ?u?n-??W|'a}m?/:????v?%)??kg???????]s?????M>p?8??7V???9?^ ?VooE~$?u?>\?}????[??Z??y? ??? ??W????&]4^w?????|???????????@t?*?u?3??KFJ?F?-U???8uf??:;? ?????; + +r?\=3???? +`?'???&fc???y? ??????:?&???6 ???k?q????????? +????j????w??t? ?`?????o +?I???????h???????????~X0?M3??o?B????a+???????w????s|;8I?gB?i?m[?\'???0(??:???:?C?yPx1???????L^??B?????$N??A?A??U?Y???'?PVR???y?!?c?f<`/?`yFg??2uSq??-/[? ??t??^?Ye?[ +???&??/Pzj +a???qS#/??M?w!"?g,3?&{?;???z"???????%???[????P0???e???P)?ee??,u??N?$?V??$?Gb??&?;?g?>u??p'?(?? T?1????&*aI?o2?Z?dyO?Z????fYg??O?8Z?p~?x4i??Q>:?rm?Vt?YGX?-??????e?@???Fne????&??l???????M??)8d?=?bZpCin)???:??u?AY??????F??? +??????????????Pv#C`g??????u5???????W) ?/?lK?F)??( ????9?>?\j?c[?zk????8V?\?8Q??gx?~1??????????????????r?)?e.?)???~1ev?sx?????~}??'?{??????Y ??6???WA?uiri9??????T???[????Q??XVM?)p??/,!?8?2??*pm?i???%_y???6$g?p?? +?^m???(?? +}???g?p2?,%.??v??3? 8?@??-^/wq?g S??r?2x\F?&???e4?6?g`?????y???????X??x???3? 8y???????:??3? 8?3?W?P??:VO?{? 8?@???^??7??3? 4????$N?e??7???3? 8S0P?7??0|?????ga>?dOE?2????? ??@y^?????0??H?'?g?+?O??k'? +??+a?5a?P?????c??S???Q?M?_?t??1O;???????]?L???v}J??????53?;:???t?g?Y??5?zA?Ht?(?????Jf; ?vPM?~?? ?'?-?e?o??!???^2?R?? ???8K??a??)???????i??2?2??W???$C? ?.?T???j?h????J??7???0K???Z^?????V +^? ? <&??y??[w? ~???????q?JXB?#'?Qr??`??Y?????0pgJO?T??)e?5? ???q??uq?(????N???8? ? +;?_??? }???????3?_VRs?????VG??????????T{??????{:?W????? |'???C?_?f`o;[E??o?C?????"C??!?0{?}?????u?E~_3??^?rvV?~x??;????;?? /W?.????y]?l?sq????,??g.?;B??V?9?T&| ??.?@?xL??4?k?//?? ??20??z????[?@' ???q?????U?????e0?????P?n?J^???i?_????????'? g ??????@p????T????S???3?6T#;???m????]??]Ym? \???????j?o??t????????Z7b??8?b??f?[+o???7C??C??nf/??2? <4?]+?g?s?c].}f??>?WVs??????J/?Y?I)?o(?^?0?8?A:????g?VB?gI??.?? 1 Mg?Y???Gj??????m???o&?M?O{&??M?i??Ms?F???F? ?+? @OXx5????O???*???????f +3?? +? z?PoW?t? +?e??"?e?O?9K(?dJ!??c3???U????MJ????Z?B]??u]???k??"3U~|x .??????????A?ll??? ?M?ib?qZ6??t(cO|?P????@? +?-? +?? &;*???2|??J??P?)q?w +.?30??|??j^??\?c??`\^?n???N???d?k???h?????"???Jh??T?C +k???0?58?B? ?y?;????[(?????rEr?@??_??v??W?V?k??^+???s*d???v?T?Z???Z???Q???????zW????%?c???/'?c?Vx??R[p??@? ??r?bM????????|^??~?????????.]?q???2qsi(4??r??wq?g?tX+f??2?v????x?I8?Yn????30H 0H??d?;q??R?0~?y=??]S???x?p??&0??.X?g???Mp8???P?r?\? +??O$?8??`2???? ??"?M?C?????????_??*w?h<??~J?V?D?N??????o????tE??"J-??~?2bw?o????od ??1`?'r>!?-?*?.???R?g???[??4?O??.?%g?Hc?^???[??+{??ib????)$y[( u?k???Q?Y[M??n?P?`?|?u?~?Q?^/???t?`????*?!fOqn?6?Taa?lp?????C\n?WA??$??M? ??C?g??????n????[???3P1?k\???-.?X{[??*D????????c?$M??B7????g?$????{???ae?-7y??Di?H???\j??p?$??r??I??H?????RR???b??T?A?5???c?O????2t?"??eX}?7??c? m??V??????*?> ????t?!?p<9 ??WY????30?Af ???91_J?(??[??)??%? N???6n???V??P?6m&L?;??M???)*?????~,?d??+A?1af?8?'&y?R"???G?e?J?m??????beq??c?-?Cg 76?? +_Q?N????z,?0xv*??T}?9???$??I{?J???I????$??i??(s?$?,? ??uH?+Jp?????z??%????K?a????d?~{R`n??'?????f?yl?j}t?N?uF? +R?????S??$~f? ??~i)??R??Fb?????z,???c????D?F???RF?x??P+4;m?g????k6?`??;3`F?.?!Kx??|n4h?w?D?ni?*???~)??(}3K9%??@8??Y???*?n??.t???9??? +?JTc?/??+?[#?>z? ?????:?_ ?C??0L?W,e????!e ?;???????Z???K+???I??????????9K??????:V?R??oK?V?H?????9?o????i??l???v?lH?ef +e??3`?+f? ?Gqv??4]eO???yFx?@?&?g??'*n??????e*?H?$?LL?e|N0?:i????v:??:.?@W ?:X??w?0?B?,1???8?i?5??????i?|+C? _???`o???>i[;?B?????M?ey?a,?a0?0?T''???zg????,??5?:?????($?????t'm??i???wq:b??h?_?)?@?????(<8?XxE8]xLh%????Y?fv?G6??2???Nz?%wE |???o?u,l-??'^???RZM???B!m???3??63?%E???=/w?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g e?w?|-??3? 8?X@?? +K ?&?Ca,/(??w(?OW?l???????w?????????t?2? ??& +/ ?d)0?//?SXG?P ?>??x?.??3? 8-?\e7 +?O?H?R?J???_ +?E???/.??3? =???3?? 6{V?2??8R??f?? .??3? ??????3?~M?^??a?????3? ?b`3i1@% ???}??????p???3p?z??0??=I??R?~Z`9??2?xE?? +tD??`2?"??=?????]}?edq??c(?2??Dg9???}?rL??8???????vJ%?????????????/ +7 ?/ ?O#??????/? +??????@>???0?~QxC??4B??#????7??????V+?????????:J]??7W?`8Y?9?p?c??L???B?;?Y?` +???????3????:???? -??K???t??????8\?cC?r?w[??? ?x??Z.?2m?r?J;?????N???B?>%p??-??#?H??)??Z?D6?? +?Cv?????uJ?aa?fs?????YhT?????^f?PO?l????:??3P??a?a???????a???l)?Es?V?v?????? o?fMy??]?;_@????R?qizu Y?#?i?8uf`9?v???o?? +\O???????S?u????O??=?? +??vv???t +??????'y +j'?1??Xc~?j??;? ??}?????o?? d+???9=????a`53O?T??V??ig?*?SU??.?M??3?{S???Spg?? ?S??av?R2?????w?pH`?????et?K2?P??f? dnS?? m?Zc?? +g ? +?R??t????/(?L?????R??0~??? =x?k? _??$L??V&?} ?[??1.???O ?x?S2p??f?2{??A?8???????)CY?????? N?Ra???)?????7??Q9?`?7,?x(???`?W????????? ? +???x????k +zX+r???]V+??s?????h?G'?YW/&?? +?4?S??0???U????m?????H????4??n\n5X?,?????i??L?H? ??K6' ????H?? +qj???>MUv?x???e??r????(?g 8 f?`?d????g +|?Uq???pb??9vf??????m???F???8??y ?`}~??`??v?SRL??X?5?3?]\??3?)4}???P?E76? l??1?`?Y??@?V??]Na?1JOJ??????0?]=?C!,?8v????S?X?A??`=CJ}e???i?"C?m???R<?dr?????8?T8A?]??4?^vH+????????e?42??Kq <$S?g?;KQ5~?+????e???W????ak??;??{??L??7X:??7?????1?????2p??~???%?ab?????3???eq??? +ep??Y??Z?k?P9??S?4? ???T??j??U5^?v?-?X?b?E??'?? ,?o??? ??s??????Z?[s??d?{??2???M?e??{?d?XM??slgY{;8 }b??d?Y???'?Fq ????????zK'????vo?<.|b(z\?N. ??r???z???????' ????~??S5?>w?C)?Q??(??&????.j????z?????????I?B?*??F???P?]p??????]??G? +.?@Q ?4?[?(?`?v???????$??`????$?A?:??(?1?????4?z? ? .?@? ?W +0h?WX??? +???}??3?|?`?Cine??W?s??[???K?&??o%?Y`?|?#l&?8U3?9??}??????h-?3?????2tE8qn +p????)s??????? ??(pB! +?..?]??Aa?%?]?O K +?)s??M?H?E`???p-?#?$3^`??c???w +??a??NN?STgfK0????? +O(~?? ??p?? ????3? ?20??M??,?8??"B????MR?Lg?p??)`}????Q??#?q???????*u(?u????g?#|??]=)??wO???3? >X??x????3? 83??u???Taj????=Q???g?(?e{??O??[s??Ag?g??a^ +???Q?+?Ym{?3? 4???;h??:??????3? 8?@? ???x?#-???.??3? 81?RG????wFE>z???3? 8b m`???6??3? 8?@? ????o?J?~y???3? 868[?????=? 8??3Pl??]????fR??5??]p?g?H????m?|?r?g??????P7?Cg?p??7?g?p???3???????:??3? ???p??? ??N???KM?"?G??;??3? 8?x3??+9??P3?3???????3???8??3? ?b??V?^? 8?@? ?J???{3??Yo?p?g?SX +qq?g ??Y??RI?Cj??kg?p??3?@?????9??3?8x?e???8u??#mWv?g?h?@<8???U?.????JGtS??8??3? L?@88??? ??z16?ig?p????r?R??N????J??)?'?1? !?5?`?eue???+}???@? ? &??A/?-M??M?xN???#?#???W??Ig?pj?(?D?????????B?2X???]???-?g?7??9???a?????G+yI????zyk?X?6,OlCf ??A???K?????:?"???}?? ?Y +eg?? ?9o??I???0?'???TI9y?i???"???!m??t?c??-?,????/?????^?h?tw?4e? ????W,??????=??-u?# y?A?:vp?t?`m:,??? ?W!?????MU/v*c?d??9?m???$M8}??E?M??n?Fg+????? ??ku???l?5?e???#?P|I???????FLNB?#?SoE??<q?PNQ?t?|????? ??C=?????g?????)??ds?`?)?R~??Zjx?3P?8????-??? ?j??+???\??h???v?5??B???@J?+?`??b!6?u49??V??NH??#???2?????????E???? +2:i?.??o???4???e=???/??K?6?`???d?A??X?;]g??W?e???????k? ?l<8P@?a?Fv?^?b??6?k?A?S? +?H#???+?I?? ??o]?V?c??3P!??mog ??WRs=?p???e?n??k???o4?]??8? +?9?P? ??W?|?5g? ???F8?N?0p?????m??3? ??????????????a??l?0???E,??]??:00??? ???r??-??#+?a0???3?`o?????3P)?W???c?y?C??O?cf???g?a?y&?K+w ????3 .?@?x??-z???o2??*??02?? ?!?!?_pq???|??????72t ?:?c?????/O +??|?8?2??R??qg`???E?Y?Q?x??????3P8?+??tF`}??^>?4L? u?~o?L?????? g????0d ??;i??w??f?G??v?e??Dg?(v??S?26v?7~?p~?}????d??????o {g?????g? ? + &q8`w??3 +\`yw+???s?K??i????W???A?.?A?e?/ >(??.w4??9??~pI??\zc?c?Oo&??01??^????k?6??/T9T?-???-<.???"B????bX[fxV???b?h+?Y?????????K; +.?2????;~8g/??I?pc`W?]??? ???????m???+?]??? ???[39?n)t*S?5;?????????4]ih??z>G??M???IxO?\?^ ? ???o +????[&'Q]?q???Gg ???3KF ?P?+?6?Xm??V??|j??-????%.?r?N????R???????rr,??[?7/'? ???w ????PxP??????????1pu??^ +?eg??e?`k%??? +?7}?=????{??`??5???G_???????y?*;|x0?>k??1??d???uKl???g???6-?:2?????#w?? ????Y'???????????0p??x????X +???;?izhZ?s?? Mo????P?????? ??{?&?????^K??n?9?????&l0p=????)oF?UwG??)??? +????????????????a'?r)?6 \Q?9??O?Sc/??Ao???^Uw????????['??T+ +?5??k??;? L??9???????|s +? +?SPR???? ???????3?s? >?(?(}N?>\?9?T???M?2?v???X]v???R ??L1???.???L?????[????5~-????ZGi3?^ ?'qw????i???^?)?:O at gJ??WU'?????l&P4z???9z???z?f?~0????p?\???~?>?k?*?????8?/5j?B6J,_?O?Ww3??f~O?@?:??{?n>X?nn|??2?4W??K???: `/?+??1y?I g2????*? +@??)??2i{*????????w? y?!"????B?a;????0??(??m?3?F ?k?|l?\?=Blk?GYs<)W??Ng?e?+???s 2L|?L?e?h??g??(]??????i?6?R?Q???+n?(.T?t????+??R??z?????6#?/????d??IK??h???!???oW??>$^y?"a?IZ`X+=Y.O??????k??f?K??????????&Z??u?????Z?^??8d??zt9??F?????K?7??m+M??rK????????)k???7dT??nj[???Z???[??6^?%Z!pK+?3TV?z4%???z~2?????Qa???@?Si?&???A????6???4???Uqc?LW??[?J???!}?8?????Q;??Vz?rY?/?????uUj?0?????A?uP?%??????hv-???VayJ?W?2??_????:X????Hq???>H7???dJu???(,???T(?)???,?_?????( ??J??c??O-??o??7???????R??i?B:?????p?????I??L?uck??#?q?V ???w????t?N`????:?x??????`|6?????I&????zU&??^E??m??????I?5H???(>P???yyZ?{?g?X?n?&???"?&??o?C? ??nW???M?!??=??e?[?'??~?G?~?oa +Z|????`??@?v??:???D3?u?)?? ++??n??I?n?/f??-}?sx??Z?jh&{?N?N?????~h6h??*?wh?f +?LK|S?%|?,?1??n?|v?????iS????????0?????&?5?_"?~?f??L????Kt\GG+?????72%]? +?f????]???????B?!?8??l?'?,M?? ? |??????:???x +q??g???(???H?{??f??W???k/??D??Z?y e ?N?Z?Y?V'Ry??????? LN?????@C??]????7???I@'?#?>??????MJ?p??v?Z??2q??@K4?}"??IO?i)?-?? +??????F?????u?8]t2?????d +?>??@?!?? [w ?C??!}&??MP??Cx?V+u???f???x??H at 7(?@?A?}???????`^???m??7???mh??:???????u????Q?Z???H??fQdk???; ????z?!j?iUB?@??jw??_???c??rJ at OP^????F????k]?P??? +G?????c? +;?FC??m???'? E?n??K?@??????t@??+?A?`UOWjjeIT4[???@????G???@????O?H??t? ?+???DZ???4?0??4??4?e{7LX=?8?t????t2??`,o?????>b?u???UG'?!??:??r?? ^SG:Y?j>X???????t????????H+#?.?ga???Ge??Q???F??I?)???0????E?c:??VO?????*??[????k&?A:X???;???4?{#??Y??L ?j???{xm?????S4s[jw?&`&P???UQ??=?L?^????j?^???? t?@xd=??+ua2??];????x=??2?3w?L?g??Hu ?????O??k??BzQ??????`Q?q?? ????uvUO?????9E6??4?S?W?????L???c|??u?.???@?LS?2???f&`?!?#???F??s8?????i?E??t?M?'?E? ??@4%??mJ??F?*?-?l&`&???2????:0^?~?:e??????e??????(????\~l?? ?????? ?t?^ ??^$=?????8???Ndz????4??J%??3y'????????|???u?<]? ?@?t?]?u?A?? |?>F?#?u3P/??I?3??d?%=b?? +????/??(M??y??Sg?Z?? +?S?r?Y?4????TNw?+?p??+?'YW'>?*?tR?V!_????6t?tp?????p{&`&`&?k?u??t2,gx?&??????d??????5?T???Ojr??}?M??z??q?Rf=??4k??,?????? ?? ?? ?? $$gKOH?W?=??0????V???[?J?2?>?fA?????R??uT????3?K?/??\Gu??-?cm [TRUNCATED] To get the complete diff run: svnlook diff /svnroot/pomp -r 1122 From noreply at r-forge.r-project.org Sun Mar 1 17:38:26 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Sun, 1 Mar 2015 17:38:26 +0100 (CET) Subject: [Pomp-commits] r1123 - in www: graphics vignettes Message-ID: <20150301163826.D25671858F3@r-forge.r-project.org> Author: kingaa Date: 2015-03-01 17:38:26 +0100 (Sun, 01 Mar 2015) New Revision: 1123 Modified: www/graphics/pomp_schematic1.png www/graphics/pomp_schematic2.png www/vignettes/getting_started.Rmd www/vignettes/getting_started.html Log: - improve figures Modified: www/graphics/pomp_schematic1.png =================================================================== --- www/graphics/pomp_schematic1.png 2015-03-01 16:21:55 UTC (rev 1122) +++ www/graphics/pomp_schematic1.png 2015-03-01 16:38:26 UTC (rev 1123) @@ -1,371 +1,267 @@ ?PNG  -IHDR?1???TsRGB???bKGD??????? pHYs  ??tIME?:t0IG IDATx???$E???O?Yr%?d? ??"?EEqEAPQPD at 2 -HT?H??K?9??{??Y??v???tOw????8?#SPrb???????~iv??c??8=l??:Yo???tS?Z??PTg?*[??JWp.???}!????M???$?_? S?=???( ?*9?3EN?2?????<?7a&?)??%?p?$ ?????F?~?zj?>??M{??a?[??sQBR?NL?|+???;1?$]?`/>cc?. -P7~X1?7g+vIR?M????.??1?h?K??h?\]??G???S??&??????la????H7?J=4WNU#??oYe?*??? >??v`??'@L????D??}K6???#?,1C?>?H?,$??Q?na???5?*????*??,?igb????S{gwZ?G?_?X`??:+??????u??K?? -??T~?L9{?????.?fu{C??|_????QK)]? 5?>Y '??9_U7??>K?v??? -?eD?X?Q???\???d????V????? ?$O'??1?9?E??$m?R???+?6K(?9?Z?,\???6}???A6/ ??????P???NSB??crx a? ??L?nHvY?h.?g?AI/?W??mo????z!?V/C???g`8?D?n???????/?`Q????2?g? [{WkQwU?]"0?)?S?v?f??f?m??EK????????3?b=??9??u?uT?5 ?????y?~!?R?: ?? ?f?*e???\?#?~9?@?@?t+??c?h?k??oB?????e??v_??&??????b? ?-??? ??S?yS%?2?????l?l???A? -???A?G?0`d?????e;??g??*??\?g?'x???R??D?E?????3?P?X?|=???i???vj-???lR???[????b]? G?;L#??K?????U??ti??u??D)??I? ?Z~ =??Zdw:????#???n%??? ???U??????x|?,???g?(W?d?:?A?6N?3V?-??J???u;? -??????Vl??) ?-L???j?o?>4? -????ii???IB????g??????K(Dv?0 ?# ?9?mA???5Y?U?????? -?y!?nB?W?C?4/j" ?!?<?G??`zY?[=30 ??t?K?0??@??Zi??|?? ????N????|???|?P??z/ -?a?a??4???0?p?N??zZ>y!"??Lc &2???I????????a????X/-????0?????0n/+??3 ) ?q???M6T??iI_S??:M?~e.?R?/e?5?K`q??-Ojc??/e?S'???Zf??=(V???:??~??iu[?????H;?!?6?3? -???$???M?x???????O&?q??$F{????%?Vtdc?iA????O?M?_ ???????C?? -?]??D??vL8???d???4uB?li?Yb:???es??9?O^?#?VI??)}?h???[#T????6?s?@?????Aj?W?? X??? N?????)?xw??^SyN???j?D??eKs??]?N4Q??\?=??????P^]??)???=??_h'Cs?B;?b?y?t)????eC:X?? K<{6??^?|? ????????!~????]???W!??i??f?????si?O?????jO?\F?z?X??}?AQ?rs?5????H? -J?G???@????\P?i??G???!???Lf???????:???l)y?????H' ???R-???vV????W?s?M??7???|???2 ???t? ???b??5?8?R:&??2?O ??4IV????{50`??????w?N??~?s? ?JQN?.C] -?E9P;+???j?G^N??zy??xU)(?E4?????.)?Z3 ?&7???fx???;?n?p ?|?.]K?>?8#?qB?? ?%~???;29?s?ffLm???gLNCk??? -??X?;?9?Nd)o"?J`?(??>"?????"?=?????G?????????9?@?`4vq?2???????M;b????????diR?M=???n?YV??M>??????iJ?M????n???g??vb???*?D?x????????8>?? ?? 8??3P 6zW??7? 8??3?!}y??C?\?p?g ??? -1?Dd?????3??0?5?????m??>??*$t???J? ???? ?????u???f?????H???\?g ??Ij&<??/ -/ 3 -&? ????Nl?n??VqB^??:??J?K? ???????B??????d???a7gl????]????l?? ?7??||?_?I??p??????k?? iu??zc??#1?3?? -??? pb?8?'???H9?~????Y??30%6fiv?)?'???????o?|A$)/ilm??>?+EPp???S?!?? t??WT???V?B????EU?r?S?gw?]???2u]q????????z????????gg???L?Q??#p@~/|T?W?T???G??=,`?)??_J.u???F??0???ud?;??? -??? ??l~Q?????L???????h???? -??MR>?? -5?????????M??OC????#6?F?Majq???4E???)???????-???????b?o?kE?&$k?????j5???a?1?r?X??$??`? u?w2Y+u???J;6?1???i ??x?????????a?J?????U??_??W???????????????????h/~n?Ke?;???6E?i?????jp??\,a\?C?a?O?Nv?GN?'???#????@?>?'6y?'!e?????????x*k$oBP6kg????????p]??g??=???&????9??=(?]g?f????r??9??>(?? ?/????I5?-?kM|?:W?j???]~???1?y\???y??No d?S???W{`6? -??{q??????????-|'? bK?M?5?????r?n?w7?*?>?????l?????P??W?5W??V?Jm??y??R ?w????Vzb??z?\??*?~?_)?h]m?*?f??s5????{???v.??NaP??????[ -??oSk?????w?Z?nNU???????_D??`????a?????oj? -??K?Q????A??]??BJ??W^O?CR??Y ??!9??g?7){??/?n????5??>?I???2eyL?@???1??????w*???N??[????8?????_b;??M??EF????=?????S?V?{???x[????? w -v?? ?=Q????ow??%j#?4?6??Y??'v7??2z ? -???=??P????M?:?p\????????mege??? ?h?6?11}Kg???? ???|??v?#??D???LMN??'???????V?3oEG???X?8??q?? ?4? ????U=? t???pY??)&?V????f???6?cv?|E ? ?DZ????p13?# ?4?S?I??&e???????D?dX?4]??????>ub?8?N???g? -S??o5`?T???X?|  -???$r???????H???^=E??R?&g?????g ??x???J?O1pPJ^?? -ZFe?(???~?C?Q.??aRJ?y??1?p??&??#??m?r?? ?fd??????fh???fTi?mL?????/? - -K ??????x>v??v??p???e`3?????M{?Re??GN??3??5?a??p??N`???wO??R?t&?+X?a~7?]> ?1??U??????a{??????n -?*L?+?q????'|I?oA+?? ??????????8k?|??? ????#???????????"?h??g38I?Hpqze`1?z?[?.c????,?wl?p?VR7?)pr?%?-?H(Pf???????sq???F?5?????s*????1P??zC?NX?w????.\.,P???>3??????mbs?????(a?$?#?|??Q?n???Q?X??]??????k??j;?~r??h?p???| /j>???w?a??4?x.)??kv?????3U{?k9??0[??x??3p??U??}e?wj???.?3p_?.?\?j?X^dG?V?XF-?g??.U??P?R^????2?{/{e???c???????????????Mg30)?(????]?%?3?:?v??W?'??j?=?.?d`)??s^?8???U.X???l -CN?=?3?D?Rx?@?AI?l?J`?F???PVQ??%yH????XVPuyr?^?_ ? -??????2,? ???wiE??DxDx\?e?Pz?;v??>N? ??lFK?iPv%????*iy8??u8z??^?????H??Zl?`?3a??|?#??*??'?L -C?L?v'&????o?????9l?f$q?? -??;?;U;?=K???=8I0??: ?????d?]??tk%1pl+??~??*? ???O??#?6O???,?Ded?m:lC?? -v2`?F??k6?B?)????%???????}????`]??8.???C$?~? -$?/h?????N??????}?*i}?? -M-?,?j????7???/!G??K?(??????B???,??*?s>w:??E?&1; q!?? ??4m???e?~8 at o?q???)Y?0{?C9@ ????y???????? ??o???,+'>]G*???0<6y??Q?i?? ?u?n-??W|'a}m?/:????v?%)??kg???????]s?????M>p?8??7V???9?^ ?VooE~$?u?>\?}????[??Z??y? ??? ??W????&]4^w?????|???????????@t?*?u?3??KFJ?F?-U???8uf??:;? ?????; +IHDR???sRGB???bKGD??????? pHYs???+tIME?$&?c?? IDATx???w\W??????V:(( ????]??5b &??X?X??5?5?Dc???F? +c???t?.m????K?.MJJ*?\??????;u???Q#>?omm??E??3g???????M?V??0`Q6*???????? ??E?}?????9bY6!!a?????KFF?R?LJJ:~????B???/Z?H???E????>}???9s?\?~=##C?R???^?x????g?s??>48??????']?v???i:..?-3???A?ccbb??}|vj3???????|?????Q?Fs???????J?N?d??)((??)????H???S?5???????|????^x??/?K???e????'s&&&?o????~"##?????m????g?j?&??[?:"??E???wo?u????????$I6l?055???????? +!?k????????B????}??,??????????F???Z?? +??#?~?RYu?1c???VR??[?:"???y???9so???#????#??:u?T?W -r?\=3???? -`?'???&fc???y? ??????:?&???6 ???k?q????????? -????j????w??t? ?`?????o -?I???????h???????????~X0?M3??o?B????a+???????w????s|;8I?gB?i?m[?\'???0(??:???:?C?yPx1???????L^??B?????$N??A?A??U?Y???'?PVR???y?!?c?f<`/?`yFg??2uSq??-/[? ??t??^?Ye?[ -???&??/Pzj -a???qS#/??M?w!"?g,3?&{?;???z"???????%???[????P0???e???P)?ee??,u??N?$?V??$?Gb??&?;?g?>u??p'?(?? T?1????&*aI?o2?Z?dyO?Z????fYg??O?8Z?p~?x4i??Q>:?rm?Vt?YGX?-??????e?@???Fne????&??l???????M??)8d?=?bZpCin)???:??u?AY??????F??? -??????????????Pv#C`g??????u5???????W) ?/?lK?F)??( ????9?>?\j?c[?zk????8V?\?8Q??gx?~1??????????????????r?)?e.?)???~1ev?sx?????~}??'?{??????Y ??6???WA?uiri9??????T???[????Q??XVM?)p??/,!?8?2??*pm?i???%_y???6$g?p?? -?^m???(?? -}???g?p2?,%.??v??3? 8?@??-^/wq?g S??r?2x\F?&???e4?6?g`?????y???????X??x???3? 8y???????:??3? 8?3?W?P??:VO?{? 8?@???^??7??3? 4????$N?e??7???3? 8S0P?7??0|?????ga>?dOE?2????? ??@y^?????0??H?'?g?+?O??k'? -??+a?5a?P?????c??S???Q?M?_?t??1O;???????]?L???v}J??????53?;:???t?g?Y??5?zA?Ht?(?????Jf; ?vPM?~?? ?'?-?e?o??!???^2?R?? ???8K??a??)???????i??2?2??W???$C? ?.?T???j?h????J??7???0K???Z^?????V -^? ? <&??y??[w? ~???????q?JXB?#'?Qr??`??Y?????0pgJO?T??)e?5? ???q??uq?(????N???8? ? -;?_??? }???????3?_VRs?????VG??????????T{??????{:?W????? |'???C?_?f`o;[E??o?C?????"C??!?0{?}?????u?E~_3??^?rvV?~x??;????;?? /W?.????y]?l?sq????,??g.?;B??V?9?T&| ??.?@?xL??4?k?//?? ??20??z????[?@' ???q?????U?????e0?????P?n?J^???i?_????????'? g ??????@p????T????S???3?6T#;???m????]??]Ym? \???????j?o??t????????Z7b??8?b??f?[+o???7C??C??nf/??2? <4?]+?g?s?c].}f??>?WVs??????J/?Y?I)?o(?^?0?8?A:????g?VB?gI??.?? 1 Mg?Y???Gj??????m???o&?M?O{&??M?i??Ms?F???F? ?+? @OXx5????O???*???????f -3?? -? z?PoW?t? -?e??"?e?O?9K(?dJ!??c3???U????MJ????Z?B]??u]???k??"3U~|x .??????????A?ll??? ?M?ib?qZ6??t(cO|?P????@? -?-? -?? &;*???2|??J??P?)q?w -.?30??|??j^??\?c??`\^?n???N???d?k???h?????"???Jh??T?C -k???0?58?B? ?y?;????[(?????rEr?@??_??v??W?V?k??^+???s*d???v?T?Z???Z???Q???????zW????%?c???/'?c?Vx??R[p??@? ??r?bM????????|^??~?????????.]?q???2qsi(4??r??wq?g?tX+f??2?v????x?I8?Yn????30H 0H??d?;q??R?0~?y=??]S???x?p??&0??.X?g???Mp8???P?r?\? -??O$?8??`2???? ??"?M?C?????????_??*w?h<??~J?V?D?N??????o????tE??"J-??~?2bw?o????od ??1`?'r>!?-?*?.???R?g???[??4?O??.?%g?Hc?^???[??+{??ib????)$y[( u?k???Q?Y[M??n?P?`?|?u?~?Q?^/???t?`????*?!fOqn?6?Taa?lp?????C\n?WA??$??M? ??C?g??????n????[???3P1?k\???-.?X{[??*D????????c?$M??B7????g?$????{???ae?-7y??Di?H???\j??p?$??r??I??H?????RR???b??T?A?5???c?O????2t?"??eX}?7??c? m??V??????*?> ????t?!?p<9 ??WY????30?Af ???91_J?(??[??)??%? N???6n???V??P?6m&L?;??M???)*?????~,?d??+A?1af?8?'&y?R"???G?e?J?m??????beq??c?-?Cg 76?? -_Q?N????z,?0xv*??T}?9???$??I{?J???I????$??i??(s?$?,? ??uH?+Jp?????z??%????K?a????d?~{R`n??'?????f?yl?j}t?N?uF? -R?????S??$~f? ??~i)??R??Fb?????z,???c????D?F???RF?x??P+4;m?g????k6?`??;3`F?.?!Kx??|n4h?w?D?ni?*???~)??(}3K9%??@8??Y???*?n??.t???9??? -?JTc?/??+?[#?>z? ?????:?_ ?C??0L?W,e????!e ?;???????Z???K+???I??????????9K??????:V?R??oK?V?H?????9?o????i??l???v?lH?ef -e??3`?+f? ?Gqv??4]eO???yFx?@?&?g??'*n??????e*?H?$?LL?e|N0?:i????v:??:.?@W ?:X??w?0?B?,1???8?i?5??????i?|+C? _???`o???>i[;?B?????M?ey?a,?a0?0?T''???zg????,??5?:?????($?????t'm??i???wq:b??h?_?)?@?????(<8?XxE8]xLh%????Y?fv?G6??2???Nz?%wE |???o?u,l-??'^???RZM???B!m???3??63?%E???=/w?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g?p?g e?w?|-??3? 8?X@?? -K ?&?Ca,/(??w(?OW?l???????w?????????t?2? ??& -/ ?d)0?//?SXG?P ?>??x?.??3? 8-?\e7 -?O?H?R?J???_ -?E???/.??3? =???3?? 6{V?2??8R??f?? .??3? ??????3?~M?^??a?????3? ?b`3i1@% ???}??????p???3p?z??0??=I??R?~Z`9??2?xE?? -tD??`2?"??=?????]}?edq??c(?2??Dg9???}?rL??8???????vJ%?????????????/ -7 ?/ ?O#??????/? -??????@>???0?~QxC??4B??#????7??????V+?????????:J]??7W?`8Y?9?p?c??L???B?;?Y?` -???????3????:???? -??K???t??????8\?cC?r?w[??? ?x??Z.?2m?r?J;?????N???B?>%p??-??#?H??)??Z?D6?? -?Cv?????uJ?aa?fs?????YhT?????^f?PO?l????:??3P??a?a???????a???l)?Es?V?v?????? o?fMy??]?;_@????R?qizu Y?#?i?8uf`9?v???o?? -\O???????S?u????O??=?? -??vv???t -??????'y -j'?1??Xc~?j??;? ??}?????o?? d+???9=????a`53O?T??V??ig?*?SU??.?M??3?{S???Spg?? ?S??av?R2?????w?pH`?????et?K2?P??f? dnS?? m?Zc?? -g ? -?R??t????/(?L?????R??0~??? =x?k? _??$L??V&?} ?[??1.???O ?x?S2p??f?2{??A?8???????)CY?????? N?Ra???)?????7??Q9?`?7,?x(???`?W????????? ? -???x????k -zX+r???]V+??s?????h?G'?YW/&?? -?4?S??0???U????m?????H????4??n\n5X?,?????i??L?H? ??K6' ????H?? -qj???>MUv?x???e??r????(?g 8 f?`?d????g -|?Uq???pb??9vf??????m???F???8??y ?`}~??`??v?SRL??X?5?3?]\??3?)4}???P?E76? l??1?`?Y??@?V??]Na?1JOJ??????0?]=?C!,?8v????S?X?A??`=CJ}e???i?"C?m???R<?dr?????8?T8A?]??4?^vH+????????e?42??Kq <$S?g?;KQ5~?+????e???W????ak??;??{??L??7X:??7?????1?????2p??~???%?ab?????3???eq??? -ep??Y??Z?k?P9??S?4? ???T??j??U5^?v?-?X?b?E??'?? ,?o??? ??s??????Z?[s??d?{??2???M?e??{?d?XM??slgY{;8 }b??d?Y???'?Fq ????????zK'????vo?<.|b(z\?N. ??r???z???????' ????~??S5?>w?C)?Q??(??&????.j????z?????????I?B?*??F???P?]p??????]??G? -.?@Q ?4?[?(?`?v???????$??`????$?A?:??(?1?????4?z? ? .?@? ?W -0h?WX??? -???}??3?|?`?Cine??W?s??[???K?&??o%?Y`?|?#l&?8U3?9??}??????h-?3?????2tE8qn -p????)s??????? ??(pB! -?..?]??Aa?%?]?O K -?)s??M?H?E`???p-?#?$3^`??c???w -??a??NN?STgfK0????? -O(~?? ??p?? ????3? ?20??M??,?8??"B????MR?Lg?p??)`}????Q??#?q???????*u(?u????g?#|??]=)??wO???3? >X??x????3? 83??u???Taj????=Q???g?(?e{??O??[s??Ag?g??a^ -???Q?+?Ym{?3? 4???;h??:??????3? 8?@? ???x?#-???.??3? 81?RG????wFE>z???3? 8b m`???6??3? 8?@? ????o?J?~y???3? 868[?????=? 8??3Pl??]????fR??5??]p?g?H????m?|?r?g??????P7?Cg?p??7?g?p???3???????:??3? ???p??? ??N???KM?"?G??;??3? 8?x3??+9??P3?3???????3???8??3? ?b??V?^? 8?@? ?J???{3??Yo?p?g?SX -qq?g ??Y??RI?Cj??kg?p??3?@?????9??3?8x?e???8u??#mWv?g?h?@<8???U?.????JGtS??8??3? L?@88??? ??z16?ig?p????r?R??N????J??)?'?1? !?5?`?eue???+}???@? ? &??A/?-M??M?xN???#?#???W??Ig?pj?(?D?????????B?2X???]???-?g?7??9???a?????G+yI????zyk?X?6,OlCf ??A???K?????:?"???}?? ?Y -eg?? ?9o??I???0?'???TI9y?i???"???!m??t?c??-?,????/?????^?h?tw?4e? ????W,??????=??-u?# y?A?:vp?t?`m:,??? ?W!?????MU/v*c?d??9?m???$M8}??E?M??n?Fg+????? ??ku???l?5?e???#?P|I???????FLNB?#?SoE??<q?PNQ?t?|????? ??C=?????g?????)??ds?`?)?R~??Zjx?3P?8????-??? ?j??+???\??h???v?5??B???@J?+?`??b!6?u49??V??NH??#???2?????????E???? -2:i?.??o???4???e=???/??K?6?`???d?A??X?;]g??W?e???????k? ?l<8P@?a?Fv?^?b??6?k?A?S? -?H#???+?I?? ??o]?V?c??3P!??mog ??WRs=?p???e?n??k???o4?]??8? -?9?P? ??W?|?5g? ???F8?N?0p?????m??3? ??????????????a??l?0???E,??]??:00??? ???r??-??#+?a0???3?`o?????3P)?W???c?y?C??O?cf???g?a?y&?K+w ????3 .?@?x??-z???o2??*??02?? ?!?!?_pq???|??????72t ?:?c?????/O -??|?8?2??R??qg`???E?Y?Q?x??????3P8?+??tF`}??^>?4L? u?~o?L?????? g????0d ??;i??w??f?G??v?e??Dg?(v??S?26v?7~?p~?}????d??????o {g?????g? ? - &q8`w??3 -\`yw+???s?K??i????W???A?.?A?e?/ >(??.w4??9??~pI??\zc?c?Oo&??01??^????k?6??/T9T?-???-<.???"B????bX[fxV???b?h+?Y?????????K; -.?2????;~8g/??I?pc`W?]??? ???????m???+?]??? ???[39?n)t*S?5;?????????4]ih??z>G??M???IxO?\?^ ? ???o -????[&'Q]?q???Gg ???3KF ?P?+?6?Xm??V??|j??-????%.?r?N????R???????rr,??[?7/'? ???w ????PxP??????????1pu??^ -?eg??e?`k%??? -?7}?=????{??`??5???G_???????y?*;|x0?>k??1??d???uKl???g???6-?:2?????#w?? ????Y'???????????0p??x????X -???;?izhZ?s?? Mo????P?????? ??{?&?????^K??n?9?????&l0p=????)oF?UwG??)??? -????????????????a'?r)?6 \Q?9??O?Sc/??Ao???^Uw????????['??T+ -?5??k??;? L??9???????|s -? -?SPR???? ???????3?s? >?(?(}N?>\?9?T???M?2?v???X]v???R ??L1???.???L?????[????5~-????ZGi3?^ ?'qw????i???^?)?:O at gJ??WU'?????l&P4z???9z???z?f?~0????p?\???~?>?k?*?????8?/5j?B6J,_?O?Ww3??f~O?@?:??{?n>X?nn|??2?4W??K???: `/?+??1y?I g2????*? -@??)??2i{*????????w? y?!"????B?a;????0??(??m?3?F ?k?|l?\?=Blk?GYs<)W??Ng?e?+???s 2L|?L?e?h??g??(]??????i?6?R?Q???+n?(.T?t????+??R??z?????6#?/????d??IK??h???!???oW??>$^y?"a?IZ`X+=Y.O??????k??f?K??????????&Z??u?????Z?^??8d??zt9??F?????K?7??m+M??rK????????)k???7dT??nj[???Z???[??6^?%Z!pK+?3TV?z4%???z~2?????Qa???@?Si?&???A????6???4???Uqc?LW??[?J???!}?8?????Q;??Vz?rY?/?????uUj?0?????A?uP?%??????hv-???VayJ?W?2??_????:X????Hq???>H7???dJu???(,???T(?)???,?_?????( ??J??c??O-??o??7???????R??i?B:?????p?????I??L?uck??#?q?V ???w????t?N`????:?x??????`|6?????I&????zU&??^E??m??????I?5H???(>P???yyZ?{?g?X?n?&???"?&??o?C? ??nW???M?!??=??e?[?'??~?G?~?oa -Z|????`??@?v??:???D3?u?)?? -+??n??I?n?/f??-}?sx??Z?jh&{?N?N?????~h6h??*?wh?f -?LK|S?%|?,?1??n?|v?????iS????????0?????&?5?_"?~?f??L????Kt\GG+?????72%]? -?f????]???????B?!?8??l?'?,M?? ? |??????:???x -q??g???(???H?{??f??W???k/??D??Z?y e ?N?Z?Y?V'Ry??????? LN?????@C??]????7???I@'?#?>??????MJ?p??v?Z??2q??@K4?}"??IO?i)?-?? [TRUNCATED] To get the complete diff run: svnlook diff /svnroot/pomp -r 1123 From noreply at r-forge.r-project.org Sun Mar 1 17:53:04 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Sun, 1 Mar 2015 17:53:04 +0100 (CET) Subject: [Pomp-commits] r1124 - / www/vignettes Message-ID: <20150301165305.0908F18754A@r-forge.r-project.org> Author: kingaa Date: 2015-03-01 17:53:04 +0100 (Sun, 01 Mar 2015) New Revision: 1124 Removed: trigger_build Modified: www/vignettes/getting_started.R www/vignettes/getting_started.Rmd www/vignettes/getting_started.html Log: - another small tweak Deleted: trigger_build =================================================================== Modified: www/vignettes/getting_started.R =================================================================== --- www/vignettes/getting_started.R 2015-03-01 16:38:26 UTC (rev 1123) +++ www/vignettes/getting_started.R 2015-03-01 16:53:04 UTC (rev 1124) @@ -94,7 +94,7 @@ step.fun <- Csnippet(" double dW = rnorm(0,sqrt(dt)); N += r*N*(1-N/K)*dt+sigma*N*dW; - ") +") ## ----logistic-pomp1,cache=FALSE------------------------------------------ parus <- pomp(data=parus.dat,time="year",t0=1959, @@ -114,7 +114,7 @@ ## ----logistic-rmeasure--------------------------------------------------- rmeas <- Csnippet(" pop = rpois(phi*N); - ") +") ## ----logistic-pomp2,cache=FALSE------------------------------------------ parus <- pomp(parus,rmeasure=rmeas,paramnames="phi",statenames="N") @@ -139,7 +139,7 @@ ## ----logistic-dmeasure--------------------------------------------------- dmeas <- Csnippet(" lik = dpois(pop,phi*N,give_log); - ") +") ## ----logistic-pomp3,cache=FALSE------------------------------------------ parus <- pomp(parus,dmeasure=dmeas,paramnames="phi",statenames="N") @@ -151,7 +151,7 @@ ## ----logistic-skeleton,cache=FALSE--------------------------------------- skel <- Csnippet(" DN = r*N*(1-N/K); - ") +") parus <- pomp(parus,skeleton=skel,skeleton.type="vectorfield",statenames="N",paramnames=c("r","K")) @@ -170,12 +170,12 @@ bh.step <- Csnippet(" double eps = rlnorm(-sigma*sigma/2,sigma); N = a*N/(1+b*N)*eps; - ") +") ## ----bh-skeleton--------------------------------------------------------- bh.skel <- Csnippet(" DN = a*N/(1+b*N); - ") +") ## ----bh-pomp1,cache=FALSE------------------------------------------------ parus.bh <- pomp(parus,rprocess=discrete.time.sim(bh.step,delta.t=1),skeleton=bh.skel,skeleton.type="map",skelmap.delta.t=1,statenames="N",paramnames=c("a","b","sigma")) @@ -190,12 +190,12 @@ partrans <- Csnippet(" Tr = exp(r); TK = exp(K); - ") +") parinvtrans <- Csnippet(" Tr = log(r); TK = log(K); - ") +") parus <- pomp(parus,parameter.transform=partrans,parameter.inv.transform=parinvtrans, paramnames=c("r","K")) Modified: www/vignettes/getting_started.Rmd =================================================================== --- www/vignettes/getting_started.Rmd 2015-03-01 16:38:26 UTC (rev 1123) +++ www/vignettes/getting_started.Rmd 2015-03-01 16:53:04 UTC (rev 1124) @@ -83,18 +83,21 @@ We will illustrate this using some simple examples. ----------------------------------- -![schematic1](../graphics/pomp_schematic1.png) -Schematic of the structure of a POMP showing causal relations and direction of information flow. +The following is a schematic of the structure of a POMP showing causal relations between the process model, the measurement model, and the data. **The key perspective to keep in mind is that the model is to be viewed as the process that generated the data.** +![schematic1](../graphics/pomp_schematic1.png) + ----------------------------------- + +Here is another POMP model schematic, showing dependence among model variables. + ![schematic2](../graphics/pomp_schematic2.png) -Another POMP model schematic, showing dependence among model variables. -State variables, $x$, at time $t$ depend only on state variables at the previous timestep. -Measurements, $y$, at time $t$ depend only on the state at that time. -Formally, $\mathrm{Prob}[X_t|X_1,\dots,X_{t-1},Y_1,\dots,Y_{t-1}]=\mathrm{Prob}[X_t|X_{t-1}]$ and $\mathrm{Prob}[Y_t|X_1,\dots,X_{t},Y_1,\dots,Y_{t-1}]=\mathrm{Prob}[Y_t|X_{t}]$ for all $t=1,\dots,T$. +State variables, $X$, at time $t$ depend only on state variables at the previous timestep. +Measurements, $Y$, at time $t$ depend only on the state at that time. +Formally, $$\mathrm{Prob}[X_t|X_0,\dots,X_{t-1},Y_1,\dots,Y_{t-1}]=\mathrm{Prob}[X_t|X_{t-1}]$$ and $$\mathrm{Prob}[Y_t|X_0,\dots,X_{t},Y_1,\dots,Y_{t-1}]=\mathrm{Prob}[Y_t|X_{t}],$$ for all $t=1,\dots,T$. ----------------------------------- @@ -209,7 +212,7 @@ step.fun <- Csnippet(" double dW = rnorm(0,sqrt(dt)); N += r*N*(1-N/K)*dt+sigma*N*dW; - ") +") ``` This is just a snippet of C code: not all the variables are declared and the context of the snippet is not specified. @@ -259,7 +262,7 @@ ```{r logistic-rmeasure} rmeas <- Csnippet(" pop = rpois(phi*N); - ") +") ``` In this snippet of code, `N` is the state variable, `phi` is another parameter, and `pop` is the name of our observable, as defined in the dataset `parus.dat`. The `rpois` function is part of the [`R` API](http://cran.r-project.org/doc/manuals/r-release/R-exts.html#The-R-API): it takes a single argument---the Poisson distribution's parameter---and returns a pseudo-random draw from the Poisson distribution with that parameter. @@ -295,7 +298,7 @@ ```{r logistic-dmeasure} dmeas <- Csnippet(" lik = dpois(pop,phi*N,give_log); - ") +") ``` and we fold it into the `pomp` object via ```{r logistic-pomp3,cache=FALSE} @@ -324,7 +327,7 @@ ```{r logistic-skeleton,cache=FALSE} skel <- Csnippet(" DN = r*N*(1-N/K); - ") +") parus <- pomp(parus,skeleton=skel,skeleton.type="vectorfield",statenames="N",paramnames=c("r","K")) ``` @@ -357,14 +360,14 @@ bh.step <- Csnippet(" double eps = rlnorm(-sigma*sigma/2,sigma); N = a*N/(1+b*N)*eps; - ") +") ``` A corresponding skeleton is the deterministic Beverton-Holt map obtained by setting $e_t=1$ in the above equation. A snippet that implements this map is ```{r bh-skeleton} bh.skel <- Csnippet(" DN = a*N/(1+b*N); - ") +") ``` Note that, as in the continuous case, we indicate the new value of the state variable by prepending `D` to the variable name. @@ -388,12 +391,12 @@ partrans <- Csnippet(" Tr = exp(r); TK = exp(K); - ") +") parinvtrans <- Csnippet(" Tr = log(r); TK = log(K); - ") +") parus <- pomp(parus,parameter.transform=partrans,parameter.inv.transform=parinvtrans, paramnames=c("r","K")) Modified: www/vignettes/getting_started.html =================================================================== --- www/vignettes/getting_started.html 2015-03-01 16:38:26 UTC (rev 1123) +++ www/vignettes/getting_started.html 2015-03-01 16:53:04 UTC (rev 1124) @@ -95,24 +95,14 @@
  • we might wish to evaluate the density itself at given values of \(X_t\) and/or \(Y_t\).
  • We refer to the simulation of \(f_{X_t|X_{t-1}}\) as the rprocess component of the POMP model, the evaluation of \(f_{X_t|X_{t-1}}\) as the dprocess component, the simulation of \(f_{Y_t|X_t}\), as the rmeasure component, and the evaluation of \(f_{Y_t|X_t}\) as the dmeasure component. Methods that make no use of the dprocess component are called ?plug-and-play? methods. At present, pomp is focused on such methods, so there is no reason to focus on the dprocess component any further. In the following, we will illustrate and explain how one specifies the rprocess, rmeasure, and dmeasure components of a model in pomp. We will illustrate this using some simple examples.

    -
    Introduction to pomp(PDF)(R code)Getting started with pomp(HTML)(R code)
    Advanced topics in pomp(PDF)(R code)
    pomp package manual (PDF)
    --- - - [TRUNCATED] To get the complete diff run: svnlook diff /svnroot/pomp -r 1124 From noreply at r-forge.r-project.org Mon Mar 2 00:55:22 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Mon, 2 Mar 2015 00:55:22 +0100 (CET) Subject: [Pomp-commits] r1125 - in pkg/pomp: . src tests Message-ID: <20150301235522.3B859186F2B@r-forge.r-project.org> Author: kingaa Date: 2015-03-02 00:55:21 +0100 (Mon, 02 Mar 2015) New Revision: 1125 Added: pkg/pomp/tests/getting_started.R pkg/pomp/tests/getting_started.Rout.save Modified: pkg/pomp/DESCRIPTION pkg/pomp/src/pomp_fun.c Log: - fix bug causing crashes in rstudio - add test of 'getting started' vignette's codes Modified: pkg/pomp/DESCRIPTION =================================================================== --- pkg/pomp/DESCRIPTION 2015-03-01 16:53:04 UTC (rev 1124) +++ pkg/pomp/DESCRIPTION 2015-03-01 23:55:21 UTC (rev 1125) @@ -1,7 +1,7 @@ Package: pomp Type: Package Title: Statistical Inference for Partially Observed Markov Processes -Version: 0.62-3 +Version: 0.62-4 Date: 2015-03-01 Authors at R: c(person(given=c("Aaron","A."),family="King", role=c("aut","cre"),email="kingaa at umich.edu"), Modified: pkg/pomp/src/pomp_fun.c =================================================================== --- pkg/pomp/src/pomp_fun.c 2015-03-01 16:53:04 UTC (rev 1124) +++ pkg/pomp/src/pomp_fun.c 2015-03-01 23:55:21 UTC (rev 1125) @@ -36,7 +36,7 @@ } switch (*mode) { - case native: + case native: { SEXP nsi; PROTECT(nsi = eval(lang3(install("getNativeSymbolInfo"),nf,pack),R_BaseEnv)); nprotect++; @@ -51,7 +51,7 @@ fname = (const char *) CHARACTER_DATA(STRING_ELT(nf,0)); pkg = (const char *) CHARACTER_DATA(STRING_ELT(pack,0)); ff = R_GetCCallable(pkg,fname); - PROTECT(f = R_MakeExternalPtr(ff,pfun,R_NilValue)); nprotect++; + PROTECT(f = R_MakeExternalPtr(ff,R_NilValue,R_NilValue)); nprotect++; } break; } Added: pkg/pomp/tests/getting_started.R =================================================================== --- pkg/pomp/tests/getting_started.R (rev 0) +++ pkg/pomp/tests/getting_started.R 2015-03-01 23:55:21 UTC (rev 1125) @@ -0,0 +1,125 @@ +require(pomp) + +options( + keep.source=TRUE, + stringsAsFactors=FALSE, + encoding="UTF-8" + ) + +parus.dat <- read.csv(text=" + year,pop + 1960,148 + 1961,258 + 1962,185 + 1963,170 + 1964,267 + 1965,239 + 1966,196 + 1967,132 + 1968,167 + 1969,186 + 1970,128 + 1971,227 + 1972,174 + 1973,177 + 1974,137 + 1975,172 + 1976,119 + 1977,226 + 1978,166 + 1979,161 + 1980,199 + 1981,306 + 1982,206 + 1983,350 + 1984,214 + 1985,175 + 1986,211" + ) + +## ----logistic-step-fun--------------------------------------------------- +step.fun <- Csnippet(" + double dW = rnorm(0,sqrt(dt)); + N += r*N*(1-N/K)*dt+sigma*N*dW; +") + +## ----logistic-pomp1,cache=FALSE------------------------------------------ +parus <- pomp(data=parus.dat,time="year",t0=1959, + rprocess=euler.sim(step.fun=step.fun,delta.t=1/365), + statenames="N",paramnames=c("r","K","sigma")) + +## ----logistic-simul1----------------------------------------------------- +simStates <- simulate(parus,nsim=10,params=c(r=0.2,K=200,sigma=0.5,N.0=200),states=TRUE) + +## ----logistic-rmeasure--------------------------------------------------- +rmeas <- Csnippet(" + pop = rpois(phi*N); +") + +## ----logistic-pomp2,cache=FALSE------------------------------------------ +parus <- pomp(parus,rmeasure=rmeas,paramnames="phi",statenames="N") + +## ----logistic-simul2----------------------------------------------------- +sim <- simulate(parus,params=c(r=0.2,K=200,phi=0.5,sigma=0.5,N.0=200), + nsim=10,obs=TRUE,states=TRUE) + +## ----logistic-dmeasure--------------------------------------------------- +dmeas <- Csnippet(" + lik = dpois(pop,phi*N,give_log); +") + +## ----logistic-pomp3,cache=FALSE------------------------------------------ +parus <- pomp(parus,dmeasure=dmeas,paramnames="phi",statenames="N") + +## ----logistic-pfilter---------------------------------------------------- +pf <- pfilter(parus,Np=1000,params=c(r=0.2,K=200,phi=0.5,sigma=0.5,N.0=200)) + +## ----logistic-skeleton,cache=FALSE--------------------------------------- +skel <- Csnippet(" + DN = r*N*(1-N/K); +") + +parus <- pomp(parus,skeleton=skel,skeleton.type="vectorfield",statenames="N",paramnames=c("r","K")) + +## ----logistic-traj1------------------------------------------------------ +pars <- parmat(c(r=1,K=200,phi=0.5,sigma=0.5,N.0=20),5) +pars["N.0",] <- seq(20,300,length=5) +traj <- trajectory(parus,params=pars,times=seq(1959,1970,by=0.01)) + +## ----bh-stepfun---------------------------------------------------------- +bh.step <- Csnippet(" + double eps = rlnorm(-sigma*sigma/2,sigma); + N = a*N/(1+b*N)*eps; +") + +## ----bh-skeleton--------------------------------------------------------- +bh.skel <- Csnippet(" + DN = a*N/(1+b*N); +") + +## ----bh-pomp1,cache=FALSE------------------------------------------------ +parus.bh <- pomp(parus,rprocess=discrete.time.sim(bh.step,delta.t=1),skeleton=bh.skel,skeleton.type="map",skelmap.delta.t=1,statenames="N",paramnames=c("a","b","sigma")) + +## ----bh-test------------------------------------------------------------- +coef(parus.bh) <- c(a=1.1,b=5e-4,sigma=0.5,N.0=30,phi=1) +sim <- simulate(parus.bh) +traj <- trajectory(parus.bh) +pf <- pfilter(parus.bh,Np=1000) + +## ----logistic-partrans,cache=FALSE--------------------------------------- +partrans <- Csnippet(" + Tr = exp(r); + TK = exp(K); +") + +parinvtrans <- Csnippet(" + Tr = log(r); + TK = log(K); +") + +parus <- pomp(parus,parameter.transform=partrans,parameter.inv.transform=parinvtrans,paramnames=c("r","K")) + +## ----logistic-partrans-test,include=FALSE,cache=FALSE-------------------- +p <- c(r=1,K=200,phi=1,N.0=200,sigma=0.5) +coef(parus,transform=TRUE) <- partrans(parus,p,dir="inv") +stopifnot(all.equal(p,coef(parus))) Added: pkg/pomp/tests/getting_started.Rout.save =================================================================== --- pkg/pomp/tests/getting_started.Rout.save (rev 0) +++ pkg/pomp/tests/getting_started.Rout.save 2015-03-01 23:55:21 UTC (rev 1125) @@ -0,0 +1,149 @@ + +R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet" +Copyright (C) 2014 The R Foundation for Statistical Computing +Platform: x86_64-unknown-linux-gnu (64-bit) + +R is free software and comes with ABSOLUTELY NO WARRANTY. +You are welcome to redistribute it under certain conditions. +Type 'license()' or 'licence()' for distribution details. + +R is a collaborative project with many contributors. +Type 'contributors()' for more information and +'citation()' on how to cite R or R packages in publications. + +Type 'demo()' for some demos, 'help()' for on-line help, or +'help.start()' for an HTML browser interface to help. +Type 'q()' to quit R. + +> require(pomp) +Loading required package: pomp +Loading required package: subplex +Loading required package: nloptr +> +> options( ++ keep.source=TRUE, ++ stringsAsFactors=FALSE, ++ encoding="UTF-8" ++ ) +> +> parus.dat <- read.csv(text=" ++ year,pop ++ 1960,148 ++ 1961,258 ++ 1962,185 ++ 1963,170 ++ 1964,267 ++ 1965,239 ++ 1966,196 ++ 1967,132 ++ 1968,167 ++ 1969,186 ++ 1970,128 ++ 1971,227 ++ 1972,174 ++ 1973,177 ++ 1974,137 ++ 1975,172 ++ 1976,119 ++ 1977,226 ++ 1978,166 ++ 1979,161 ++ 1980,199 ++ 1981,306 ++ 1982,206 ++ 1983,350 ++ 1984,214 ++ 1985,175 ++ 1986,211" ++ ) +> +> ## ----logistic-step-fun--------------------------------------------------- +> step.fun <- Csnippet(" ++ double dW = rnorm(0,sqrt(dt)); ++ N += r*N*(1-N/K)*dt+sigma*N*dW; ++ ") +> +> ## ----logistic-pomp1,cache=FALSE------------------------------------------ +> parus <- pomp(data=parus.dat,time="year",t0=1959, ++ rprocess=euler.sim(step.fun=step.fun,delta.t=1/365), ++ statenames="N",paramnames=c("r","K","sigma")) +> +> ## ----logistic-simul1----------------------------------------------------- +> simStates <- simulate(parus,nsim=10,params=c(r=0.2,K=200,sigma=0.5,N.0=200),states=TRUE) +> +> ## ----logistic-rmeasure--------------------------------------------------- +> rmeas <- Csnippet(" ++ pop = rpois(phi*N); ++ ") +> +> ## ----logistic-pomp2,cache=FALSE------------------------------------------ +> parus <- pomp(parus,rmeasure=rmeas,paramnames="phi",statenames="N") +> +> ## ----logistic-simul2----------------------------------------------------- +> sim <- simulate(parus,params=c(r=0.2,K=200,phi=0.5,sigma=0.5,N.0=200), ++ nsim=10,obs=TRUE,states=TRUE) +> +> ## ----logistic-dmeasure--------------------------------------------------- +> dmeas <- Csnippet(" ++ lik = dpois(pop,phi*N,give_log); ++ ") +> +> ## ----logistic-pomp3,cache=FALSE------------------------------------------ +> parus <- pomp(parus,dmeasure=dmeas,paramnames="phi",statenames="N") +> +> ## ----logistic-pfilter---------------------------------------------------- +> pf <- pfilter(parus,Np=1000,params=c(r=0.2,K=200,phi=0.5,sigma=0.5,N.0=200)) +> +> ## ----logistic-skeleton,cache=FALSE--------------------------------------- +> skel <- Csnippet(" ++ DN = r*N*(1-N/K); ++ ") +> +> parus <- pomp(parus,skeleton=skel,skeleton.type="vectorfield",statenames="N",paramnames=c("r","K")) +> +> ## ----logistic-traj1------------------------------------------------------ +> pars <- parmat(c(r=1,K=200,phi=0.5,sigma=0.5,N.0=20),5) +> pars["N.0",] <- seq(20,300,length=5) +> traj <- trajectory(parus,params=pars,times=seq(1959,1970,by=0.01)) +> +> ## ----bh-stepfun---------------------------------------------------------- +> bh.step <- Csnippet(" ++ double eps = rlnorm(-sigma*sigma/2,sigma); ++ N = a*N/(1+b*N)*eps; ++ ") +> +> ## ----bh-skeleton--------------------------------------------------------- +> bh.skel <- Csnippet(" ++ DN = a*N/(1+b*N); ++ ") +> +> ## ----bh-pomp1,cache=FALSE------------------------------------------------ +> parus.bh <- pomp(parus,rprocess=discrete.time.sim(bh.step,delta.t=1),skeleton=bh.skel,skeleton.type="map",skelmap.delta.t=1,statenames="N",paramnames=c("a","b","sigma")) +> +> ## ----bh-test------------------------------------------------------------- +> coef(parus.bh) <- c(a=1.1,b=5e-4,sigma=0.5,N.0=30,phi=1) +> sim <- simulate(parus.bh) +> traj <- trajectory(parus.bh) +> pf <- pfilter(parus.bh,Np=1000) +> +> ## ----logistic-partrans,cache=FALSE--------------------------------------- +> partrans <- Csnippet(" ++ Tr = exp(r); ++ TK = exp(K); ++ ") +> +> parinvtrans <- Csnippet(" ++ Tr = log(r); ++ TK = log(K); ++ ") +> +> parus <- pomp(parus,parameter.transform=partrans,parameter.inv.transform=parinvtrans,paramnames=c("r","K")) +> +> ## ----logistic-partrans-test,include=FALSE,cache=FALSE-------------------- +> p <- c(r=1,K=200,phi=1,N.0=200,sigma=0.5) +> coef(parus,transform=TRUE) <- partrans(parus,p,dir="inv") +> stopifnot(all.equal(p,coef(parus))) +> +> proc.time() + user system elapsed + 2.321 0.465 2.752 From noreply at r-forge.r-project.org Mon Mar 2 02:25:09 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Mon, 2 Mar 2015 02:25:09 +0100 (CET) Subject: [Pomp-commits] r1126 - www/vignettes Message-ID: <20150302012509.11CD71867C1@r-forge.r-project.org> Author: kingaa Date: 2015-03-02 02:25:08 +0100 (Mon, 02 Mar 2015) New Revision: 1126 Modified: www/vignettes/getting_started.html Log: - updated Modified: www/vignettes/getting_started.html =================================================================== --- www/vignettes/getting_started.html 2015-03-01 23:55:21 UTC (rev 1125) +++ www/vignettes/getting_started.html 2015-03-02 01:25:08 UTC (rev 1126) @@ -85,7 +85,7 @@

    Licensed under the Creative Commons attribution-noncommercial license. Please share and remix noncommercially, mentioning its origin.
    CC-BY_NC

    -

    This document compiled with pomp version 0.62.2.

    +

    This document compiled with pomp version 0.62.4.

    Partially observed Markov process (POMP) models

    As its name implies pomp is focused on partially observed Markov process models. These are also known as state-space model, hidden Markov models, and stochastic dynamical systems models. Such models consist of an unobserved stochastic state process, connected to the data via an explicit model of the observation process. We refer to the former as the process model and the latter as the measurement model. Each model is, in fact, a probability distribution. If we let \(Y_t\) denote the measurement process at time \(t\) and \(X_t\) the state process, then by definition, the process model is determined by the density \(f_{X_t|X_{t-1}}\) and the measurement process by the density \(f_{Y_t|X_t}\). We think of the data, \(y^*_t\), \(t=1,\dots,T\) as being a single realization of the \(Y\) process. To implement a POMP model in pomp, we have to specify the measurement and process distributions.

    From noreply at r-forge.r-project.org Mon Mar 2 13:46:40 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Mon, 2 Mar 2015 13:46:40 +0100 (CET) Subject: [Pomp-commits] r1127 - pkg/pompExamples Message-ID: <20150302124640.B5B501875A7@r-forge.r-project.org> Author: kingaa Date: 2015-03-02 13:46:40 +0100 (Mon, 02 Mar 2015) New Revision: 1127 Modified: pkg/pompExamples/DESCRIPTION Log: - bump pompExamples to trigger rebuild Modified: pkg/pompExamples/DESCRIPTION =================================================================== --- pkg/pompExamples/DESCRIPTION 2015-03-02 01:25:08 UTC (rev 1126) +++ pkg/pompExamples/DESCRIPTION 2015-03-02 12:46:40 UTC (rev 1127) @@ -2,7 +2,7 @@ Type: Package Title: Additional pomp examples Version: 0.27-1 -Date: 2015-02-25 +Date: 2015-03-02 Maintainer: Aaron A. King Authors at R: c(person(given=c("Aaron","A."),family="King",role=c("aut","cre"), email="kingaa at umich.edu"), From noreply at r-forge.r-project.org Tue Mar 3 04:17:36 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Tue, 3 Mar 2015 04:17:36 +0100 (CET) Subject: [Pomp-commits] r1128 - in pkg/pomp: . man Message-ID: <20150303031736.9002C187810@r-forge.r-project.org> Author: kingaa Date: 2015-03-03 04:17:35 +0100 (Tue, 03 Mar 2015) New Revision: 1128 Modified: pkg/pomp/DESCRIPTION pkg/pomp/man/pomp.Rd Log: - add alias for accumulator variables Modified: pkg/pomp/DESCRIPTION =================================================================== --- pkg/pomp/DESCRIPTION 2015-03-02 12:46:40 UTC (rev 1127) +++ pkg/pomp/DESCRIPTION 2015-03-03 03:17:35 UTC (rev 1128) @@ -1,8 +1,8 @@ Package: pomp Type: Package Title: Statistical Inference for Partially Observed Markov Processes -Version: 0.62-4 -Date: 2015-03-01 +Version: 0.62-5 +Date: 2015-03-02 Authors at R: c(person(given=c("Aaron","A."),family="King", role=c("aut","cre"),email="kingaa at umich.edu"), person(given=c("Edward","L."),family="Ionides",role=c("aut")), Modified: pkg/pomp/man/pomp.Rd =================================================================== --- pkg/pomp/man/pomp.Rd 2015-03-02 12:46:40 UTC (rev 1127) +++ pkg/pomp/man/pomp.Rd 2015-03-03 03:17:35 UTC (rev 1128) @@ -11,6 +11,7 @@ \alias{pomp,pomp-method} \alias{pomp-pomp} \alias{pomp-class} +\alias{accumulator variables} \description{ This function constructs a \code{pomp} object, encoding a partially-observed Markov process model together with a uni- or multivariate time series. From noreply at r-forge.r-project.org Tue Mar 3 04:17:39 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Tue, 3 Mar 2015 04:17:39 +0100 (CET) Subject: [Pomp-commits] r1129 - www/vignettes Message-ID: <20150303031739.D5BEB187810@r-forge.r-project.org> Author: kingaa Date: 2015-03-03 04:17:39 +0100 (Tue, 03 Mar 2015) New Revision: 1129 Modified: www/vignettes/pomp.pdf Log: - add alias for accumulator variables Modified: www/vignettes/pomp.pdf =================================================================== (Binary files differ) From noreply at r-forge.r-project.org Wed Mar 4 14:09:14 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Wed, 4 Mar 2015 14:09:14 +0100 (CET) Subject: [Pomp-commits] r1130 - www/vignettes Message-ID: <20150304130914.AB04C18103A@r-forge.r-project.org> Author: kingaa Date: 2015-03-04 14:09:14 +0100 (Wed, 04 Mar 2015) New Revision: 1130 Removed: www/vignettes/bsmc-ricker-flat-prior.rda www/vignettes/bsmc-ricker-normal-prior.rda www/vignettes/gompertz-multi-mif.rda www/vignettes/gompertz-performance.rda www/vignettes/gompertz-pfilter-guess.rda www/vignettes/gompertz-trajmatch.rda www/vignettes/nlf-block-boot.rda www/vignettes/nlf-boot.rda www/vignettes/nlf-fit-from-truth.rda www/vignettes/nlf-fits.rda www/vignettes/nlf-lag-tests.rda www/vignettes/nlf-multi-short.rda www/vignettes/plugin-C-code.rda www/vignettes/plugin-R-code.rda www/vignettes/ricker-comparison.rda www/vignettes/ricker-first-probe.rda www/vignettes/ricker-mif.rda www/vignettes/ricker-probe-match.rda www/vignettes/ricker-probe.rda www/vignettes/vectorized-C-code.rda www/vignettes/vectorized-R-code.rda Modified: www/vignettes/Makefile Log: - remove all .rda files from intro and advanced vignettes Modified: www/vignettes/Makefile =================================================================== --- www/vignettes/Makefile 2015-03-03 03:17:39 UTC (rev 1129) +++ www/vignettes/Makefile 2015-03-04 13:09:14 UTC (rev 1130) @@ -7,7 +7,7 @@ default: vignettes clean -vignettes: intro_to_pomp.pdf intro_to_pomp.R getting_started.html getting_started.R +vignettes: getting_started.html getting_started.R %.R: %.Rnw $(RSCRIPT) -e 'library(knitr); purl("$*.Rnw")' Deleted: www/vignettes/bsmc-ricker-flat-prior.rda =================================================================== (Binary files differ) Deleted: www/vignettes/bsmc-ricker-normal-prior.rda =================================================================== (Binary files differ) Deleted: www/vignettes/gompertz-multi-mif.rda =================================================================== (Binary files differ) Deleted: www/vignettes/gompertz-performance.rda =================================================================== (Binary files differ) Deleted: www/vignettes/gompertz-pfilter-guess.rda =================================================================== (Binary files differ) Deleted: www/vignettes/gompertz-trajmatch.rda =================================================================== (Binary files differ) Deleted: www/vignettes/nlf-block-boot.rda =================================================================== (Binary files differ) Deleted: www/vignettes/nlf-boot.rda =================================================================== (Binary files differ) Deleted: www/vignettes/nlf-fit-from-truth.rda =================================================================== (Binary files differ) Deleted: www/vignettes/nlf-fits.rda =================================================================== (Binary files differ) Deleted: www/vignettes/nlf-lag-tests.rda =================================================================== (Binary files differ) Deleted: www/vignettes/nlf-multi-short.rda =================================================================== (Binary files differ) Deleted: www/vignettes/plugin-C-code.rda =================================================================== (Binary files differ) Deleted: www/vignettes/plugin-R-code.rda =================================================================== (Binary files differ) Deleted: www/vignettes/ricker-comparison.rda =================================================================== (Binary files differ) Deleted: www/vignettes/ricker-first-probe.rda =================================================================== (Binary files differ) Deleted: www/vignettes/ricker-mif.rda =================================================================== (Binary files differ) Deleted: www/vignettes/ricker-probe-match.rda =================================================================== (Binary files differ) Deleted: www/vignettes/ricker-probe.rda =================================================================== (Binary files differ) Deleted: www/vignettes/vectorized-C-code.rda =================================================================== (Binary files differ) Deleted: www/vignettes/vectorized-R-code.rda =================================================================== (Binary files differ) From noreply at r-forge.r-project.org Wed Mar 4 14:09:19 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Wed, 4 Mar 2015 14:09:19 +0100 (CET) Subject: [Pomp-commits] r1131 - pkg pkg/pomp/man www www/content www/help www/vignettes Message-ID: <20150304130919.F341318103A@r-forge.r-project.org> Author: kingaa Date: 2015-03-04 14:09:19 +0100 (Wed, 04 Mar 2015) New Revision: 1131 Added: www/help/ www/help/00Index.html www/help/00frame_toc.html www/help/LondonYorke.html www/help/Makefile www/help/R.css www/help/abc.html www/help/basic-probes.html www/help/blowflies.html www/help/bsmc.html www/help/bsplines.html www/help/builder.html www/help/csnippet.html www/help/dacca.html www/help/design.html www/help/eulermultinom.html www/help/example.html www/help/gompertz.html www/help/index.html www/help/logmeanexp.html www/help/lowlevel.html www/help/mif.html www/help/nlf.html www/help/ou2.html www/help/parmat.html www/help/particles-mif.html www/help/pfilter.html www/help/plugins.html www/help/pmcmc.html www/help/pomp-fun.html www/help/pomp-methods.html www/help/pomp-package.html www/help/pomp.html www/help/pomp.pdf www/help/probe.html www/help/proposals.html www/help/ricker.html www/help/rw2.html www/help/sannbox.html www/help/simulate-pomp.html www/help/sir.html www/help/spect.html www/help/traj-match.html Removed: www/vignettes/index.html www/vignettes/pomp.pdf Modified: pkg/Makefile pkg/pomp/man/example.Rd www/content/vignettes.htm www/index.php www/vignettes/Makefile Log: - add html version of manual to package website Modified: pkg/Makefile =================================================================== --- pkg/Makefile 2015-03-04 13:09:14 UTC (rev 1130) +++ pkg/Makefile 2015-03-04 13:09:19 UTC (rev 1131) @@ -32,12 +32,12 @@ %.dist %.manual %.vignettes: export R_QPDF=qpdf %.dist %.manual %.vignettes: export R_GSCMD=gs %.dist %.manual %.vignettes: export GS_QUALITY=ebook -%.dist %.manual %.vignettes: export R_HOME=$(shell $(REXE) RHOME) +%.dist %.manual %.vignettes %.help: export R_HOME=$(shell $(REXE) RHOME) %.check %.crancheck: export _R_CHECK_ALL_NON_ISO_C_=TRUE %.crancheck: export R_PROFILE_USER=./Rprofile %.check %.crancheck: export _R_CHECK_WALL_FORTRAN_=TRUE %.check %.xcheck: export POMP_FULL_TESTS=yes -%.vignettes %.data: export R_LIBS=$(CURDIR)/library +%.vignettes %.help %.data: export R_LIBS=$(CURDIR)/library %.bin %.check %.qcheck %.qqcheck %.xcheck %.crancheck %.upload %.publish %.clean %.install %.win: PKG = $*_$(shell perl -ne 'print $$1 if /Version:\s+(\d+\.\d+-\d+)/;' $*/DESCRIPTION) pomp.vignettes: pomp.install pomp.manual @@ -48,6 +48,9 @@ pompExamples.vignettes: pompExamples.install (cd pompExamples/vignettes; make) +pomp.help: pomp.install + (cd ../www/help; make) + %.data: %.install cd $*/inst/data-R; make Modified: pkg/pomp/man/example.Rd =================================================================== --- pkg/pomp/man/example.Rd 2015-03-04 13:09:14 UTC (rev 1130) +++ pkg/pomp/man/example.Rd 2015-03-04 13:09:19 UTC (rev 1131) @@ -40,8 +40,10 @@ pompExample(euler.sir) pompExample("gompertz") pompExample(ricker,envir=NULL) +\dontrun{ file.show(system.file("examples/bbs.R",package="pomp")) } +} \seealso{ \code{\link{blowflies}}, \code{\link{dacca}}, \code{\link{gompertz}}, \code{\link{ou2}}, \code{\link{ricker}}, \code{\link{rw2}}, Modified: www/content/vignettes.htm =================================================================== --- www/content/vignettes.htm 2015-03-04 13:09:14 UTC (rev 1130) +++ www/content/vignettes.htm 2015-03-04 13:09:19 UTC (rev 1131) @@ -7,6 +7,7 @@
    - + +
    (R code)
    pomp package manual(PDF)(HTML)(PDF)
    Added: www/help/00Index.html =================================================================== --- www/help/00Index.html (rev 0) +++ www/help/00Index.html 2015-03-04 13:09:19 UTC (rev 1131) @@ -0,0 +1,810 @@ + +R: Statistical Inference for Partially Observed Markov Processes + + + +

    Statistical Inference for Partially Observed Markov Processes + +

    +
    +
    +[Up] +[Top] +

    Documentation for package ‘pomp’ version 0.62-5

    + + + +

    Help Pages

    + + +

    + +A +B +C +D +E +F +G +I +L +M +N +O +P +R +S +T +V +W +misc +

    + + + + +
    pomp-packageInference for partially observed Markov processes
    + +

    -- A --

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    ABCEstimation by approximate Bayesian computation (ABC)
    abcEstimation by approximate Bayesian computation (ABC)
    abc-abcEstimation by approximate Bayesian computation (ABC)
    abc-classEstimation by approximate Bayesian computation (ABC)
    abc-methodEstimation by approximate Bayesian computation (ABC)
    abc-methodsEstimation by approximate Bayesian computation (ABC)
    abc-pompEstimation by approximate Bayesian computation (ABC)
    abc-probed.pompEstimation by approximate Bayesian computation (ABC)
    abcList-classEstimation by approximate Bayesian computation (ABC)
    accumulator variablesConstructor of the basic POMP object
    as-methodParticle filter
    as-methodFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    as-methodProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    as.data.frame.pfilterd.pompParticle filter
    as.data.frame.pompFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    + +

    -- B --

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    basic.probesSome useful probes for partially-observed Markov processes
    Bayesian sequential Monte CarloThe Liu and West Bayesian particle filter
    bbsCompartmental epidemiological models
    blowfliesModel for Nicholson's blowflies.
    blowflies1Model for Nicholson's blowflies.
    blowflies2Model for Nicholson's blowflies.
    bsmcThe Liu and West Bayesian particle filter
    bsmc-methodThe Liu and West Bayesian particle filter
    bsmc-pompThe Liu and West Bayesian particle filter
    bsmc2The Liu and West Bayesian particle filter
    bsmc2-methodThe Liu and West Bayesian particle filter
    bsmc2-pompThe Liu and West Bayesian particle filter
    bspline.basisB-spline bases
    + +

    -- C --

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    c-abcEstimation by approximate Bayesian computation (ABC)
    c-abcListEstimation by approximate Bayesian computation (ABC)
    c-methodEstimation by approximate Bayesian computation (ABC)
    c-methodMaximum likelihood by iterated filtering
    c-methodThe particle Markov chain Metropolis-Hastings algorithm
    c-mifMaximum likelihood by iterated filtering
    c-mifListMaximum likelihood by iterated filtering
    c-pmcmcThe particle Markov chain Metropolis-Hastings algorithm
    c-pmcmcListThe particle Markov chain Metropolis-Hastings algorithm
    coef-methodFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    coef-pompFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    coef<-Functions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    coef<--methodFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    coef<--pompFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    coerce-methodParticle filter
    coerce-methodFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    coerce-methodProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    compare.mifMaximum likelihood by iterated filtering
    cond.logLikParticle filter
    cond.logLik-methodParticle filter
    cond.logLik-pfilterd.pompParticle filter
    continueMaximum likelihood by iterated filtering
    continue-abcEstimation by approximate Bayesian computation (ABC)
    continue-methodEstimation by approximate Bayesian computation (ABC)
    continue-methodMaximum likelihood by iterated filtering
    continue-methodThe particle Markov chain Metropolis-Hastings algorithm
    continue-mifMaximum likelihood by iterated filtering
    continue-pmcmcThe particle Markov chain Metropolis-Hastings algorithm
    conv.recMaximum likelihood by iterated filtering
    conv.rec-abcEstimation by approximate Bayesian computation (ABC)
    conv.rec-abcListEstimation by approximate Bayesian computation (ABC)
    conv.rec-methodEstimation by approximate Bayesian computation (ABC)
    conv.rec-methodMaximum likelihood by iterated filtering
    conv.rec-methodThe particle Markov chain Metropolis-Hastings algorithm
    conv.rec-mifMaximum likelihood by iterated filtering
    conv.rec-mifListMaximum likelihood by iterated filtering
    conv.rec-pmcmcThe particle Markov chain Metropolis-Hastings algorithm
    conv.rec-pmcmcListThe particle Markov chain Metropolis-Hastings algorithm
    CsnippetC code snippets for accelerating computations
    Csnippet-classC code snippets for accelerating computations
    + +

    -- D --

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    daccaModel of cholera transmission for historic Bengal.
    data.arrayFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    data.array-methodFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    data.array-pompFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    data.frame-pompConstructor of the basic POMP object
    deulermultinomThe Euler-multinomial distributions and Gamma white-noise processes
    discrete.time.simPlug-ins for state-process models
    dmeasurepomp low-level interface
    dmeasure-methodpomp low-level interface
    dmeasure-pomppomp low-level interface
    dpriorpomp low-level interface
    dprior-methodpomp low-level interface
    dprior-pomppomp low-level interface
    dprocesspomp low-level interface
    dprocess-methodpomp low-level interface
    dprocess-pomppomp low-level interface
    + +

    -- E --

    + + + + + + + + + + + + + + + + +
    eff.sample.sizeParticle filter
    eff.sample.size-methodParticle filter
    eff.sample.size-pfilterd.pompParticle filter
    euler.simPlug-ins for state-process models
    euler.sirCompartmental epidemiological models
    eulermultinomThe Euler-multinomial distributions and Gamma white-noise processes
    Example pomp modelsExamples of the construction of POMP models
    + +

    -- F --

    + + + + + + + + +
    filter.meanParticle filter
    filter.mean-methodParticle filter
    filter.mean-pfilterd.pompParticle filter
    + +

    -- G --

    + + + + + + + + +
    gillespie.simPlug-ins for state-process models
    gillespie.sirCompartmental epidemiological models
    gompertzGompertz model with log-normal observations.
    + +

    -- I --

    + + + + + + + + +
    init.statepomp low-level interface
    init.state-methodpomp low-level interface
    init.state-pomppomp low-level interface
    + +

    -- L --

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    logLik-methodMaximum likelihood by iterated filtering
    logLik-methodParameter estimation my maximum simulated quasi-likelihood (nonlinear forecasting)
    logLik-methodParticle filter
    logLik-methodThe particle Markov chain Metropolis-Hastings algorithm
    logLik-methodProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    logLik-methodParameter estimation by fitting the trajectory of a model's deterministic skeleton to data
    logLik-mifMaximum likelihood by iterated filtering
    logLik-nlfd.pompParameter estimation my maximum simulated quasi-likelihood (nonlinear forecasting)
    logLik-pfilterd.pompParticle filter
    logLik-pmcmcThe particle Markov chain Metropolis-Hastings algorithm
    logLik-probed.pompProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    logLik-traj.matched.pompParameter estimation by fitting the trajectory of a model's deterministic skeleton to data
    logmeanexpThe log-mean-exp trick
    LondonYorkeHistorical childhood disease incidence data
    + +

    -- M --

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    matrix-pompConstructor of the basic POMP object
    MCMC proposal distributionsMCMC proposal distributions
    MCMC proposal functionsMCMC proposal distributions
    mifMaximum likelihood by iterated filtering
    mif-classMaximum likelihood by iterated filtering
    mif-methodMaximum likelihood by iterated filtering
    mif-methodsMaximum likelihood by iterated filtering
    mif-mifMaximum likelihood by iterated filtering
    mif-pfilterd.pompMaximum likelihood by iterated filtering
    mif-pompMaximum likelihood by iterated filtering
    mifList-classMaximum likelihood by iterated filtering
    mvn.diag.rwMCMC proposal distributions
    mvn.rwMCMC proposal distributions
    + +

    -- N --

    + + + + + + + + + + + + + + + + +
    nlfParameter estimation my maximum simulated quasi-likelihood (nonlinear forecasting)
    nlf-methodParameter estimation my maximum simulated quasi-likelihood (nonlinear forecasting)
    nlf-nlfd.pompParameter estimation my maximum simulated quasi-likelihood (nonlinear forecasting)
    nlf-pompParameter estimation my maximum simulated quasi-likelihood (nonlinear forecasting)
    nlfd.pomp-classParameter estimation my maximum simulated quasi-likelihood (nonlinear forecasting)
    Nonlinear forecastingParameter estimation my maximum simulated quasi-likelihood (nonlinear forecasting)
    numeric-pompConstructor of the basic POMP object
    + +

    -- O --

    + + + + + + + + + + + + + + +
    obsFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    obs-methodFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    obs-pompFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    onestep.densPlug-ins for state-process models
    onestep.simPlug-ins for state-process models
    ou2Two-dimensional discrete-time Ornstein-Uhlenbeck process
    + +

    -- P --

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [TRUNCATED] To get the complete diff run: svnlook diff /svnroot/pomp -r 1131 From noreply at r-forge.r-project.org Wed Mar 4 14:09:23 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Wed, 4 Mar 2015 14:09:23 +0100 (CET) Subject: [Pomp-commits] r1132 - pkg Message-ID: <20150304130923.7AE7218103A@r-forge.r-project.org> Author: kingaa Date: 2015-03-04 14:09:23 +0100 (Wed, 04 Mar 2015) New Revision: 1132 Modified: pkg/Makefile Log: - add html version of manual to package website Modified: pkg/Makefile =================================================================== --- pkg/Makefile 2015-03-04 13:09:19 UTC (rev 1131) +++ pkg/Makefile 2015-03-04 13:09:23 UTC (rev 1132) @@ -40,16 +40,16 @@ %.vignettes %.help %.data: export R_LIBS=$(CURDIR)/library %.bin %.check %.qcheck %.qqcheck %.xcheck %.crancheck %.upload %.publish %.clean %.install %.win: PKG = $*_$(shell perl -ne 'print $$1 if /Version:\s+(\d+\.\d+-\d+)/;' $*/DESCRIPTION) -pomp.vignettes: pomp.install pomp.manual +pomp.vignettes: pomp.install (cd ../www/vignettes; make) - cp pomp.pdf ../www/vignettes $(RCMD) Rdconv -t html pomp/inst/NEWS.Rd -o ../www/content/NEWS.html pompExamples.vignettes: pompExamples.install (cd pompExamples/vignettes; make) -pomp.help: pomp.install +pomp.help: pomp.install pomp.manual (cd ../www/help; make) + cp pomp.pdf ../www/help %.data: %.install cd $*/inst/data-R; make From noreply at r-forge.r-project.org Wed Mar 4 15:18:49 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Wed, 4 Mar 2015 15:18:49 +0100 (CET) Subject: [Pomp-commits] r1133 - www Message-ID: <20150304141849.5D8471876E1@r-forge.r-project.org> Author: kingaa Date: 2015-03-04 15:18:49 +0100 (Wed, 04 Mar 2015) New Revision: 1133 Modified: www/index.php Log: - different link for manual from homepage Modified: www/index.php =================================================================== --- www/index.php 2015-03-04 13:09:23 UTC (rev 1132) +++ www/index.php 2015-03-04 14:18:49 UTC (rev 1133) @@ -52,7 +52,7 @@
  • About pomp
  • Development Version (Rev. )
  • Release Version () on CRAN
  • -
  • pomp manual (HTML)
  • +
  • pomp manual (HTML)
  • pomp-announce mailing list archives
  • Package NEWS
  • Tutorial vignettes
  • From noreply at r-forge.r-project.org Wed Mar 4 16:10:11 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Wed, 4 Mar 2015 16:10:11 +0100 (CET) Subject: [Pomp-commits] r1134 - pkg www www/content www/help Message-ID: <20150304151011.B596C186D47@r-forge.r-project.org> Author: kingaa Date: 2015-03-04 16:10:11 +0100 (Wed, 04 Mar 2015) New Revision: 1134 Removed: www/help/00Index.html www/help/00frame_toc.html www/help/LondonYorke.html www/help/Makefile www/help/R.css www/help/abc.html www/help/basic-probes.html www/help/blowflies.html www/help/bsmc.html www/help/bsplines.html www/help/builder.html www/help/csnippet.html www/help/dacca.html www/help/design.html www/help/eulermultinom.html www/help/example.html www/help/gompertz.html www/help/index.html www/help/logmeanexp.html www/help/lowlevel.html www/help/mif.html www/help/nlf.html www/help/ou2.html www/help/parmat.html www/help/particles-mif.html www/help/pfilter.html www/help/plugins.html www/help/pmcmc.html www/help/pomp-fun.html www/help/pomp-methods.html www/help/pomp-package.html www/help/pomp.html www/help/pomp.pdf www/help/probe.html www/help/proposals.html www/help/ricker.html www/help/rw2.html www/help/sannbox.html www/help/simulate-pomp.html www/help/sir.html www/help/spect.html www/help/traj-match.html Modified: pkg/Makefile www/content/vignettes.htm www/index.php Log: Revert "- add html version of manual to package website" Modified: pkg/Makefile =================================================================== --- pkg/Makefile 2015-03-04 14:18:49 UTC (rev 1133) +++ pkg/Makefile 2015-03-04 15:10:11 UTC (rev 1134) @@ -32,25 +32,22 @@ %.dist %.manual %.vignettes: export R_QPDF=qpdf %.dist %.manual %.vignettes: export R_GSCMD=gs %.dist %.manual %.vignettes: export GS_QUALITY=ebook -%.dist %.manual %.vignettes %.help: export R_HOME=$(shell $(REXE) RHOME) +%.dist %.manual %.vignettes: export R_HOME=$(shell $(REXE) RHOME) %.check %.crancheck: export _R_CHECK_ALL_NON_ISO_C_=TRUE %.crancheck: export R_PROFILE_USER=./Rprofile %.check %.crancheck: export _R_CHECK_WALL_FORTRAN_=TRUE %.check %.xcheck: export POMP_FULL_TESTS=yes -%.vignettes %.help %.data: export R_LIBS=$(CURDIR)/library +%.vignettes %.data: export R_LIBS=$(CURDIR)/library %.bin %.check %.qcheck %.qqcheck %.xcheck %.crancheck %.upload %.publish %.clean %.install %.win: PKG = $*_$(shell perl -ne 'print $$1 if /Version:\s+(\d+\.\d+-\d+)/;' $*/DESCRIPTION) -pomp.vignettes: pomp.install +pomp.vignettes: pomp.install pomp.manual (cd ../www/vignettes; make) + cp pomp.pdf ../www/vignettes $(RCMD) Rdconv -t html pomp/inst/NEWS.Rd -o ../www/content/NEWS.html pompExamples.vignettes: pompExamples.install (cd pompExamples/vignettes; make) -pomp.help: pomp.install pomp.manual - (cd ../www/help; make) - cp pomp.pdf ../www/help - %.data: %.install cd $*/inst/data-R; make Modified: www/content/vignettes.htm =================================================================== --- www/content/vignettes.htm 2015-03-04 14:18:49 UTC (rev 1133) +++ www/content/vignettes.htm 2015-03-04 15:10:11 UTC (rev 1134) @@ -7,7 +7,6 @@ - - +
    parmatCreate a matrix of parameters
    particle filterParticle filter
    partransFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    partrans-methodFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    partrans-pompFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    periodic.bspline.basisB-spline bases
    pfilterParticle filter
    pfilter-methodParticle filter
    pfilter-pfilterd.pompParticle filter
    pfilter-pompParticle filter
    pfilterd.pomp-classParticle filter
    plot-abcEstimation by approximate Bayesian computation (ABC)
    plot-abcListEstimation by approximate Bayesian computation (ABC)
    plot-bsmcd.pompThe Liu and West Bayesian particle filter
    plot-methodEstimation by approximate Bayesian computation (ABC)
    plot-methodThe Liu and West Bayesian particle filter
    plot-methodMaximum likelihood by iterated filtering
    plot-methodThe particle Markov chain Metropolis-Hastings algorithm
    plot-methodFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    plot-methodProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    plot-mifMaximum likelihood by iterated filtering
    plot-mifListMaximum likelihood by iterated filtering
    plot-pmcmcThe particle Markov chain Metropolis-Hastings algorithm
    plot-pmcmcListThe particle Markov chain Metropolis-Hastings algorithm
    plot-pompFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    plot-probe.matched.pompProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    plot-probed.pompProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    plot-spect.pompProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    pluginsPlug-ins for state-process models
    pmcmcThe particle Markov chain Metropolis-Hastings algorithm
    pmcmc-classThe particle Markov chain Metropolis-Hastings algorithm
    pmcmc-methodThe particle Markov chain Metropolis-Hastings algorithm
    pmcmc-methodsThe particle Markov chain Metropolis-Hastings algorithm
    pmcmc-pfilterd.pompThe particle Markov chain Metropolis-Hastings algorithm
    pmcmc-pmcmcThe particle Markov chain Metropolis-Hastings algorithm
    pmcmc-pompThe particle Markov chain Metropolis-Hastings algorithm
    pmcmcList-classThe particle Markov chain Metropolis-Hastings algorithm
    pompConstructor of the basic POMP object
    pomp constructorConstructor of the basic POMP object
    pomp low-level interfacepomp low-level interface
    pomp methodsFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    pomp packageInference for partially observed Markov processes
    POMP simulationSimulations of a partially-observed Markov process
    pomp-classConstructor of the basic POMP object
    pomp-methodConstructor of the basic POMP object
    pomp-methodsFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    pomp-pompConstructor of the basic POMP object
    pompExampleExamples of the construction of POMP models
    pompLoadpomp low-level interface
    pompLoad-methodpomp low-level interface
    pompLoad-pomppomp low-level interface
    pompUnloadpomp low-level interface
    pompUnload-methodpomp low-level interface
    pompUnload-pomppomp low-level interface
    Power spectrum computation and matchingPower spectrum computation and spectrum-matching for partially-observed Markov processes
    power spectrum computation and matchingPower spectrum computation and spectrum-matching for partially-observed Markov processes
    pred.meanParticle filter
    pred.mean-methodParticle filter
    pred.mean-pfilterd.pompParticle filter
    pred.varParticle filter
    pred.var-methodParticle filter
    pred.var-pfilterd.pompParticle filter
    print-methodFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    print-pompFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    probeProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    Probe functionsSome useful probes for partially-observed Markov processes
    probe functionsSome useful probes for partially-observed Markov processes
    probe-methodProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    probe-pompProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    probe-probed.pompProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    probe.acf (R code)
    pomp package manual(HTML)(PDF)(PDF)
    Deleted: www/help/00Index.html =================================================================== --- www/help/00Index.html 2015-03-04 14:18:49 UTC (rev 1133) +++ www/help/00Index.html 2015-03-04 15:10:11 UTC (rev 1134) @@ -1,810 +0,0 @@ - -R: Statistical Inference for Partially Observed Markov Processes - - - -

    Statistical Inference for Partially Observed Markov Processes - -

    -
    -
    -[Up] -[Top] -

    Documentation for package ‘pomp’ version 0.62-5

    - - - -

    Help Pages

    - - -

    - -A -B -C -D -E -F -G -I -L -M -N -O -P -R -S -T -V -W -misc -

    - - - - -
    pomp-packageInference for partially observed Markov processes
    - -

    -- A --

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ABCEstimation by approximate Bayesian computation (ABC)
    abcEstimation by approximate Bayesian computation (ABC)
    abc-abcEstimation by approximate Bayesian computation (ABC)
    abc-classEstimation by approximate Bayesian computation (ABC)
    abc-methodEstimation by approximate Bayesian computation (ABC)
    abc-methodsEstimation by approximate Bayesian computation (ABC)
    abc-pompEstimation by approximate Bayesian computation (ABC)
    abc-probed.pompEstimation by approximate Bayesian computation (ABC)
    abcList-classEstimation by approximate Bayesian computation (ABC)
    accumulator variablesConstructor of the basic POMP object
    as-methodParticle filter
    as-methodFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    as-methodProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    as.data.frame.pfilterd.pompParticle filter
    as.data.frame.pompFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    - -

    -- B --

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    basic.probesSome useful probes for partially-observed Markov processes
    Bayesian sequential Monte CarloThe Liu and West Bayesian particle filter
    bbsCompartmental epidemiological models
    blowfliesModel for Nicholson's blowflies.
    blowflies1Model for Nicholson's blowflies.
    blowflies2Model for Nicholson's blowflies.
    bsmcThe Liu and West Bayesian particle filter
    bsmc-methodThe Liu and West Bayesian particle filter
    bsmc-pompThe Liu and West Bayesian particle filter
    bsmc2The Liu and West Bayesian particle filter
    bsmc2-methodThe Liu and West Bayesian particle filter
    bsmc2-pompThe Liu and West Bayesian particle filter
    bspline.basisB-spline bases
    - -

    -- C --

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    c-abcEstimation by approximate Bayesian computation (ABC)
    c-abcListEstimation by approximate Bayesian computation (ABC)
    c-methodEstimation by approximate Bayesian computation (ABC)
    c-methodMaximum likelihood by iterated filtering
    c-methodThe particle Markov chain Metropolis-Hastings algorithm
    c-mifMaximum likelihood by iterated filtering
    c-mifListMaximum likelihood by iterated filtering
    c-pmcmcThe particle Markov chain Metropolis-Hastings algorithm
    c-pmcmcListThe particle Markov chain Metropolis-Hastings algorithm
    coef-methodFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    coef-pompFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    coef<-Functions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    coef<--methodFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    coef<--pompFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    coerce-methodParticle filter
    coerce-methodFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    coerce-methodProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    compare.mifMaximum likelihood by iterated filtering
    cond.logLikParticle filter
    cond.logLik-methodParticle filter
    cond.logLik-pfilterd.pompParticle filter
    continueMaximum likelihood by iterated filtering
    continue-abcEstimation by approximate Bayesian computation (ABC)
    continue-methodEstimation by approximate Bayesian computation (ABC)
    continue-methodMaximum likelihood by iterated filtering
    continue-methodThe particle Markov chain Metropolis-Hastings algorithm
    continue-mifMaximum likelihood by iterated filtering
    continue-pmcmcThe particle Markov chain Metropolis-Hastings algorithm
    conv.recMaximum likelihood by iterated filtering
    conv.rec-abcEstimation by approximate Bayesian computation (ABC)
    conv.rec-abcListEstimation by approximate Bayesian computation (ABC)
    conv.rec-methodEstimation by approximate Bayesian computation (ABC)
    conv.rec-methodMaximum likelihood by iterated filtering
    conv.rec-methodThe particle Markov chain Metropolis-Hastings algorithm
    conv.rec-mifMaximum likelihood by iterated filtering
    conv.rec-mifListMaximum likelihood by iterated filtering
    conv.rec-pmcmcThe particle Markov chain Metropolis-Hastings algorithm
    conv.rec-pmcmcListThe particle Markov chain Metropolis-Hastings algorithm
    CsnippetC code snippets for accelerating computations
    Csnippet-classC code snippets for accelerating computations
    - -

    -- D --

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    daccaModel of cholera transmission for historic Bengal.
    data.arrayFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    data.array-methodFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    data.array-pompFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    data.frame-pompConstructor of the basic POMP object
    deulermultinomThe Euler-multinomial distributions and Gamma white-noise processes
    discrete.time.simPlug-ins for state-process models
    dmeasurepomp low-level interface
    dmeasure-methodpomp low-level interface
    dmeasure-pomppomp low-level interface
    dpriorpomp low-level interface
    dprior-methodpomp low-level interface
    dprior-pomppomp low-level interface
    dprocesspomp low-level interface
    dprocess-methodpomp low-level interface
    dprocess-pomppomp low-level interface
    - -

    -- E --

    - - - - - - - - - - - - - - - - -
    eff.sample.sizeParticle filter
    eff.sample.size-methodParticle filter
    eff.sample.size-pfilterd.pompParticle filter
    euler.simPlug-ins for state-process models
    euler.sirCompartmental epidemiological models
    eulermultinomThe Euler-multinomial distributions and Gamma white-noise processes
    Example pomp modelsExamples of the construction of POMP models
    - -

    -- F --

    - - - - - - - - -
    filter.meanParticle filter
    filter.mean-methodParticle filter
    filter.mean-pfilterd.pompParticle filter
    - -

    -- G --

    - - - - - - - - -
    gillespie.simPlug-ins for state-process models
    gillespie.sirCompartmental epidemiological models
    gompertzGompertz model with log-normal observations.
    - -

    -- I --

    - - - - - - - - -
    init.statepomp low-level interface
    init.state-methodpomp low-level interface
    init.state-pomppomp low-level interface
    - -

    -- L --

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    logLik-methodMaximum likelihood by iterated filtering
    logLik-methodParameter estimation my maximum simulated quasi-likelihood (nonlinear forecasting)
    logLik-methodParticle filter
    logLik-methodThe particle Markov chain Metropolis-Hastings algorithm
    logLik-methodProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    logLik-methodParameter estimation by fitting the trajectory of a model's deterministic skeleton to data
    logLik-mifMaximum likelihood by iterated filtering
    logLik-nlfd.pompParameter estimation my maximum simulated quasi-likelihood (nonlinear forecasting)
    logLik-pfilterd.pompParticle filter
    logLik-pmcmcThe particle Markov chain Metropolis-Hastings algorithm
    logLik-probed.pompProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    logLik-traj.matched.pompParameter estimation by fitting the trajectory of a model's deterministic skeleton to data
    logmeanexpThe log-mean-exp trick
    LondonYorkeHistorical childhood disease incidence data
    - -

    -- M --

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    matrix-pompConstructor of the basic POMP object
    MCMC proposal distributionsMCMC proposal distributions
    MCMC proposal functionsMCMC proposal distributions
    mifMaximum likelihood by iterated filtering
    mif-classMaximum likelihood by iterated filtering
    mif-methodMaximum likelihood by iterated filtering
    mif-methodsMaximum likelihood by iterated filtering
    mif-mifMaximum likelihood by iterated filtering
    mif-pfilterd.pompMaximum likelihood by iterated filtering
    mif-pompMaximum likelihood by iterated filtering
    mifList-classMaximum likelihood by iterated filtering
    mvn.diag.rwMCMC proposal distributions
    mvn.rwMCMC proposal distributions
    - -

    -- N --

    - - - - - - - - - - - - - - - - -
    nlfParameter estimation my maximum simulated quasi-likelihood (nonlinear forecasting)
    nlf-methodParameter estimation my maximum simulated quasi-likelihood (nonlinear forecasting)
    nlf-nlfd.pompParameter estimation my maximum simulated quasi-likelihood (nonlinear forecasting)
    nlf-pompParameter estimation my maximum simulated quasi-likelihood (nonlinear forecasting)
    nlfd.pomp-classParameter estimation my maximum simulated quasi-likelihood (nonlinear forecasting)
    Nonlinear forecastingParameter estimation my maximum simulated quasi-likelihood (nonlinear forecasting)
    numeric-pompConstructor of the basic POMP object
    - -

    -- O --

    - - - - - - - - - - - - - - -
    obsFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    obs-methodFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    obs-pompFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    onestep.densPlug-ins for state-process models
    onestep.simPlug-ins for state-process models
    ou2Two-dimensional discrete-time Ornstein-Uhlenbeck process
    - -

    -- P --

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [TRUNCATED] To get the complete diff run: svnlook diff /svnroot/pomp -r 1134 From noreply at r-forge.r-project.org Thu Mar 5 00:04:11 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Thu, 5 Mar 2015 00:04:11 +0100 (CET) Subject: [Pomp-commits] r1135 - www/vignettes Message-ID: <20150304230412.02198187A4B@r-forge.r-project.org> Author: kingaa Date: 2015-03-05 00:04:11 +0100 (Thu, 05 Mar 2015) New Revision: 1135 Added: www/vignettes/pomp.pdf Log: - put manual back in Added: www/vignettes/pomp.pdf =================================================================== --- www/vignettes/pomp.pdf (rev 0) +++ www/vignettes/pomp.pdf 2015-03-04 23:04:11 UTC (rev 1135) @@ -0,0 +1,2646 @@ +%PDF-1.5 +%???? +1 0 obj +<< /Type /ObjStm /Length 4540 /Filter /FlateDecode /N 99 /First 841 >> +stream +x??\is?8??????vRS!????????I????l??Rl???,y$9??_?OM?"i[v??[[? +?G?????UT?.\(L??+l?)\!Ut?/????4???.?BV? d?? +'U???[ ???????,?-??8? ++?????Ph?L!c???C?Z"Rh??*?t^FE?Ma?[X?|AL? ? g??PxI???+????0?e?c??*?2\?T?`? ?mU???Y??? +-?[Izs?????d+???l??Yy:?q?,???`?Z?e??Z??I???? vp ??"E:??AS: +~???C?? ???B? ?C??,Y@???8? +W?ta?? 5C???5???I??l??@???C?h$?????(???2?"??!"Q??;F??"? c?`??8(*X????e00mY?;?????b?^??G?Y?j??.????^??R????;o??T??????p7?]?(?GQ??7?T??y????u??2?????????y?|???????????/K?????6?o\?x<_72?#G6o??a? ???x??7???lo?R???? ???F?l_?d^??gg?w?GG???;=?am6?d?????= ???= ?)??#hPB???l+!?[(a=??4m?_??? +?? ?_v?????)??\?)w?V2\?S?O?#>c????n?'?+?v?]?v?a?]???6;b???r_%????????????????q?4???f?????U??-0?q8?????? +?_i*~Gbn?J?*S??????j??????&8??(??????{G???S??.???^????????F{>???>Z???I?????Hf?R?R#?B +\z??**?i?/)K????????+?H?=}?~?EE???ci?-'U7??=J???h???D!????????bv?r_??Y?)?????I)?{p:?*3?@.%?HM9L?^?E*?3?!v??????i?UR??*;4??W6?S)?????k??*??rj?c????~u??*??t?? S??$???4G`}? ???H???+??|????z&??}t-1????V6?8Ju4T?8????R?#?? ?????x(?'?g?T?{??x-???x#~o?????H?&?)???????E"'>?Oc??\?Opq"N??????T?????b"&?b!??T??lZ?sqN?3??-???.????d2??p?>;???in??MD??h2:kC??A?????>:0M???????F?zAN?????????O_ig??5?($?F?65t?E???x|4?]????xr\???r?;A@?^?;??Q*?????R(ZJ ??g??????? +M???EE,mFN7?r:K??AFz?????*_3HqIQ]?1]???.???? ah?? 4???q?????R6?~?:?T?????aS????V?$ls?*??????-??????>??)??'J??'d??"?O+><|??????=???????Z?l????=y?????.S????9n?????8r??P??(s????c?nD?="???U?????9??????nM?R?????????????lF/??"]?ub??-??_??? x?8??[?1?<???o???h???`??{??x}b?Aa???????????|??4??RL??)a???0{??]???N.???j?-7j?. '{???????????????\\???????a?f`?u??>/K??j?$?? ?R?M?K?tU??????9oP??A???|?V?F%?????M??65??? F?X$??*??:???f????????i?l?u??xI?(???c???>????a +i??b*9?-A;S??NT%?,????|?=??????O????x%?????????[xo om??-???????????Z$G??''??D??I????:v??%y?X?A?n???s???B?R???*?????20???[??? +??????R#???9?0?-?nK9V}9?Jz{w}???S$?????"?#!?&??+???i[???JkUh?z[z? ?aT?tN??+????I?M?6LI?m,?7H* V???4;?I????|]??)e`?????%? ?6c?.?RCV??b????[?Vi?dc(oBZx+??.?2??t?l?+?"`??"d? I??&???U?[?h?Y??,4!#?1?+?H?S?|?+%UY??T`q??.???M????-X?@T/h@??FE??/is?? ?\??%??U?X?P{??4?o +@:c1?m?,|????????V?~?2?? pwko7??$???V?????/>?xE???U43^??? xU??.?????R +U??o?k?Pl?y?} +?x?=u4???|Z5??/z?8???????????~|????:???j?M?M?~'??????U??b???IyB??o4??i??]?}?gi????wu?E"J{?.?2?v??vt?? x??MJM+?A?B???m?|??N?):32?D??????7?k???????????"L???aZriv??R????o?5?o=?12???x2?Jd???f%?D?|?|q:??u|?'W?? ??D1??I??.?j???C?????????v ??$???@_]mY?????w1???#?fmd?}7?=7??5\?????N}2??? ?x6??;???\???Q+:?????????C?O?t?g}???h???6E71???????G?^8?4X??? ?}??(Z??????V?^?kp1d???L???????k?{??}?e???U?]5r?nX +-{Ki?v,Ye???{5@??i.uW?????TJ??[??&[{2???z?????AS?MB?Zg??:;x???????{ +?2y?????t??e?[,?ub??_?k??q}?I??? ?????MhS????K??????G?j????+{z???1??e8??^?mW?K?v2_????t??Z?w?v? +]okK??+m?;???9 ??4???B*?P91x*8?Te??????G???C??7j?u?@????bI??????{Z??R???V?S?????u;]?>>?T#?????_IP?LR???oC +aH??vDN?n?#r?????????Ek# }??va???? ,????[?aG?[Ie?"?Q?M??????J?a?&J?;?zi6~8Q)???j? ??z??@????0???Xveendstream +endobj +101 0 obj +<< /Subtype /XML /Type /Metadata /Length 1340 >> +stream + + + + + +2015-03-02T22:15:39-05:00 +2015-03-02T22:15:39-05:00 +Raph Levien + +Inconsolata + + + + +endstream +endobj +102 0 obj +<< /Type /ObjStm /Length 2499 /Filter /FlateDecode /N 99 /First 907 >> +stream +x??[[o?}????E?s?A_?6@?R?4-?@?k??D +$ +8??? g???E??RRj???????]?????B ???)???? ? ??8F??1??x???&h'??????(???`D?? f????p?5????;P?qP??C~T??????bF"%??z_,?7??@???=y???P}???#-i9y/????9????L????? ???WF2kp6J?1?y??????~6???TX> ?=X?j??w|?? =vC??d?????Y???j:&*??Pe?>~???E???Dr?4DK{?x???gE)??????? ??b?????z}????vqs+?_}X,/o???????E5??C???1?D?4-??n????qJ?s=A??q?L>C??V*??>J$nO2h'sL??O?h??8/?A??"???????m?q?j?c$???????|????7V:???+???#?US,?&&?Afs u;?Ou?????X?E??m??6m9???}?CA?z?????Yt?90????@O??j????????j6GY?kxPS?LRa??c?s??4?@:T!Kf&?P=?31?cC4dk??j #OMJ?? +??]K)???Nln????M ???\B4e??&??g???o????>*?XO?? ?????I??N????b?>?????2?-??????m??a????=?{??t???!????=???^??????8?S?:?Z +Tj+@?R??x\T!?B??! ???????????????J>}8??x?G???? ??q?)?????0??2??$f?? ?}?l??&????<|P?HZl??Xz`?J ?????Q?=D~??:;~???J? +>?G??jx 9&~ W??$-??O?P??`?d???5? ??o? b???u'?CX?M?b?? k???`????y9t?-vbW>c?????l;?? ?4??{w?????_% ???????}k_???]??P??=????h$?lQ???m??50??se fdF??????&}h??1z??H?+%q??}?l???#(S?.?GF??????Bn??A?? ywC????T?v ?,Qk*??? ????o ?e?R?U???z????{?c?????F:?? ??????n:}??? +:??> +stream +x??Zmo7??_A?_ZL?rH????)?C ???????u?%CZ???g(?????V^'>?????p??W?3??r?+,~?"?????oT?g?$C?oV??5????*kA?Y?A?TK???B?lP6??c????l?2')?Y?dy?9pC?9??c??}??/??a??2??@??1 ??L??o???.+????"/???@h?S"??]*o???c ? ?,J?({????hye?1H`???? ??>?^??? O?''s??9? `???g ?%I?J*?l?] ?? F?b???q? +,*?z???? ???B2E6*?r?????BY??X????@??? 2??e_L?S??1?? Z ??U4^?1?s?@??AQ???Q??B@ ? ? "??_d/cep 1???*:`?: ? 6 ?D?4?M??4?S?E?_J?|@0?,??*?c ?JQ????T& ??= ??J????Ve`?\??y9?.2?l???H?`$LB??a?c$?#?bSb/L????????S?????f?R??P +?V???????C??E???F ?U~5oX-?w?q?TB??????zTW?J??W?]L?\?[??U +??w/^?????D????n+?~U?r?-?[????-?[???|???Vj????????????l????[l??ug????P?_??????z2??n}s]?? n?7?zq?a????{????????g??e?X??????^.???k??'????j? ??????f^???.\?????p4??????D??y6w???z?C V?6?=?%44$l???&?7??xQ-?n?z?????V?&1vs??M?['???O??%? +???"?A?.K??C?LC~????=??????_?.Em?T??=?9???>i?VW??k???z???? +?td??? ?)#??dt3??R3)?V{; }e?n???f???)???*?K>&?=V?? +?i +??}??b?4?1???)d]??????$?9??;P????o?@Q?=1?&X?#?c?9??i>rO?Hf??6??4?w?OP????????u'?;)???h????????9???A??A6?x??[??tLw?????O??I??8?Q?????rT???J?O}?%S?/???K~n?g???? +??U?Z?<??M??2]? :????`9?3???B?q?.l?Cf5????>=5??l?E?????A_?p?1ZV?s??o???l9???b??C????(???#P?? T!i{?3??'?????6+???U? endstream +endobj +302 0 obj +<< /Type /ObjStm /Length 2620 /Filter /FlateDecode /N 99 /First 900 >> +stream +x??[k?[???_?? ?P?? E?v??E\?????]?k5ki????? Ei?????Z?( ??(?p8s?An ??8?Wu1?srR??Rd\?Kj????)??Wr>;b|?E?t?????T?&a?2n????????c???\?!?c?av?m8:?b7????5???d??M????b??_J?N+e?>EcLL??.F????8!????+:??????l? +D???N??????8????R????t@????S??Jr? ??\?`:?6A?.0%??JX?b7??`U"&?$???K?d??R??&?TM$X!??j?M?6X?2!a?2?4? Yl?+??)???'q?B?bRW??0????+d?L?A???"&? ?L%f??`?#. ??9?RZq???QWC?X9?J6V??i????zY5`t S?? +?Z?v???'?.??d?~?aXc?????"???? ?^(&???w9?ra9K??B??*?qDj?W??Fh}1=??????=?c0?w?m$?.?)Q ??????v?G??js???D?Y??]t?'??f??W@??r?|?jq?x???g????_?????vg????????? ???????|3o??@???WW??l~ama??@??$?l?S?F7Z?WP +Z?|??MC??b??U?)a?'1?)??ab_Ms?zX???E?^aQ;X??7?? ?djc??@?1???d?????;??U?b~w? ??? N??????j?N????V??gm????_e??t"?#=48J?????7???c???d?|?#?;?}LT??{???7M?}?We??C%?FX[??M?/??/g?? +.6??r????????f????k????????????@???e[?????*?d_-????x??rX[?i????&X??k???W?a?d$?>4=p(?'? +??[??(?[???+??9?B0L?\???@??R? ????;]p??>U Bh#MD]??68??6??<"c???S) j?4X???q ,?> l???(>!D???D??Z?????N?1,?K?, ????JsU&%???0,J5_?????6-? ?r8??BF?`I2??E?)A??@F?I ?8?7? V??? 9V??????4????b?'x?5???B?????N?[?????a?M?=rn?????T??m???, +E??j:i??5!l?. {??g(??????Q? F????{?S??+? ?N??p$??????x+ ? G2??NZ????;???*???o??N)"AEy????F??cS?w?bE?rU???=*??+?S?:*???????,???X?!?C ?SYX?ca??k?=??????D??-??r?r.?Z>:????f??k?@????*?e?z??J??&l?U?^?,?'??$<VB?Hw??X??"???,rL?>&?H?*9 at +m??c?l?; ??? ???R??L?AY??4??6?#??"W??#??!h??v??bz#c?[??^3?????????|??????w1?bs? ?????D?sSW??/dZ?<4??~ +?}kf? +????????b?cL? ?????Q%??Zy[?8V-??I???z?3uuMC;"?'R?tgG$?pGd?x???????R?NCBFTZ?Nk?T?|??;?U?KjK?D?L??(????H?L???N\??m{?????6?3??:Q~?????????>?T-???6?hE:?y?m????D???UFr~? +??'9?E9????B??Kl?d?X0??*"1?L?oy?{r;????h??G?????a??????lA????s???????+h???x?:G"???5????Kw???AL?v\ ?j??sw?}??K????????K?e????:jT?P?????!?&??U?z?z?`????El??}T??Su?g?? +??Sia?N{ ??RHDl? +?[7DH?5?????7????G?=????}???3??,/V??K7?a?|??Y??x?X?l??>_?.n??/????j?N?? |~?j??0??v??6??r??:n.L?(k?????????#?5?b???Mp??W`?????KI$ +?????D?{??Y?n?=]\????!S?????}i,??w??????i+???c??u?v??]???1 G(Go?w??r?W ?* aH@?iH?????e???*J/?????3e????L?v_?^G? ~???????W???E?F_?????>j|M??????@?? +"R*??/?? +@??s?%$?d?K?m"?????V?v0????:r????@ +???-??YL?[?X?Uc9j?a???wk????W?F???V??z +X??"???!E?F??Q??", +??M/??L????R?\?;?q??AN???f[?j +t???X?&e?c*S?,Q???i?????)?2??;I??_???"endstream +endobj +402 0 obj +<< /Type /ObjStm /Length 2743 /Filter /FlateDecode /N 99 /First 912 >> +stream +x??[[o\?~???c?P???? @?4E???}p5u?J?,????qgw%[??&?????p8?o. ??O???????a?+?;&9??S?I(?r???:f? ??J??p???8?,??I?z&/?V?Q&8 +????#?TL(??un???d????\i??????eP???Z? +??t???6?D?<???\)??????+OZ[?}???G?B +#SZ-?!\i9?)?&a?????(l?ut*??l?)?? +v?%H????k +??*?l??? ??4????4a????3???s???2??0W?h?}?a?v?n?Fwc?Q|T?^uz??U?W?^uz??5???^sz??5???^sz??5???^wz??u???^wz??u???^wz?? +?7??pz?? +?7??pz???=*d7f?G???X}l>v?Nv:??d?qG??????W??W?2 +y.^????W/??~???+???@x??7x6???xv???????7????w??~~???????A?v?^|ss????-?^|????????nA???1???KR?????}y}????s?&???????|CB?|?W??^r?!f?N'Ni? ? +?????????v???WW?????}????]???6?????em.ksY???=?526??N??????Xrl ??G?F? ?????@?d???Pj;??Z|??;l?a????aX?!???X???}????3E??j???eI????"?F}Z@???U?%????9????S?#*?U#??/ +?R????J9"A????[?*0h?G(??Q?@2??Z???4%F;????z?r??!?<$MP?A??C???F7????????U kT-????T??t8Vi +Qt?)AX??=?^?-?~\???? ?X????\`????Q|0?#?(?sZ??y/?.?u?? ?????M??3??h~???????>?^???????????R??4 +?!e????G?????c???yA*Z?)Z???Q???)?z?????[?y?f?U1???W??t?+tsz??*YdU6?ZUIOlU^?Sbk(?? ??a?va+??w4??U?????^??Yl??? ?#?? +?{lU?Sy??7???b?_??R?&?Ky??c.?$7? ?F[?E???6?????ki?[F$?%?R????m:#??o?YB5bO?@??4????y{a,.?????R???&? ???H??????e?,b??wK?8?dX??j??| +Yw?;\AV??cp????K>0 ????laf??x??j?)????,?n@?E?????? ?~?|+?);??f? ? ??`?n??B?X?{??????m???\!y?%?????QH??HKq??D60%?csDh? +?|PPtwF%`s]?Bi?h????h??ku?N?y?????+?u??d??W???? Rn?86s?`"0?o?????a?R +????}?V????Hs?U,???2p???`{?bL}? +?S5??J> +stream +x??[???}?W? ?d?H??8??8? ?!?A??c?X???s?S=?y?v(4?=??buU?n4?A?*???Rm?'?T????H???D?J%QS?? +V??%.?x??~?$1?O?????%?KPK??c?????G?2$)X0?5 ??)?2~???:(?$????& +??+???m?'?@?? ?????V???K??`+?BhV?$CZ*?L ?s6_??6?????f?V??%????.???Z?S??????@???p???^????N.??U???T?? +????m`v????*?a??W_??????SJ? ?s?\??7??E??3?~????~???~~?gz??|?????Kz??S<=?>??2u??? t+,????b??\A?;??R3|???"?g??v_????_?Wf5B???s?c??b?%F?1?P?1?Q????A????'>?1?q????AO?^(?s???$?I???'AO??= +z?4?i????AO??= +z?,?Y???gA???= z?,?Y?kWzn>O?/?Gh??V???O?????SX????'L~??s?f??O??_>$7?o??|?????e??s?w?=?????????7????|C?|z?W?6?z????v?;?#???T?|.???}:?C +]?vG??&b????< +?1?'ef$-#?G??$)9??XD2k}-S?????^+U?}???? ?9NlId?WW5w]?????????CY????8Vu?????[u??r???^????^???z?\+???c?f??C? ???T0rV???^?fQ? ?^Z?z???y?[O??XZ?1?????mzFQ?r?l? 8[???<1?h2????`@??? +??b??=??2???40??q +N ?:dvR???B?8?B /?O???Y?6A??5????Z??l!H???|Y???oSq?"??@???ZP???;l??8c????#??'1??????~T&???0??&?i?[?l7?? ????????(??t?`y???"?q????????]?wS?Z????# W??c?0Q?#U??f ?/[?????L0??S???zq??#C`j?!?2???O??p??p???:y-D??7??X.i?~??KO?7 ??*?zrgzR??????`p??>??y??|?O??.?????21???c??????????w???U0??y??oa?^{???E????h?y?IvtW? +,h?endstream +endobj +602 0 obj +<< /Type /ObjStm /Length 2804 /Filter /FlateDecode /N 99 /First 915 >> +stream +x??[??? +??)?sER% 0?4M7-`?]?)?p??"hp]?????=G?????KeLa?7w???G??eK9?\????&cK??????{rG???$?D????I?:&R??l?JM??1iI???x??9?I??????-5?I?q"I???I??b`?+&%?'5??+-Y?W@?Ur???????,?C,< +Xh???2? +???????? ???Np???.? q??G.??bm?d??!2?K?A?"? +??DT?l???0?R)??5??[?~? 2?a#?;1??x????u???q?5??5??}^??)=_L*g?9????&?9?6???p??(Je)R??k?Ju ?Q?? +??n??a??????o????????>? +{??~L??9~|????;~?J??i??(??U?????_x??????h?????[%?l??}???????zL???????s????w????;89?Ro?f??oC???&??0e?0e +??6)m?m2/[?bk?X?2U?T?????V(??"?(??:|?0 ??Vh?2?+k?w?????:???6X?Dp???????S??`o?%?+x>Y???L?????????V??*r~?????Q??N??K~???Pc?? ??;??c?5F???Xcl1??c z5???W?^ +z5???W?^ +z5?????^ z-?????^ z-?????^ z??xB?? ~??=?M????????D?????^??y~???y???=k????????~$?^~?=????D_?80???????! ?'X?????e_j???P??a?$????????>??k?^?5?F??-???V??@????ZH?g)?dV???R?4`k??A36?` W????q}???!j\???M?!????n?T.:sR?i? ????l?L?aK?ZL?a?tC|??o?????Mng??9j??Ro???V%xrx??l2???????w?:??e??????Xm`]M? ?6K"T???b?>??k?OK?-?eW?q?]??`z?*v!?h??C??*??S?(w??e???5?eN???Z-???]??I+???|???3?h?6?{S?lDe??SG ???l??? +LUw@?l?W1?L???q*P5?Z^??=V????{?q?c(?-v}?ybj?y?t???!G???k?t?Z??/-?6??]?RK????l??g? +2???????????????Kx:zwX????? ?~????> +S.??;??? +???N????p??????.?B17?BC?&?K? +?N?f?hK??????? +Z??>??????;C???:??lZ5?l?E??l??????%???` A:; /a??O6?n???3_#??-?_??]?? ?E??]w??{?Mw?????ww?'d??????d?H????Z???\?Y?,^L?:??Q??????g ?s? ??q???,???f??>?_??+l?c[v?uOhk?????`?? +[???X:n???????\???????U?????ak+??t?DFu40)??wCg?O?%??????G +???????N????'?#N?G???8Yq?>?d}?????}?-?c????1??N??x??v????Q?0v?(????J???A/???4????y?c????AO?^??]_??,? +????? q z?!??!??!??!??!??!??!??w0???_;?+4?d?~?#?????????`y? +????D?? \?endstream +endobj +702 0 obj +<< /Type /ObjStm /Length 2591 /Filter /FlateDecode /N 99 /First 915 >> +stream +x??[???? +??)????$??N???.?)?H3????"????G?'K{???>6M?????"??V4?v?????T+???+~S???;?F%QQ7???`C,iS<.?D?x?(??JOF=?d?a???R?????:?f?Z??????????Uiq?p???=?!w?O?D??g?q7?'U?^ ?u(??t?K??T? ???;??Z?hA ?zu???z?W?n=$??????|?%W?????????+=yw??:L??-???}| ????`?t??TH?5Hi??P<?`CfD??Q??kG????w?AaND5??a?PS?????Al!??9???*o0Wb?s +??a4????M?I?5?;?B?Na?? +3?e????????B?8?P.$BZ ?i?2??A???5???? z?;?B?? ???????????}L?????LO? m'??>??y??7??o?)?g??7rX?????w????;?%?ldY?M???-?U?????^???[z??/????:?????Kz????D????:?0I???b??k??)???V?aF?????u??Tr??MRj??/???e?R?????#L?r?zS???[6x?]{?f?&^?T?,(?3?2\}v?(.?N@:gX?5??I?Oz}???^???????Oz>??????Oz>????????E????\e?:W???N??????hut(?1????/???2??FW???x??#?M???>=????)?q????????{???Y?????I?????ooa?O??v????^m?????o?????A???Q*???xv?,*%???[????a??(??F0vf??e-:.?Y??b A? $???W???fjk????=lo?U?Y?E?uc??!??;S?uy????Z???^0???f?dqw?8S????z K?9G??zI??\S??\?)?[??Jq?VZ???nRU3?x?h?a???U.k?????t?1g????????"p?#?t$9?4???*?x?? +V?>???a??W]\I=>?4????????'\??Z????????Q??9?+??????j?F?A?9??4?x???T?????Q8???DM?^5g??OJv?]}Q?[\?9??2??M{?2r???? 4?\A???&?U?.C?s??:???6P?Yu?K?g?d??G??=?.?5??B???0?{?Np?Q??r?PY??\m?xQ???????L?S*?5? +?T~S?????7T9???????6=?t1P8?XI ?CRp?um????+v????????s??^?RC?-Lm?*????*g????jX?%#(^;?? +?0 ?1%f?I????i?1???pSQR????????1??!zUD??0??o??! ?????}??vI????'9-)?????))??{WIjz??=?8 +]??????h??QF,F??&Y??GuT?w?!G?N???????&????)????t4z???8Fo?????cA8n??/??(?_*???z} jF;^?U}c +???'?Q??C?g? b???? +R-m2??]iGJ?????endstream +endobj +802 0 obj +<< /Type /ObjStm /Length 2666 /Filter /FlateDecode /N 99 /First 915 >> +stream +x??[]?? +}???/?J$????K v???PsG;Bmz????!????@eGCnx?g????%H??k??N ??????R9")H+?d$v,EG?J?9???% :5h-???=? +?AGag??L8?9???"??k\?Z??uk 6V?5?lX??Pd`?C1cg?Rx?J3vr(}??6Gr?#????;5?:G ?6?LS~?m????& ??e?6??V?K??[??\,4??Cjmt?L?b??4J?/w????(&?x?A??:?? #? +#?C?l??p????\Nmat????S??z?e??%?? i0?d?=?G????uP?!?4 ??rN?????? +=?z??E?????#S??c?=|~?x????~y????O?y????y??????_hlwo??t???o?l????O??g?pr??b ????p???m?[q??????a???`????C-%??:?'???????-i?Yu???????? 6?????L-????\??@t4p?"?HM +L???.?)? +??4? ?T?G?r ?????a?V??v???>?0??^1gH?q??hi??????????m???Y:????7Lo? +????P???VT????=???'?fJP +E??6?y???????? ?Goq???+?#?P?r9W6p??+lY???P??,?????? ?+!??????9??1?S$;P????L????6D? IK????1p??*?gD?g+????????'??eBy???OUSM%???F??? ?9s?L)(?o?? +???qA?X?&???Z??)?H%0h> +stream +x??Z?n?}?W?q?`?U??l% ?7???Y?a??"#?*"/ +??2yL????e?FT??))??????6?????lbD?S?3l[???0?z4?(=Qq"i$?? +??? ??Y?P?kY`XV????U?Cr?N??Y??X?????d!6y?)???'+g?(G?a?? +0??9?????o?.??WN?f??M??Qy?2:?04??^?{?|H????d??Q??*?@?N??Da?*?(?? +?dTR!?U4????0*????+????????(???D??v]????T???!??D????? )`D??REE?R???}F???]?=???G?=2??,?me$#{???HL zCK??`x?]R?b?Xj???i???b ?gd?s???Fs??a0?a????2d????,?????(??`???`??A????r???.?\???W??eW????S?k??w6k???V+?/u?S?u?zb?????Z?Ux???>?x?????*????f?|?o?J?Z|?v?b?????n?????????P??= 6Xa?= ?Q ?0??W/v?U??v}qy(????/*??r]Q?E??????z?Ro?5??????z?B?Y??7????W???z?^:??C?B?^? ???b???'w?s??9????Z??????G???^A#?C]???Y_7?_???j??^???Ot4?1?{??XU????????XsI?????!?????7? +Ae??@???n????I,ZoA>;?!?w?~?K??5k %????l??b?/??Bdi?(?M?G???t????q?:???#TD]*?,??Q?u??h???#?]?#?z???wd?9??l?'s?~??2?,????????^???8C????Gx??????V???-??`?\??`???a%?C????cs=t?"-9?s?]y????Ko??????l?|?_?'2G???????Rm?nS-????tS-?? +???XpZ[?!???f`m#|?]?z?m??????2G??? ???G8??P??]???z?????U??Z???zhj????_?a+N}?j???,?fuwS?_?lD?~0?#?]???O2)??#?}c?# f? ??2$?? vQ??? ?-???w?N?Lf?F?Y??N)?!???}k?#Le?L?? ?,??Q?AaG??v???????p??G}??|TVx +?EA]Rz??????B??"?=^?? +???????????f{ +??U???_?z_JUm?-??????y???Qo`??azr^yBq???Q????????m*u?c???5????u???*O??? ???????91u???CE` 9`???=?b?g?UQ???i??2???L???T?????4?3)??)?b?????#??5#???T??A*?3ME????????O'H???UO?b?i???????B?1? ?!? +4???????G?Ig? +^?0?EM??)?3My???WSSc?C?$??GL?t?vVLSC?c????&?:?4+????L?)????NnV=???g?5?%???:?y5??-?&????VKq5'??zB?D??'?H?}?????l?"k?x??h?A?7????i3oU???E???T~Z9??y59?H??-????????M 0??)?Q???5?N? ???f??????5??? ?I???493?&w?=9???oFLn2E????bF-???i? +GYD?r?=?+by???E?????'^?s??]??_89? ??p??+?????Dg??y3??G?c?:??a???z???w???W???7??]?}??7????z?}????T??l?!??*?W?-?`yt5"? ??ha?b???S?/> +stream +x??\[s???i??+?u*?K?wg'?u???K'???mnxQH*???{??n?i??Td?????????[L?????8_??'-?7???oV?V???q?~?s9??b??Z??WmI +y?B?5?Xq???+?6?_!???Q?-?$?AQ!9Pd\?P???!??F7I???K?{{???@%T????%?|P?c+??B??? +j?C??-?4?????yR4????????? JSf?[?0S???A#??2l?Dx????????s?}??I?????U C?6t]}&?%??????J:`>T??S???X+?$??U???p??i5IV?^D?I?Fdi?_Y?f ??K.?wz? 5???????G ?Q??;???FYxF4?, OK??.?*+a!?z{r ?2Ii*?`?(?[?\???pc$???SGN??e/??(??/??????y?m? bS?Db???P?????R? +??z?qI"5mM??Y!?Q7?? lNa9??t??;Ft???I?????g?? J?mZ?:{??QY??????u??E??#x 6??) ???????????Uy(?~{l?}Z7Uz??????? ?p{?.R????/??*?h?@ +?b?3??,\GTu?P????8???K?s +???f?\ ???????????:???x?9+P???#m???m??|H +?? ?v??9?=??5?? ?6?????xdD??Es??-70O?????_L???,!?????)???Nr,h$??z?????????????QDjv?I????)?c^@z???????B?a + ?J??? 9%?h?)x>??xL>??8`? ??? +,d ????sS?A@?^r?? ????+?Q~n? +}??7??$??I??:{No??c L?)f ?N??????//8Qp>+? +`Bj?(C????b?m?c??~M????S?,.????/??&I|#0 ??W???? +?T??{Y???*cs???3?????D?????{??p?? +kj??$e?^???V???/???I ?f?b???-?|\?_??*????,?????G?%E?m???5?????5HY? +QyU'??A#??K????U?~????^I??$???~?? +?? +O??O??>y???&u\??*ooL|?C??R??!? +??&????\S??lw??&??l????????w??m$??J??&!???{?q,???Y??? ?r??s [TRUNCATED] To get the complete diff run: svnlook diff /svnroot/pomp -r 1135 From noreply at r-forge.r-project.org Thu Mar 5 14:21:07 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Thu, 5 Mar 2015 14:21:07 +0100 (CET) Subject: [Pomp-commits] r1136 - in pkg/pomp: . R Message-ID: <20150305132107.D7B93187872@r-forge.r-project.org> Author: kingaa Date: 2015-03-05 14:21:07 +0100 (Thu, 05 Mar 2015) New Revision: 1136 Modified: pkg/pomp/DESCRIPTION pkg/pomp/R/builder.R pkg/pomp/R/pomp.R Log: - add secret .filedir and .filename arguments to 'pomp.internal' to allow saving of C codes in arbitrary directory Modified: pkg/pomp/DESCRIPTION =================================================================== --- pkg/pomp/DESCRIPTION 2015-03-04 23:04:11 UTC (rev 1135) +++ pkg/pomp/DESCRIPTION 2015-03-05 13:21:07 UTC (rev 1136) @@ -1,8 +1,8 @@ Package: pomp Type: Package Title: Statistical Inference for Partially Observed Markov Processes -Version: 0.62-5 -Date: 2015-03-02 +Version: 0.62-6 +Date: 2015-03-05 Authors at R: c(person(given=c("Aaron","A."),family="King", role=c("aut","cre"),email="kingaa at umich.edu"), person(given=c("Edward","L."),family="Ionides",role=c("aut")), Modified: pkg/pomp/R/builder.R =================================================================== --- pkg/pomp/R/builder.R 2015-03-04 23:04:11 UTC (rev 1135) +++ pkg/pomp/R/builder.R 2015-03-05 13:21:07 UTC (rev 1136) @@ -1,8 +1,8 @@ -pompCBuilder <- function (name = NULL, +pompCBuilder <- function (name = NULL, dir = NULL, statenames, paramnames, covarnames, obsnames, rmeasure, dmeasure, step.fn, skeleton, parameter.transform, parameter.inv.transform, - rprior, dprior, globals, dir = NULL, + rprior, dprior, globals, verbose = getOption("verbose",FALSE)) { Modified: pkg/pomp/R/pomp.R =================================================================== --- pkg/pomp/R/pomp.R 2015-03-04 23:04:11 UTC (rev 1135) +++ pkg/pomp/R/pomp.R 2015-03-05 13:21:07 UTC (rev 1136) @@ -9,7 +9,8 @@ obsnames, statenames, paramnames, covarnames, zeronames, PACKAGE, parameter.transform, parameter.inv.transform, - globals, userdata, ..., .solibfile, + globals, userdata, ..., + .solibfile, .filename, .filedir, verbose = getOption("verbose",FALSE)) { ## preliminary error checking @@ -18,6 +19,8 @@ if (missing(t0)) stop(sQuote("t0")," is a required argument") if (missing(params)) params <- numeric(0) if (missing(.solibfile)) .solibfile <- list() + if (missing(.filename)) .filename <- NULL + if (missing(.filedir)) .filedir <- NULL if (missing(userdata)) userdata <- list() added.userdata <- list(...) @@ -144,6 +147,8 @@ paramnames=paramnames, covarnames=covarnames, globals=globals, + name=.filename, + dir=.filedir, verbose=verbose ), snips From noreply at r-forge.r-project.org Thu Mar 5 15:44:42 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Thu, 5 Mar 2015 15:44:42 +0100 (CET) Subject: [Pomp-commits] r1137 - in pkg/pomp: . R Message-ID: <20150305144442.9EF141858DF@r-forge.r-project.org> Author: kingaa Date: 2015-03-05 15:44:42 +0100 (Thu, 05 Mar 2015) New Revision: 1137 Modified: pkg/pomp/DESCRIPTION pkg/pomp/R/mif.R Log: - in 'mif', var.factor=1 is the default. Remove stray error blocking this. Modified: pkg/pomp/DESCRIPTION =================================================================== --- pkg/pomp/DESCRIPTION 2015-03-05 13:21:07 UTC (rev 1136) +++ pkg/pomp/DESCRIPTION 2015-03-05 14:44:42 UTC (rev 1137) @@ -1,7 +1,7 @@ Package: pomp Type: Package Title: Statistical Inference for Partially Observed Markov Processes -Version: 0.62-6 +Version: 0.62-7 Date: 2015-03-05 Authors at R: c(person(given=c("Aaron","A."),family="King", role=c("aut","cre"),email="kingaa at umich.edu"), Modified: pkg/pomp/R/mif.R =================================================================== --- pkg/pomp/R/mif.R 2015-03-05 13:21:07 UTC (rev 1136) +++ pkg/pomp/R/mif.R 2015-03-05 14:44:42 UTC (rev 1137) @@ -408,8 +408,6 @@ if (missing(Np)) stop("mif error: ",sQuote("Np")," must be specified",call.=FALSE) - if (missing(var.factor)) - stop("mif error: ",sQuote("var.factor")," must be specified",call.=FALSE) cooling.type <- match.arg(cooling.type) From noreply at r-forge.r-project.org Fri Mar 6 13:44:34 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Fri, 6 Mar 2015 13:44:34 +0100 (CET) Subject: [Pomp-commits] r1138 - in pkg/pomp: . R tests Message-ID: <20150306124434.DF7C91845E3@r-forge.r-project.org> Author: kingaa Date: 2015-03-06 13:44:34 +0100 (Fri, 06 Mar 2015) New Revision: 1138 Modified: pkg/pomp/DESCRIPTION pkg/pomp/R/abc.R pkg/pomp/R/mif.R pkg/pomp/R/pmcmc.R pkg/pomp/tests/gompertz.Rout.save Log: - add names to dimnames of conv.rec in abc, pmcmc, and mif objects Modified: pkg/pomp/DESCRIPTION =================================================================== --- pkg/pomp/DESCRIPTION 2015-03-05 14:44:42 UTC (rev 1137) +++ pkg/pomp/DESCRIPTION 2015-03-06 12:44:34 UTC (rev 1138) @@ -1,8 +1,8 @@ Package: pomp Type: Package Title: Statistical Inference for Partially Observed Markov Processes -Version: 0.62-7 -Date: 2015-03-05 +Version: 0.62-8 +Date: 2015-03-06 Authors at R: c(person(given=c("Aaron","A."),family="King", role=c("aut","cre"),email="kingaa at umich.edu"), person(given=c("Edward","L."),family="Ionides",role=c("aut")), Modified: pkg/pomp/R/abc.R =================================================================== --- pkg/pomp/R/abc.R 2015-03-05 14:44:42 UTC (rev 1137) +++ pkg/pomp/R/abc.R 2015-03-06 12:44:34 UTC (rev 1138) @@ -85,8 +85,8 @@ nrow=Nabc+1, ncol=length(theta), dimnames=list( - rownames=seq(from=0,to=Nabc,by=1), - colnames=names(theta) + iteration=seq(from=0,to=Nabc,by=1), + variable=names(theta) ) ) @@ -283,6 +283,7 @@ object at conv.rec[,colnames(obj at conv.rec)], obj at conv.rec[-1,] ) + names(dimnames(obj at conv.rec)) <- c("iteration","variable") obj at Nabc <- as.integer(ndone+Nabc) obj Modified: pkg/pomp/R/mif.R =================================================================== --- pkg/pomp/R/mif.R 2015-03-05 14:44:42 UTC (rev 1137) +++ pkg/pomp/R/mif.R 2015-03-06 12:44:34 UTC (rev 1138) @@ -244,8 +244,8 @@ nrow=Nmif+1, ncol=length(theta)+2, dimnames=list( - seq(.ndone,.ndone+Nmif), - c('loglik','nfail',names(theta)) + iteration=seq(.ndone,.ndone+Nmif), + variable=c('loglik','nfail',names(theta)) ) ) conv.rec[1L,] <- c(NA,NA,theta) @@ -538,6 +538,7 @@ object at conv.rec, obj at conv.rec[-1L,colnames(object at conv.rec)] ) + names(dimnames(obj at conv.rec)) <- c("iteration","variable") obj at Nmif <- as.integer(ndone+Nmif) obj Modified: pkg/pomp/R/pmcmc.R =================================================================== --- pkg/pomp/R/pmcmc.R 2015-03-05 14:44:42 UTC (rev 1137) +++ pkg/pomp/R/pmcmc.R 2015-03-06 12:44:34 UTC (rev 1138) @@ -90,8 +90,8 @@ nrow=Nmcmc+1, ncol=length(theta)+3, dimnames=list( - rownames=seq(from=0,to=Nmcmc,by=1), - colnames=c('loglik','log.prior','nfail',names(theta)) + iteration=seq(from=0,to=Nmcmc,by=1), + variable=c('loglik','log.prior','nfail',names(theta)) ) ) @@ -300,6 +300,7 @@ object at conv.rec[,colnames(obj at conv.rec)], obj at conv.rec[-1,] ) + names(dimnames(obj at conv.rec)) <- c("iteration","variable") obj at Nmcmc <- as.integer(ndone+Nmcmc) obj } Modified: pkg/pomp/tests/gompertz.Rout.save =================================================================== --- pkg/pomp/tests/gompertz.Rout.save 2015-03-05 14:44:42 UTC (rev 1137) +++ pkg/pomp/tests/gompertz.Rout.save 2015-03-06 12:44:34 UTC (rev 1138) @@ -77,13 +77,14 @@ K r sigma tau X.0 1.0478 0.1992 0.1000 0.1000 1.0000 > conv.rec(mf) - loglik nfail K r sigma tau X.0 -0 30.35 0 0.00000 -1.609 -2.303 -2.303 0 -1 30.59 0 0.01048 -1.609 -2.303 -2.303 0 -2 30.96 0 0.02378 -1.610 -2.303 -2.303 0 -3 29.78 0 0.03161 -1.607 -2.303 -2.303 0 -4 31.18 0 0.03785 -1.611 -2.303 -2.303 0 -5 NA NA 0.04671 -1.613 -2.303 -2.303 0 + variable +iteration loglik nfail K r sigma tau X.0 + 0 30.35 0 0.00000 -1.609 -2.303 -2.303 0 + 1 30.59 0 0.01048 -1.609 -2.303 -2.303 0 + 2 30.96 0 0.02378 -1.610 -2.303 -2.303 0 + 3 29.78 0 0.03161 -1.607 -2.303 -2.303 0 + 4 31.18 0 0.03785 -1.611 -2.303 -2.303 0 + 5 NA NA 0.04671 -1.613 -2.303 -2.303 0 > conv.rec(mf,transform=TRUE) K r sigma tau X.0 loglik nfail 0 1.000 0.2000 0.1 0.1 1 30.35 0 @@ -93,21 +94,23 @@ 4 1.039 0.1996 0.1 0.1 1 31.18 0 5 1.048 0.1992 0.1 0.1 1 NA NA > conv.rec(mf,c("loglik","r")) - loglik r -0 30.35 -1.609 -1 30.59 -1.609 -2 30.96 -1.610 -3 29.78 -1.607 -4 31.18 -1.611 -5 NA -1.613 + variable +iteration loglik r + 0 30.35 -1.609 + 1 30.59 -1.609 + 2 30.96 -1.610 + 3 29.78 -1.607 + 4 31.18 -1.611 + 5 NA -1.613 > try(conv.rec(mf,c("loglik","r"),transform=FALSE)) - loglik r -0 30.35 -1.609 -1 30.59 -1.609 -2 30.96 -1.610 -3 29.78 -1.607 -4 31.18 -1.611 -5 NA -1.613 + variable +iteration loglik r + 0 30.35 -1.609 + 1 30.59 -1.609 + 2 30.96 -1.610 + 3 29.78 -1.607 + 4 31.18 -1.611 + 5 NA -1.613 > try(conv.rec(mf,c("loglik","r"),transform=TRUE)) loglik r 0 30.35 0.2000 @@ -133,4 +136,4 @@ > > proc.time() user system elapsed - 1.576 0.052 1.652 + 1.838 0.040 1.853 From noreply at r-forge.r-project.org Thu Mar 12 12:34:30 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Thu, 12 Mar 2015 12:34:30 +0100 (CET) Subject: [Pomp-commits] r1139 - in www: content vignettes Message-ID: <20150312113430.1650A1876D9@r-forge.r-project.org> Author: kingaa Date: 2015-03-12 12:34:29 +0100 (Thu, 12 Mar 2015) New Revision: 1139 Added: www/vignettes/abc.rda www/vignettes/algorithm2e.sty www/vignettes/cleveref.sty www/vignettes/gompertz-mif.rda www/vignettes/jss.bst www/vignettes/jss.cls www/vignettes/nlf-mif-compare.rda www/vignettes/pmcmc.rda www/vignettes/pompjss.R www/vignettes/pompjss.Rnw www/vignettes/pompjss.bib www/vignettes/pompjss.pdf www/vignettes/ricker-comparison.rda www/vignettes/ricker-mif.rda www/vignettes/ricker-probe-match.rda www/vignettes/timing.rda Modified: www/content/vignettes.htm www/vignettes/getting_started.R www/vignettes/getting_started.Rmd www/vignettes/getting_started.html www/vignettes/pomp.pdf Log: - add pompjss paper to vignettes Modified: www/content/vignettes.htm =================================================================== --- www/content/vignettes.htm 2015-03-06 12:44:34 UTC (rev 1138) +++ www/content/vignettes.htm 2015-03-12 11:34:29 UTC (rev 1139) @@ -2,6 +2,11 @@
    parmatCreate a matrix of parameters
    particle filterParticle filter
    partransFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    partrans-methodFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    partrans-pompFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    periodic.bspline.basisB-spline bases
    pfilterParticle filter
    pfilter-methodParticle filter
    pfilter-pfilterd.pompParticle filter
    pfilter-pompParticle filter
    pfilterd.pomp-classParticle filter
    plot-abcEstimation by approximate Bayesian computation (ABC)
    plot-abcListEstimation by approximate Bayesian computation (ABC)
    plot-bsmcd.pompThe Liu and West Bayesian particle filter
    plot-methodEstimation by approximate Bayesian computation (ABC)
    plot-methodThe Liu and West Bayesian particle filter
    plot-methodMaximum likelihood by iterated filtering
    plot-methodThe particle Markov chain Metropolis-Hastings algorithm
    plot-methodFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    plot-methodProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    plot-mifMaximum likelihood by iterated filtering
    plot-mifListMaximum likelihood by iterated filtering
    plot-pmcmcThe particle Markov chain Metropolis-Hastings algorithm
    plot-pmcmcListThe particle Markov chain Metropolis-Hastings algorithm
    plot-pompFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    plot-probe.matched.pompProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    plot-probed.pompProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    plot-spect.pompProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    pluginsPlug-ins for state-process models
    pmcmcThe particle Markov chain Metropolis-Hastings algorithm
    pmcmc-classThe particle Markov chain Metropolis-Hastings algorithm
    pmcmc-methodThe particle Markov chain Metropolis-Hastings algorithm
    pmcmc-methodsThe particle Markov chain Metropolis-Hastings algorithm
    pmcmc-pfilterd.pompThe particle Markov chain Metropolis-Hastings algorithm
    pmcmc-pmcmcThe particle Markov chain Metropolis-Hastings algorithm
    pmcmc-pompThe particle Markov chain Metropolis-Hastings algorithm
    pmcmcList-classThe particle Markov chain Metropolis-Hastings algorithm
    pompConstructor of the basic POMP object
    pomp constructorConstructor of the basic POMP object
    pomp low-level interfacepomp low-level interface
    pomp methodsFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    pomp packageInference for partially observed Markov processes
    POMP simulationSimulations of a partially-observed Markov process
    pomp-classConstructor of the basic POMP object
    pomp-methodConstructor of the basic POMP object
    pomp-methodsFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    pomp-pompConstructor of the basic POMP object
    pompExampleExamples of the construction of POMP models
    pompLoadpomp low-level interface
    pompLoad-methodpomp low-level interface
    pompLoad-pomppomp low-level interface
    pompUnloadpomp low-level interface
    pompUnload-methodpomp low-level interface
    pompUnload-pomppomp low-level interface
    Power spectrum computation and matchingPower spectrum computation and spectrum-matching for partially-observed Markov processes
    power spectrum computation and matchingPower spectrum computation and spectrum-matching for partially-observed Markov processes
    pred.meanParticle filter
    pred.mean-methodParticle filter
    pred.mean-pfilterd.pompParticle filter
    pred.varParticle filter
    pred.var-methodParticle filter
    pred.var-pfilterd.pompParticle filter
    print-methodFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    print-pompFunctions for manipulating, displaying, and extracting information from objects of the 'pomp' class
    probeProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    Probe functionsSome useful probes for partially-observed Markov processes
    probe functionsSome useful probes for partially-observed Markov processes
    probe-methodProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    probe-pompProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    probe-probed.pompProbe a partially-observed Markov process by computing summary statistics and the synthetic likelihood.
    probe.acfSome useful probes for partially-observed Markov processes
    probe.ccfSome useful probes for partially-observed Markov processes
    probe.marginalSome useful probes for partially-observed Markov processes
    + + + + + Added: www/vignettes/abc.rda =================================================================== --- www/vignettes/abc.rda (rev 0) +++ www/vignettes/abc.rda 2015-03-12 11:34:29 UTC (rev 1139) @@ -0,0 +1,4823 @@ +???y4?????6)?$)????$%EJHEQYJIJ!??????/cc7?}??5I?V??????>?{~?>????j??????????u8?i?(?6Y?????????????/?v6.?U,]}??R???????ll???gV?????P?S???o?A[??7v2(?%#???HW?e.??E???????(-K?$3\ +?????????V??0Bc??3??P)$???>?['K??4?#??????w?I? ??4a??9r?G???XO?X?~J????4E^?F?1?Z?x?x?e~?P??U( ?~?Zl-C?????? ???\i???????w?#?3@????s??#???kOV??SmY???!?'?=(?o???b??%???:?|?i?????Bc??????@???`???WP.j?&???????q?n*????Q?Z????&\?~?U^?????8H%???E????mt ??0?????%E?|???2???n6?qi?2t??}?ME?k?=wC??7?V??;:;???t???,9tZ?:?j3?z??Zl???'zr,???Dt????-??"S?????c?????/:???`?6?\??C{????,???5(??2??S??fE????????e??=??????????GQ?u???]? ?[h?r??=;CM ????????HKf?_ ?}? ????.???,{?>E??hy??BiI?1hsr???2s????'Z?^??v +M?o Ds???'???????C~?`q??????Z0os?w*U?5.!wVm??? ?? ???=D W???1m3||7??+????PW?????+j???l? + at c?????@??,^KS?!etv? +j??)??C???mu?E at 2k?mL?@??Q?/'??J???1?62?%t?#k?????$?????F#?"n???=3???6?C?:?B?6k??&v?Y Eu1??G?^%?k?m????????0n?W;? ?????D?????C? +?2?x3??????8?(?????H?.F\j?A??r?? 9?i?????????[U?IT???+Q?w????m???)V????{ ??D?U'???7??I?D?/??LA??????? ??x]d??g^?B??? +;s???E??~y3??[???fQ??????D???????Iy?<=ra??? ?%P?&??#??V??????'r?????Xte??|??????'? +(??H ?????????x??.R??^5?t???????"??>????hI^??-?n??!~@ +E?S??????A??}??????k_?r$?V!C?d??@?B-????:'j???;?????LUW8tU?F??I4_k???B?? ?[LW4?y/R??`????%?j??}?h=[.?:??C"?+?9A????X??S?? +{????c??J.G?????h??-v?????-k??.?]??s??s???J??wh???YL?g???+'?8???{a?>?c? +MF??~??Z?5=~ ????S?Q????????:}?k????^??_???\9??B???xb??.{F????m=??n??Y+y??cV;??????w? ]0S?? +;???m}?&[? ?+?D?c?}?3?@?v?H?6???~?p??gP?Ro? +X?hUXk?n +?'?_?????6:{9A??{?b?%??xw$??@???yS?TJ?V?? ???v???(?wx??g????????????{?w??uN?:???1??X?"[??m? ;??},??!?FT?y?????6??Z??<3?????D?????u`???2?&?f? [?O?)???1?@?>?j???83ia?-%E?? +@??1?zL?????+n????"2?-?"??3r??"%?zJ?t??*???U=?w9??0?_'???-???? ???ZF??(>???'J??B??q7E?d|^??????2%S?-??E?*;?%?F??'?O??8? ??_-*?*?????H2?:?"????/?]L5??{?

    +j7????B#?? %?c`X??5??h?/????/??X???????k???? +????HoC????[ +{????N{??_?????????/o????????Y??ym???????N???O?S???RC???B??o*?????p\???9:vz??&????/bl?:?v??4`?????????h?} +???vU???iK]??D?????U?hUw???z??S??v3?J=D??N?^??n?U????x?????(U??2???p??R|??]????A?[??|E8k?G#?W??m????-????e?0????????d??kj????K?0??2?p?!????Vm????R?6???o??g???;?8??]?? +?? ?\??,??? k???????07?Wj?????q??Y??L*?i?????g7 +??d!??o? ?R??3??2???_e?#??x?Yw??4??O?*5???]?RX??"?>?MW?????z????_?9???I?dv?-??????Z???????????s_????h(d??#+ at m?(Nl ?^iT??p??????$??f????:????QP6???7??r???rLw?h??~??G?0i?]u7N7 ?Uf??)???&>????D?@?????U??e??xT???? Gw\????M?[ +?????u!:????o?F???????N#J?VZ???)??A????SOv??$??4?F^+~??h?L?W+y4?????+???>??5??????????uR???????g=??????? ?q?]Vo??AWK ????????r?@??:h??n[J?s????n??7?????W??8???,t +?A??;$|u???_?????|? ??+????:?8???Q2W??RqB???{?+Q-????66?m?q?'(?BjpM???&ivwZm7?c????Qs????~??)?G?????l???h??????? +??M=Tx"??????Q}?? i: 5?????Eu??_m +??X?{m??J6??R?6????&??Qb???k??s_?lc?????Fdd??l?qC?B?????x??[??PO???(??Bi\???V[?????z?*????+=?l???@$4?s??EE#u??]???? +?#???????Qb)db?k?*?O?Z????=???Q??K??/P???u? +???X????b?ZO`?H?E??_??E???!%?kv??[b??????9?2ZM*\???????8?????b?????ol?Y>jn?.????K?/O????a????x??QT??z??k??7??????>?>c??\????'A?x?7??!jRc?"X?G??????2??s?T???????= mK??* ???????4??O=?C]??Q??q4*???z??F??? +P+?????B???o???"Xj`???e??i??O?:~? +Fm\?_???|?????r???7?PS???3?%??oM]?BC?????,?>?i3zL?5???)?e??????Ek??????y???@????%??)?C^??;??Y???;j??? ??%nsk?Py?Q???~??Z]V>j???*@mG%#?????i]?D?#\?! ??#z???&?5???TU??|??h?Y??b??J??}??Sc??4T$??q&#??????2dU,??. g?????>?+?P??????????0??\?j.??/?.??@????%u??r_??ANbS???7k??0?{?S?????#?&??7??????P},?_?q???{2??4?fE?0?d|?=9?#)??I)RA????F?\UXxy^??2?????+?sJ?;Q?pN??????}P????: ??????2 8??Z?m5??????h[q????c?3 ?L????Pc??;*?X????n=?~??mM?9V??c????Puc???32???n???????????C?OpRwj?????9?z,???u?????,o???yd???$j????k??"??6?? +$?????#P??c&??5?,??E ???[??Bi??\O?m?@???os?A???#???A~_`?????[?4??h??9??Z???~Jz?Pv?d???A10?c;???|??y??$?C??????????l?j?T??h8???????R?EP??>],??1g9????b?IF???4??|?z?????}+?A? +?,f ????ZN????_~4??5R'x???b???a? nY????SGW?CsS???s????w&G-I[?v???*???K??n[ ???)??y43????:????r?????}???mt?U?S%????????;???S????????6` A?y?X?A?j?m??a??????}?h@??CJu?E?P?S??;?1174? ???a??????????????^?v?????|\????C??ER?0Xnyq}?? =t?PL?`^L?X?C ?U??~???G??m^<?+R???,?=?|%?Lb???0?:5????87?g?`?%WgM8?}y?>B?0?3?^F|?A{??}a#??vM_GE??m???S??0?)S???9H?7????ug???????K#???+?k8P??????7?(?5z?z????U???\???tpQ?y1?k??hd%??l???W??T????W*?y}gE??#f?? ??|0????1?D?+??m5H~?Q{- +Q??J.G????G??????b\??vc[?(??S????t?-?/?&!?k????g??:?qIjQf?Y?O???????~v?@??j????????}??n7?C??????&hSl??< +?`??*?tt???j???riY????{?P??>?#i?h???]?? k???f[?L'? +??????tb:?z9???K?c??F5:M??W|}???+/>2f+??M?w??????/????@?]??vv0co?????Xg h???6??R??p??G0????_ +?v??9??hS???KW???-I?????7?$ ???bv???k*??8e???W?(????uS.?(??>E8R???SvB|Q?w>?s?-jT?????`y????????l?{?_??x?P???|?:????zfUuv?w????!?l?^}'??e?????.<*P??N??S{-?Vdj??D}?V??-?h?????z??)??k?????#4?w?`$:?;|?????U??^?q_?,y?|?.??)??}??4????*f??N????.??3^w?C??????????-AK??????+#??"?ES??f???h? k??????Q???!o?????I0Yd?o?? ,?T;Ki?>l???Zd{??? E?????Zd?[i?F??ST??7b^?Iz?[??H?'#??tMEoI+9O?'?? ??`???I?G?#???h????E??????sG????c?'?\G????J?;K??M????????_?????!?G?e5?u?{???s?R ?m=??_???? ?$4??z"????:?=A?a??8?????CL7AIX5nO*??_7??????j?M?+ O-"??z ?C??}P?G^gHv??q???|p?$?I??R at 8|??6P?2?#?????#R?P??i??'???7??G??{I?;????H??#??N???K??\?Dd?j?q8?????V??????Slr? ?J??????je?~??IzbS?;#????????)G?F 1????/>|^Ne?R???#?O/Ba? ?????{xN"J?????28]Q??:??5?R??h??MDR?W?t?0r>>_??-???Xg?"?/???? +?A:*?uR??cJ??N"?B????A????5k??????>?KA>?t!???/?^????o??d??~^????4?????? ?[B?{??=?n_Z?????O-?F????:b?ad_{?'?? ??7sX}???g??-3????X??????9???o????{????T?]{ ???P??`^?;??.?5p[?]??#? +??????O?Q??????O|-X????? +??V?y?b]{???yJg??;/????u? +?`????G?M?}??i4 +????? +?k'??G???P)??}z???^??,~;V?P?z?Ud????P??X???????? t??^t?Fg??????>? ?Vb???D?[j??%/???s???"???tQ??S???^md??P?z)???'_E?F`?????P??E??????*9????=??] +=?BRe^??4Q??oAso???L???i/?@?????C#A?T??m???~-K?h??G?? ?'4???1?(d?~c?ZC????????/???hp??p?????~??;O??k@??[??qM?=?UwA?? ??????????@??r???,????U??C?????>???D?L?~L??E)???6?!o??#y?'Qt??v??^???]*?@??S;?!?i??]?s?3q?VW???XuV?g!?}????,_????y\5+?#?& AH??*??? ?A??k? ???Fn?4?t??W??A?[?$9?v?'?+f9"??T?????\.\_wW?W(??#A?,!??q??l?P?????-7?F????4???(0?????????????v?? Rv?j???????(????>??)\?1???CA??r?*?5??R +?A??(??S???'B}?O???r??p????A???}?Y9{??%I???m +O]???95X?????k?f??`?uj??6*???e???h??U*?????~??k???#??????(|N~8a +>.w:Z?7G?? ? ???u?~?=???^-?z?a:?/$ ??a=?3??Ny7?2wi?p??X????qNT?91v ?rGA?|?????^U??M???R?d???9~?Ce??*~?t?m?????2??{???d_!?F0DN?e?$?:??{"?^??????|Dhf?H(2?#/? X?Y???)?(?:L.?w;?<)??Msw?9@?tI???:TU?8 +???J?c???0???? +z?????E?g??`???X???@?ka?n5Y?????X7"????+?MPB???5? +*???X?x?T?8z??$(???w??1?s???@]??}%?>?\???E?b|?xd??;????x?.??????(7PB?;4??%??????}?2?te????J?jM??????????0[^0?v?t???9???Y???w^??9P,'?Y ?????[???????:?o? o?DV??^????pj??????l?????cw?@??? ???jtx?? ????}??hX??E??y??4? 7DH???}0??? H??'?g%AI???v%H?w????05S??? +??/5?.??Lp?????Wi??Nha???|? +?K??{"A?m~p??G???(Se|_????$Ff?=H? +?/G at 6?1f?C??E????(z$qt?U?????????SH?D??`??? +?D?g???A???m?&? ????9????S?7/?E???`??P????G5???C at C?)?:,?+????V???$?M?l~jR}??-????9?h?+???B$a?#O)??^??????g?i?K???}??t?utH??F???????`;k????&???vY4?+??,,??)<*??c?j/P?{C?Q}72?9$ ?i"4?|?l' q?C?i g?{_??kD??????????t??w?O??l?Rw??2=v??ri?y??zP\????i?:??(;?????6?DV?pRB#@f1?M{?\uC?HJ???P???=2r3A:?????$?>s/??;e??j?.?????o?? IWJX+2???#?y(???'??lN?yH:?:+x??a??_.??V???T?S????;ul +???7>8? Y??5??g@ ??%G?CI.G?[?JTh?Y? ??`???V4 dvGC?T?????~UuD?g?>A3z??XQ??9?"bS??n?"j/?Li????'?9????|??,?u??? ????~??D??Cn??? :]=7????fK??P?? ?PC +U7?Ny+}?{?_?L???`?/??">???E????eW + '?b^vj9iOo??C?h????iD|+??[??8q?}>kQ?A%??? +q Bo^B?>??O??8??????{|???i}Z???j?6??jn??x??t??V9?*JQ?y??G??J?8??!??J??b5R&l?y??$??5?W?????[?????mx#? ???S??U?4G???Q?/??2 3 +??????7????????????hTI? ??=??U?a?o%?_s??1?r?l??)#?\?k??? q?!??i ?t?E???+?k? I +??????q'?W?Cd4)I??????k??????'???(???j ??G +?|?5?)?5? ???>?I??XD5Q?j}???\H]?oy??r??P?g??+:??Qh????G???693?F?Z?????f?,o6?4??j@????????C?????h??}O? ??G?8?????PD?a??????G?\P?9??Q??s/?Q?K???(7?#??? ????{??;Z2?V?_/???? ?????G@?r????????2????[????[??[j?^????*???A??????k~??J????????Z0+????5j???????6??Q???V??a??'?D?, +?$?]??? ???y&??D???r]J:?fg? Ys&??/????u???g}????h?/?l?VD????%aw4????4?u0???3?(?|h??????|?Oq?~????????og???g?/M?Qe?,q??*u= +????R???u??:E???(?????*}???E*??,=R????uL4?J??shZ???^?7??>??????WQ??B4??o-BC???*???????? b??=imP??x????Ih???C}h}??6??TW???(~?ZS?f?A3??v????=?@????Co*?;? +d?6?????????wS?9?????c~?yya ??j??~y??????x??1j?)??'4?ky?????g/W*?c?????C????U?h%?m???J_??[?5B??_??D?????kh?x16??????C?????-7????j?5????^??h?U3???N?k??tc?jKhb?.y????sy????????C{W?N8???s????6V??n???? f???XN?[?:???Y???x???C?x???P??Z +6????A?i?6?;????) ??%?6Y??$4~-?{?????/`?Kc??%1!??V??pp?u?d???'????m??+? ??OO?D????????$?x?????C??? O?6Y??m7D?G`g?6j?Tg ??*q???%?l??K e?? ?w?? ??7??s=?rQ???s?5?>??]??#?Q?vz??\j???m??8h??S??9???[`??w???A? C(?? ?Z????lK???v??H?H?k! ?? +py?ZM??ALg??b???}?e????j? ?h?HK???E???9??z?Ghw??Qrm?c??/???5 +???j????r49q}??g +???lq=?l?S??P{Esm???|O??}??o??? + +ms5BVmc?zj???.?? ?w?????4??Y?????&u???P? !???(JSj.?=??*??d?n?H??????}ym?Q?{I?? q????Q?|?N???u???? r,O???y;?o?F?????=iH??6&???????? ? ????*f2{?4???b]z +iT??9+?????Z?9?fC??!,l>;???S78n ?Wm*?!?}???wB?y?f?s??B!?sHl??|2?\???s +# ??"????????m???I??xM}?c7'??&??,)L???????P8?>U????????L0???6P/9&?X?6?w?;????'???? f?U ?A2??????F??T3???????????[@???P???? ??????/????$??|_D?c???.:R?f6[DW???A???#??_???w??? ,????u?J?E?jT?W?????F?@7E8???d??f?G_??Q?q?y????>?????a?????????1?O5.??A|?^?v????}??????*W0pP??-? ?7????x?~m????kx?????=Ov)???????A*???oo<E???O?j????k?G??W???b?|=js??\K???o??Zz?????=???zx??y??A_?v??v +?????}?????}????? ?9w?y]?!??V_\?}??w??g?x'??????U?~O?kv?+????1?.???m??~u?c?G????@?v????WQ?G?{Cz????<$?P???9??n??1C A?TcX??wh??????V??T??,?????d<-h?"?'?%??????)??$??I?x?5????????q??? +?i}]j!?S?E|?????5?????????/?o??Ok?E[????????O?_????W?UYoG?@?[??}43??j???? +}??~??<{o?? o??x??M?'???????;}??2?6??Ge????=N?;??c?O??????@l2??c?Am??????h?p ?[?:A-!??? +=Pd?Fl?E???? ??v/???m?M???@??|???7 ?N?????d??oP{?v?r?-???6h??x?y?S???4?????'??o?v?o???5??????a???#Uw??dJ?Y X????$?s P0"?7J????,????????d5??????[???? +? ????YS~J;8?&w???a??o???3w0??C??^?V/$???????y7^Z? +??e??????p???b?^??7?????/G?Sm?p4???!Y?9?M#?????Vq+?Z(Q?? +?~n?:J?% +???AM?7????Q????u???5???e}d???????? b????c@x{???.qd?v?|??i?~??????^??9 +???????L????P????*?E????P????a?I??]xQ(??y4?e??C?=?e??9??f?}???}? +}m?c?Q}???"S????e?7@????????????7???vx????u75?~Le2H~o?%???A?5~h??_?;???K???2o?W:?I?E?@???7?&?umd???{????Gg?B?? +?????????yLI?]???o?[?;}??????L????S?? +U?XB?N???h5~?8!??nM?(?=C|???^t?\yiw$4>?hf?0.??_??M????????5?=?U?/?8?|??????a??o?e??w&??F???G?o??,????j?u{?kF>??n???t@???????3??V????~Im&-??vr?VV?s=}???????Q?P?S?$? +U?a"?????Y?+GD +?????6nD?=?_?&Z??????yfJ6????b???t??S Q ??, ??.(H??*CL???GQ:q??RS?????F?R??5H$??zos??T8F +?0???b?????O?o????????~(=?y???:????????? ???BHs??L +?k???=????ja?M? Z1??x???s??}?|`??~?? +???9?P?'??u?7G{Z?f|Q,?sg?????????J?(???fP?? 2O?y#we?g??h?B???? ET]????-R??_?+TDQ?????3????1h?gT?s?$P??#)2?e?7??lC?!? ?Jd|PZ???"??????(??|?9?????Z??????p>Z=?????IGP?????? ?z?,????B{?4C???}???~{?^ B?h??.????9@:?0&!I????t???=???P"???z(y{L?i??PB{T????r????Q3}?i#???&lz?E?V?wQ????c??_???DgQ??p-???.U??8??????? ^???W??=??I???????05??q4?= ~?u???????~Q????B???E?Z{??8?H?O1??6[.???^???|4?? ?P???vh~??a?{??'Wd?qndqBI? +?N?q.? ??Z???+??C'JY????E?U???o???? 5] +?????]x????[???w?^s>???2H??{ww=A?????g? g?Fe?-cTL????9?x???U???-5?U|@??9~^z??4S^???????f??`c????%???j??G}????F?(?_>?v?kA/?))?Q????^?+??TS?????1}@?Y?`f???--??tQ???aODc?HN??|P?~}????????-u ??? ?(?ZsK???Y=JU??N??????0-K ?X?OS??O????(?Q?D??e Zo???|?(???,????9?4? ???????z??2????5??u?3<DuPVl?o]???m?_???d??7?????6X??o??gf???s??AQ]!- +?j?&??????3`c????Zq at G??m?atrl?f???????_??aV??g??5wh??/?L?9;_??????s?Uh?_|??0ms/???(hSKP???D??H??3?????????v??H??? +?l[{??%y_???r?c?~?&4?y???UM?/???CK@?5_?4?H &??Emni???*?????^?@??g??Q??S????*? +?}??-]??w +??o???1?? +4?9+????? ?v4?i9?X~!??w?+?m??ym`G?? +7??E =??,SCP??+??9???3T"*.Px??d!??=)?? + \Bk??H@????/??5?6Y?????N.>???????9?7?m?@??cK?C?!??@!?L]??.????L?#1??q?? +?????????G?W?##????gI?????!^AR??W9???py ?i@?r??A?|??7??PxH???^To??]Y? +???%?5(? ?'?@0b\????????n??NZh?K/?k??[ +?@&](B????p?:??p} +"??A?N +.P????A?Bvm +q2??[?????_2???? Mj~t?S???Y???7?t@???? ??]R_?L?U????????n?Q?G?;?:??/?=z???S?B?X?**?R?|?????cs& +???j??4???%??u@]%???p?_?&(~???}$??+??VT??U?n?D|????Vo,$?P????d?$??Z?k?Z???u"??[?BS>??|2?y +? .N[K?o??9!??\ +??a=????????|??ca??????"????p?7@?j??DGS#??~?]G?}2Y[0x9??????FBtcZ???????}7?Gu???S+1G??:/??o???tn)??????8^?P??)??? ?#?????@?9n?e-?yp??+??????$t??????@?? ?jit*???PN????uIv?%????$???C??V??R,,?????[R???????q???oOD??KK???J?hq?(@??????:???Pn*OA???MI4N?5wV ?????24yP L???F*?`H?w?{{?q?o????%OI,-??vJ????qt:??jMB????%7?????K?f???D?~????1C[x`~G?0H??E? +???)5?)~u?1?=])??_0?o?e'???"B?P????wk!X0(??|??h???C +?qj???????-hj????????ZF??A?m_?ZnN?????3Fh}?????Zs'?q??@?????@E??W???{jRM'????l?k??? +??RQ??M>??%H???3???x&??sq?????A????????J????????\?3??60|???q2???(7??????????uhr?? ?| 5???U2?P{5aE?? ?????????w???SP?Tm??l?n?????t??/L????H???Fd?*6?????m???????"?d? +??????H% t?~?J0Rj-h???-???n?????Q??n?5'?'5?v??/~?*D?{|@? ++?????? E???w?_??na?J??? p??????u?S???.ny?,??? +s-F?o??-?N??< z???Y?N???,????[?P4 ?o??n????}???h?c??^????-??z??AC? +??u?_????? +(?k?d??v? ???oys????=?j?el?????i?V??!??)???$??? ?mAa????4U?y???????????=(?6=0?????}??gP????w?,h????[X?y?8Z?-?%?d$?g?a?????#?i?xy&??U???<:.?a??Dw?c??U??????TGW??mc?tl?b&? ??v?9??_ +??"]??j?9??R^;????o????????nuB?R?m???Gf?,~?????FM????w?Lp=??? +cz????J?= +]5?aF????Qb?d???]w??o??_g????vm???op??m?O??f={3?A?n??  ??????'>'??z?????^?CD?????a??u??$?s.???]??????????G81????g?????vw??Y??|?p??}??;? }JF???6bP??Ro???Y?.??j?t???J?1?&???h.?\?\"i?_T??L??k?????/r???8???<0p??#?????????>!?W??Jt?[)?f?????I????4t?h??7&D??.z??~?????o???!B?pZ? 3???s?`4 +?,VmM`?????:??Y???RB??/?7?>????M?Q?0i?&???X???@???w??????bFqo'?d ? +?]?&???!?????{??Sh?|??"~???d?????????C??????????K?????c??BCV!?7?1t|\?????l???????s?!?~rK????C?k)??,>]????f=?K?K9???)A?;?*/z??C????0???}^?C???Gs1?;c???X???G??Q???% Y???e??o?+?P?1x????/?????.?`p????+????m2??????v????M??E'1@]?0????c????J????/??N???@?m??????M4D??????????:???j??????`j&?z?????K?W?h???:?????A?????et?)????]???J/?c?_Os??}G? +?iI>(?6????x?R?r?? +??u? ??\?s??-w}}b????????k??1? ,p??q??9~t???=?]n????1?/?/?1.Fc??????@f?%tU??j?g??#?x?&?W?$?????%?;?? _?C?3??='"?????? icU{???[r???G???g?^???_???PF?r? +???vt0?x*??z-???s??f0?gri?`. ?x???????5 =??)? ?????N???[z???2$?npKX??ch?G?Zg??:E?e??c?s????/?|?\?1?Jo*5?}????????o??"=???$}?W??A?UW?? +??jv ???i? ??,????8"? +y???EG??5? ? +A0)R????OVk?????????R??[:?9?:?j???(???????q?a?l???????Hirq?u???G???????????n?EP??W?X????m???>?2??^??????4???I?^#????]??}??OW/??4Cu?f????<'?O???b?!???;P????iUJJ??/}?G????Y???~K?_?!?_u)_??v????A?X??-?j??%F?>c??RS??g??q?????+k ?l??k1???|??{ ????&???6?0iP|Nn???1C???tG?fH??A?='? ???Z?M9 +y?Vh1??q=?zb?]??U??u???>????P?? ?;??????[/J?l?[??6(?r???K'nk?A ?.y???2???? +?E???^???H??r????_?=>?i;??????????,????_q?[jxg?{?#?fw??AST\??ZD~???#Y???+???-???{wke?|?'r?t(v??????v??I??<(Y????oANH"G??9B?`????$?<|OB?I???Y??A?{T????%????p1?b?77??,GBS??} +??h??9?XEE-??e?L??:eKU??>???uWI ???H??????T>?'????? +???? ? +??-??m?A?????e??z??!Vn?F +|>???a??{???U?[)T???????j?h???JP/?y??"J??Q?hP?? ?N?t?9p?*'????{??E?[??T? +,F??N}D??? ?w??x??|\??????#??????j$?Q?HL?? s?c??*????m?C?Qn???7????7??w.4???F??? +s?I? ?V????x?g??\????????????1B??;??[??#?jzC?D ?>?.???????$?5_????Pv ?]{?.????k+C?}?[? ?(??w??B???.e?s??"??-????&>r P?????"?Ou?(????y??nJu??g??b7???B?},7]D????]rxNV?????B?????T??W????j????T?z????V????8S?i?mh? /m??C?C??.'P?5?wN??? +B?&4?????F??????\K?e?\G?Etu??3???#hOD??L(m]G??34G?(kw??B$I????????????Z:?C{?e??1?h#je?f?B]??;?~?/0?9?l??-xx??h??????M?O ?X-??O?k????f?7&?{_O???z?~q??????3u?n7????/?Z?YD?~?? 6??Z??hH]?" ????{Uh?t$r? + ???V?t?p?|?|????*?m???s?7?fqU????0,??uV?s????D??j??{V~?W}nm??44oc????????OV?<?F?{?-???T=*??Hr?5???+46???????*? +??????(h??s`? +???-E?j?nmiwP?-?bP?{o?#4?????? +j]???MOQ[?Q?????????Qd?A????"??????1&7?????k?}[?n?s??S?+xPP?8w?1$???CV??o?"???????H????#??|s???#?????mg?V?}?wU?\?;?DXs?~/???53?7????I???< 5???;?s???x???(??Q?n?;r??VY?%#??6y???x[??lY? ??~??E????8?G??_o??F??ZL7df#?? {??0??/?[{6rv????@?S???/R????z?A(?/o?d???1???U(??5` ?????????&?l????"???4??t?+? +????????u^????@?Pv?C?= y/m?l ?????W3??|?Y=q????9q??;?n?@}-e???Z?????{??,??b??????y?}#?qz??L?E +s}?A?h'????J?a??oPQ?R8[??>?r??A82~???;*Y-?R????~????yL?=?_??u?\+*PvIl??e ?1a??Q????? +??&?nEQ??*???????By?? ?[(?m?{'?????????Q??,?}g ?????????;G+~???n?4???O?????"#-F????P?????<I?? +G???[?L +??|6???ejo?????`??P???A/v?5????8??*????@W.?bx?]3?????ho/vj???????- p??x??O-;t9pE ?{????$tOu[??G??????6??qc?(??|??CS???X?)?>]???b???1??E??? ?G?????[hv[Qu?? +?%????F??E??n9?Mm??:???????1\????h?? b??????q>??{?.j?G????G?3Pk?~???u(_I?IecC?? +?Dg?)???=,P???;:??N?????D???9K?^??9?t????T???Q?Zz?l?#T?6{?w ?{TE}?Ql~hg??1??+8S?? ?'r?e?e?n?????U??=??????C=`j +???8??{viEc???.?????v??????s(y ? ?NIB?uP??? ++|%? +?~?e????hi????????#??*A?r? ?lh????~??????C?'?_%f???????I4z?X4?C9???N????[?@???U???????xr at P~??u????TPP?p@? +??d[5W?xY?????RN?H sx??Ug??????4?f???????H?~???W?5??l?EP??&?cAC???gWw?????sF\ :?_?JvQ??=i?5T(%H&g??Z??K?f5??7?9????-@ AMK????I?rL??????V?$<qU?m?+?Mn?????'????DQA?L??nT:1????G)=?????????O???.?c > +a??(?f&n?/??;????DT???Y?7 +????rn?\?,?X$?)???O~-{?????g?q???(QU????{n? +D???vU +@?>??=bJ???G??^???s6??.?&????Y????ml?F?????i???|9??u???????p??p???(Z??z??$??dD???A????UZgQ??{?4?b +?t_??P??????-??u??m???N??}?????`??P???T???,?DQ$C??)4H??@D??I"? +i??Y* [TRUNCATED] To get the complete diff run: svnlook diff /svnroot/pomp -r 1139 From noreply at r-forge.r-project.org Fri Mar 13 19:42:28 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Fri, 13 Mar 2015 19:42:28 +0100 (CET) Subject: [Pomp-commits] r1140 - www/vignettes Message-ID: <20150313184228.7BE9C1874E9@r-forge.r-project.org> Author: kingaa Date: 2015-03-13 19:42:28 +0100 (Fri, 13 Mar 2015) New Revision: 1140 Modified: www/vignettes/pompjss.Rnw Log: - fixed a typo Modified: www/vignettes/pompjss.Rnw =================================================================== --- www/vignettes/pompjss.Rnw 2015-03-12 11:34:29 UTC (rev 1139) +++ www/vignettes/pompjss.Rnw 2015-03-13 18:42:28 UTC (rev 1140) @@ -281,7 +281,7 @@ The POMP structure implies that this joint density is determined by the initial density, $f_{X_{0}}(x_{0};\theta)$, together with the conditional transition probability density, $f_{X_{n}|X_{n-1}}(x_{n}\given x_{n-1}\giventh\theta)$, and the measurement density, $f_{Y_{n}|X_{n}}(y_{n}\given x_{n}\giventh\theta)$, for $1\leq n\leq N$. In particular, we have \begin{equation}\label{eq:joint-dens} - f_{X_{0:N},Y_{1:N}}(x_{0:n},y_{1:n};\theta) = f_{X_0}(x_0;\theta)\,\prod_{n=1}^N\!f_{X_n | X_{n-1}}(x_n|x_{n-1};\theta)\,f_{Y_n|X_n}(y_n|x_n;\theta). + f_{X_{0:N},Y_{1:N}}(x_{0:N},y_{1:N};\theta) = f_{X_0}(x_0;\theta)\,\prod_{n=1}^N\!f_{X_n | X_{n-1}}(x_n|x_{n-1};\theta)\,f_{Y_n|X_n}(y_n|x_n;\theta). \end{equation} Note that this formalism allows the transition density, $f_{X_{n}|X_{n-1}}$, and measurement density, $f_{Y_{n}|X_{n}}$, to depend explicitly on $n$. From noreply at r-forge.r-project.org Fri Mar 13 19:43:51 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Fri, 13 Mar 2015 19:43:51 +0100 (CET) Subject: [Pomp-commits] r1141 - pkg/pomp pkg/pomp/R pkg/pomp/inst/include pkg/pomp/src www/vignettes Message-ID: <20150313184351.ABAB11874E9@r-forge.r-project.org> Author: kingaa Date: 2015-03-13 19:43:50 +0100 (Fri, 13 Mar 2015) New Revision: 1141 Modified: pkg/pomp/DESCRIPTION pkg/pomp/R/pomp.R pkg/pomp/inst/include/pomp.h pkg/pomp/src/pomp.h www/vignettes/pomp.pdf www/vignettes/pompjss.pdf Log: - improve warnings in 'pomp' when covariate table is supplied but not used - make 'reulermultinom' and 'deulermultinom' R_INLINE Modified: pkg/pomp/DESCRIPTION =================================================================== --- pkg/pomp/DESCRIPTION 2015-03-13 18:42:28 UTC (rev 1140) +++ pkg/pomp/DESCRIPTION 2015-03-13 18:43:50 UTC (rev 1141) @@ -1,8 +1,8 @@ Package: pomp Type: Package Title: Statistical Inference for Partially Observed Markov Processes -Version: 0.62-8 -Date: 2015-03-06 +Version: 0.62-9 +Date: 2015-03-14 Authors at R: c(person(given=c("Aaron","A."),family="King", role=c("aut","cre"),email="kingaa at umich.edu"), person(given=c("Edward","L."),family="Ionides",role=c("aut")), Modified: pkg/pomp/R/pomp.R =================================================================== --- pkg/pomp/R/pomp.R 2015-03-13 18:42:28 UTC (rev 1140) +++ pkg/pomp/R/pomp.R 2015-03-13 18:43:50 UTC (rev 1141) @@ -335,21 +335,24 @@ ) warning("a covariate table has been given, yet the ", sQuote("skeleton")," function does not have ", - sQuote("covars")," as a formal argument",call.=FALSE) + sQuote("covars")," as a formal argument: see ", + sQuote("?pomp"),call.=FALSE) if ( (rmeasure at mode==pompfunmode$Rfun) &&!("covars"%in%names(formals(rmeasure at R.fun))) ) warning("a covariate table has been given, yet the ", sQuote("rmeasure")," function does not have ", - sQuote("covars")," as a formal argument",call.=FALSE) + sQuote("covars")," as a formal argument: see ", + sQuote("?pomp"),call.=FALSE) if ( (dmeasure at mode==pompfunmode$Rfun) &&!("covars"%in%names(formals(dmeasure at R.fun))) ) warning("a covariate table has been given, yet the ", sQuote("dmeasure")," function does not have ", - sQuote("covars")," as a formal argument",call.=FALSE) + sQuote("covars")," as a formal argument: see ", + sQuote("?pomp"),call.=FALSE) } if ((length(tcovar)>0)&&((min(tcovar)>t0)||(max(tcovar)> +<< /Type /ObjStm /Length 4535 /Filter /FlateDecode /N 99 /First 841 >> stream -x??\ks?6??~?m\)???J??ql+????[?[c??f3?Q??u???i??? G%?|o??%$?h4???UQ?p?0?R??Ep?p?T???Z?"?h_?B?` Y28????*?T????J[?????,?-???? -+\}?+ ???J?B?Bk?????D??^??p???0*?n -?5???j? b2?X(_8KL??K?4^9?\??I- "uVe@\?Txn0D??Q?HGgLA#?W ?rF.+ela0??Ue= -f???F!xU??Dk !)??*5?????;?,?i@"??%1FH????NI??:???4??? ???Z*?u?r?%?Wx???PA2(? -M??$#I?a:??Pe1=?hi?9R??-P????????I1??????zo _Q!jH????????(;???6 -nJ???wT??)NG4eg!7O?? y? -???.F?8? -~???????N??up?LL??H?H??=??Q?-????W???C;|???_??U???q?????ptqV?????)n???\?????du\??g?_??f???x>?X??,?/'??|z3)??4j h???z ?????????D??;a?h?W<???L??????M? "????~#h-I????zMW? ?@=F??f0 ??\?????????????l6??= ?55z?g?{>??| -??I?{?? ???r?IX?;??J??????0[B?????:?fJ??)?e????V?kx?????g???????dse??bW??]6f?|?\?=1e?L???a6x?w6w?v??-?????1?4???f ??????????Hdw`k?g}?,Q??(???O??qTiR?U?u???v??q#\G?+?{?K -w-?V??????-G4????}? !??????4????? ??+8J???h???+?B?yQ,???i???ye??S????????}0>??Z??f??}?BLx2??R??y$????h^??0?L"4?0?{??T?#f?C6?????O?g?WI.?~~???/?)??r?lu?o??Z??J?*???Mw?Z??NvZ??nP R?o???o??g???????y?N?m;z???????[_'?:JM\?X?O?????9$ -?N<?#?X<?????x)^??Z?#?F?*??wb$>?cq'????$>???s->???8g]??S1???????8S1?i-.????????y?sQ??????s5[??i*??s???3?.?_?R,??u-??????,?%??????????^ -@???S?-?NF???Iz?0?}?s?)y?$??????IMy@???F?????|9???LO?T???b?J??S-?????ZH???{???g??={???'[=???? ?&l?Ma?p?:3&}5i%-%??????3Y???_j?S4??D%[sn ???F?k?=??Y?rc??????l?5@?? ?????????M6???;\7e?c? -]il??M??????W?????? x?;!?)??O?????_6??????????-?&?/&????8G?^&??r6?m?9?M&?y?;?? ?^O????h"?/???y?& -*?R???????i:.]?N$?.J? rp2H?|???5t???????y?kp?b????~??x6??B;.A;?u?i?k??m??D)????p'??p?d??}xr???N???s????\?Hm]'7????t?_???IM?g?f7???"?B?0?d?v???~r????p?{??????n?? %m?????Z?P ?i?#-|????y>?"????9????j???Q???{???|r,? ?v????????B?R???*??>???}-]?R???????Q???v?@?(??/GCI???-8?~?au??+?+?0Bm?^?r}???e?=??V???????B{(?~?+??{?J??"e?0?m? ????6??$??E?(?^y?;??Bl?B?'iJG?Xv?k?%? 1????O??.?Rib??/"b%Q)?dc(bBZX+??>?2;d?t?l?+?"`??"d'I??L?_? -;t???w? -zd1s2??K: -m+?H?W?|?+%UY? ?T`~??.???M?e???/X?@T 4????? ??t,??C?{?Ar???K?EO?`??!??(????V???????C?V??~??>D?0:g?????O&iO??????c?TI??????????oy? ->`? ??????(?FN9W[}:??y??"-?s^??W??\?????>D#???????2n??P]?^?K?????A????????????m1:??kT|????CH?????5?e??U} [6x????????????*??x?Z???^r? -?r???o?s?#?o???z}???"/?????}S?TB[ ?kT???F?&???3R?B??????Pl????~?)??? i??g -O??%4?Fg?}?@???)cI?????{X??RP?d????*????????????}?A?nt?O$?k&)?'qM??P?E??DN??????????? Or????:?;????b^???e??- &[????G??<]?h? +???$$%]?T??+??4t???< +(Cd??$??XPV4( P?????X?!P]XK +V???1?5|?$`|?|????SS???|?????????y4???f?*?? ??L?2W?xf????|?Z>:>z>2=f.?UD?\d??????ez??? +G??,?cE???sL??,:??B???9??v?;??tYO!??=`??x?p??????z??H?????a?????2I??????%H??I??q???8>???*^?~ +-?_? ??]?m?????x?nd/GhG6o???^?|M???AkI??t(5?k??L??1?}5?axe????_???^??????(?$z>[j?,|???,|v$ ??J?{RB?]%0??L ?y???h??B??~fO???;??f?L??0??L??0??p +O]>????>?????l?[????????????S????*f?ggwgog?????7Os?k???Jl??8?l??? ?????4?'1wM%|?????????j??????&8x?(??????????K??-??^??????????b>?g}?,qz/Q~8?? ?????? R=:9Dg?#u.??????:*??;_j???y???L\?O?h9"??-??R?=?C#??,[N?n&???(???? r??? +??E??????z?????N#??/????????jq8;?????iVx +9??xzJYr???Gg?y?2??R2??????.R???????G~7>Y??X%?????Z??tNI?s?g??+~??5U?U9?tl????????U?J?? S??$???4G`}? ?l@?9v?S???????o? ??G?<=??{k???PGC???????Bs?C?????P<???L?(?????8???8o????x'F??8???l????#q"j???O???>??\@??3q???Y=c?O????I?X?s131???B\??L?O???':?|<;??W?e???V?; ?????b?E,??l^?b???X???_???K?[??????$M?>????dtJE?d??3?G:??RTN??=?~:??T??X?`t^_?H?????????J?/p?d??0???>Ku???t?K?g??a=?????]u]?pa???H??????1??IoQ?R?l??~?;? qh????Dc? ?/?AT?u??A?mi&????Cl?n7??H9`?&?????]??????%q???[$?)??bxU:e??*?Lwhc??"?_^?}??1???x??????X??????}2?F3?eW*R??QM +?B??]?*?P%m??{?q?????7?s33? +Stfd???.?x??(?m??e?????????vc?%???0-?4?Dx?wrq???^??????? ?b1????/??Y?)??h.?????O?d?L1Z!?%?????.?j???C?z+i?f+9i?2??????}?2?0???????a?? +G??????? ??`hjwU????6:ma???[??i???7{6?>??-???JCG?tr????????A??u?v????*}??m?nb???E????x?p??`??~??????O?d??`)V?? s?????e???L??8?????????{?????%o?{T??z??\:??????d?=?z?j?ns?\:m- ?'?7??tG????????Q?O?U?\o???m???`?UCuv??????m??5|??????????K{?.???b??_?k????oR?????????)??????????7yMhu??uLLQ?????}sB???$?1E?"????>??Hq? I????C?q??????3?AN?]4>?T#??????HP?LR?O?????&??????*??1~'{??c???A???3?= +?p,E?{??7???"?{??z{?> @@ -44,12 +46,12 @@ - -2015-03-12T07:02:56-04:00 -2015-03-12T07:02:56-04:00 + +2015-03-13T14:35:18-04:00 +2015-03-13T14:35:18-04:00 Raph Levien - -Inconsolata + +Inconsolata @@ -539,15 +541,14 @@ 1010 0 obj << /Filter /FlateDecode /Length 1358 >> stream -x??W[o?6??_???C?????a?: ?\?M??4F???VU??????9?? -ypxxx.????D???>?vs}???Qo?????!n7>?6?ao=??F8?h??6?( h?`?? ??,???z?%??????mHS?N?_?l???????\?)????AHs??l??????'.?z5??F$C%8d4??B????I??2j??8G:?b.a>GS??h??C $????Z?? ???J?T?9"Q?j???JpN?1?{?M?M]?f??e?uw'???>??;??bY?25o????[??z?A?0??[4???Is$? ? =??U?Z ?????7????????!?t-??n?V ?"  -?v??Y??o?&z???? ???bZ.?QF?Z??7???c??~?????7?6P?I -Gj??`?????8-?$-p?1?????\_[?cnC?4???p 6?Q??GQ 6_??gp%?8??$?8M???^ ]??7?B?c?&?????0??^?g?D??)??\? -?????OdH??[??????6???v2????????`!-??JB|C??gmD??FKQ?R?????Q+???[?o?/???^P?^t?sx?S????[???c??????B4???????? ??=N[?kdo?j?c?a?[???Qox?/????r??`J?#o?????F ???e???d???n??(?Aendstream +x??W[o?6??_???C??u?a?: ?\?M??4F???VU??????9?? +ypxxx.????D???>?vs}???Qo?????!n7>?6?ao=X@#??4 ?w?4f8?H?d9?y????vK"E??'~??&v??_?l???????\$ ???4/??f8#?? +W?=?g.???j F?H2?b8?4??B?f8OX?3??>?~?18G:?b.a>G?C ????&$????Z?? ???J?T?9"Q?j???b8??????????x3????uw'???>??;??bY?25o????[??z?A?0??Y4???I2$?KNs?0?V?Jh-?z??j?l?k?c[?z? ?k??ug????,?????>???-?D?????"-??? a????}CJ?????7;???~?n%??p?V_??|vBS'E???4?#poL?????;V?6?K??; +?p`? ?J~????`??|yW?G?Y0Fq????^ ]??7?B?c?0Lm??V?? +s/??m?]??mH.?l?d?'? +?O?-z????CY?s;??g?p?x[????jx%!??y????6??W?%??@?P??u???????-?7??H|/(q/:??9????02?{s???vL??C??Q???W3v?T? $?B??????F?F?9??3vU?n{??Z?q?i?EZL?TEG?????M9jL'U;?r?e???,`??/????8d?@qWW??kb??D????8?9????,???J??? :??.+?,guk +2z](?^7uw??t? ??????O??rzSd?L+!?:y?i?^?v??S?9???? ??y\?AC??3z?Uy??;J(}????|????V?,?? h?6????L$?|?W ?o????Z??Huw'?/????o?G?4??@?`F???????y?? ?JigP?? +(=????S#T{j?????R6s?1*u??:Am?fJ???g???~)??s???Z?v?Q[S??>)^?3?????????^?????i<2??f??????%?'ad?,??sRK?$?/?c??&-?u?3???????????i??Ec???L?????-???W???!???_?-u[?WF??.[mZn???3??'w9M?n?\/5o?)h?)?_??k???,&?d????KBY?,?^/?_???&\%?u?? >?[???Qox?/????r??`J?#o?????F D???????d???n??V?Bendstream endobj 1011 0 obj << /Filter /FlateDecode /Subtype /Type1C /Length 6295 >> @@ -2621,13 +2622,15 @@ .? ????:??>??xN2!?U?????)??haO?????><{?^?Z?3???LL???W??we[e(p?\V??'R??sU?S??a??2???}a??OF??I]?|??????F)( s??X??L??f_:}???z?iC??k??S?!7t-?>????/????Jh0?????)??????T??endstream endobj 1091 0 obj -<< /Type /XRef /Length 452 /Filter /FlateDecode /DecodeParms << /Columns 5 /Predictor 12 >> /W [ 1 3 1 ] /Info 3 0 R /Root 2 0 R /Size 1092 /ID [<9ac61c30643187d546d94d7bbb69bdf9>] >> +<< /Type /XRef /Length 454 /Filter /FlateDecode /DecodeParms << /Columns 5 /Predictor 12 >> /W [ 1 3 1 ] /Info 3 0 R /Root 2 0 R /Size 1092 /ID [<75a3a5e54542f2f6e35f31314f003565><0bdc932c417f276c8161780ab157fd67>] >> stream -x???AHq?gFwsfW?]JH???? yH??H?AA?B????*??? -?d?B%B?? ??Mu???:?`?T?6??C???>o????g>???/?=/??@ -?ht?=/?Q???#?????2?????B???6??????????M????????z?d^]z??W??????W???U??yet???3??M?yet???k??E??2???VM^=}n^??????q???O???bX????????? ??51????i???W?Q???_???c???????????V1?????a?fXL?O4???=??SdI??????o?????? +N??#V(O???=2?!(?U???3_`[? +?l{)??K?N??6???*~????s?;?,0?????e?=??0??:?????t??7??????x_o$97!O)?A???I{?? d! endstream endobj startxref -278357 +278356 %%EOF Modified: www/vignettes/pompjss.pdf =================================================================== --- www/vignettes/pompjss.pdf 2015-03-13 18:42:28 UTC (rev 1140) +++ www/vignettes/pompjss.pdf 2015-03-13 18:43:50 UTC (rev 1141) @@ -165,7 +165,7 @@ >> stream x??Z[w??~???#?#"X`q???&??(Mm????HB+`????;????j???"??3;;?of??m??b??????m?"JLf???????UP$?~o7????ia????C???????{x???{??????,?????k~]???9S??'???t?w???????t?w??????i$ ]6?????????!?}P;?,???"???Se]??????????t?rlD?4K ?????>??al???B?.?G???????E+?"??? ????? ??d8???a/?QIA????????e?wk?L?w??????$??i????????"g?????Y?^??w???G?:I!?Q?P ??s?%x??Gr?m?o??tG?&L??o?v(?l$%??,??#7E)5?IPTF???K?`???s\??5?8Bp?j?F-????"??"???DSw?|?????Ni-????y??SRO??$7?|?s> zK6&?C`3?]??D5?q? 6?:v/J'(v~F??r; _?ec??Q???4?P???UM?\?oxo??????p????V>?3/|????)?v????523?!k?Cb???{?#??+_?s?5??0?????k?BqE ? -hx?;?> ?????M?5?? ?????M?5??> endobj 219 0 obj << -/Length 5024 +/Length 5021 /Filter /FlateDecode >> stream -x??\??7r?????/7[??? `??R???[??mU??K??\?.?%?Gr-?}?`?!??h_*q?V??`?????????G????r????:=M?'F?w#a?Zh7?LW;eF????T?&?+Q??Wc?T???_Y?;???oy?? ? -n&+?????>\I[??p????????Jv?z????~???s?3?\???>?J?t?J?????)??????+mGB?J?+?u???iGc|?m? ?Cw?i????|????L??y?%?k??,???y?U?3????p -??5W?\??-.?m?a??&-???t?J?ug???????V??????????h,Um???l?u?????Z???_)K-Zj?W???g0`i`?F??N?~??M?? 5???JD?"?>?? -????????G?B????K]=?LX?v?&?*??S???s?m>gm?| -??.U??O?=??????s#???k????k}5 l?.?X?F??c?_wz?'X??M?x?dm??, ?l -m?r!\?|UD???Q7??ni??S???!??$3m?q?? ????wkO%?5??KYS?r???0.W7?f?X??i????{?A? -???i?:4j?;?KG}Yx????,? ???*?Z???emm?????#??{? ?l????o?E M~???vT????~l?????a;u?j????%???Q?_?.2???2? -f????l?kT?3&2D??$??: ???}a???)QF &S?h???W?????^?j?H?+?!=?#T??????? -?f_?Z????;V? -E?0,????T?j??D?$-T??l?T?u?????L@?????^?|?2??????S???966???=?x?d -?O??7%ZnjT?=I??T???6?U??y8?eq??Z?6?rn???hR?????? ?? ??RY1Y??5?Lz?E??m?Oo??g\>%??m ???? -V???]? ????me?u?g?????6M?{?~QQZm-??H? 8? ?s?e?????_?K?a?N?d -?T&5??w`??O?t??K?????6??A?kw????Z@???4`k? -N?x8???6????4,??{?/?"IV?+Z??????`?G?????X>??_??7??????$a'z??~??a?_?F???r?a?n?o?{_??$C????? -??[??V??4 ???{??6N'{GK??8?'?j?{?G4?I??'X ?1??Nc??{X????> )S-t?????p???q??oW?9?X?/g}?j????i???w???Zi??)l??g?PBSr-Y?J -7?$?@L???,??h??f?xS? -?Y?u&N?lhkhW???g?w^???q\ -??aSn???????O ???}2????0?$?|7?? ^???i`Hj????????z??}???????-J?????n ?l?G???????,??????vl??[Lx???C#?.?g069?S??Et -???c??yU4??p????;??? -N??=~%O?A???~???(??? X????ch?625???[?t??o????B??$??D1?c6?Q?On? o=a??C:?N?N????? ????ro?$????c>?}%D??I-??F$.??@???{(Y?q?!??????.???????Zo???=??)????P??Fb?(?Q[ ??)>E ??e?U?Ml@;? ?@PTmB??z?lKd?-?>?b@???,yS Z --?_?Av???q$?=????Y????}???80?G????\?b???LD???? [?9?nD?=??????-??N`???%???}3E?y????E???_?k???>I0?t??A; -?^?B?1??@?}}?}?.???Z?'??)? -?z??}`??S?????dg??"m?Y{A??(??s"?U?*??u:c?E 0?l???\x??%?????xL?tzW ?????O?,G????;0>`?%@lw????_???8? -kG??-?????????? ????i/?)/A??DL???)?? W???ImW???"?d??y?4$,????H??A??????x????k?,?>?Y?v???7g??r???1\m:HH?Z??.?????1V??? ??@???nc?y?|??gGA??{*??ir\???X-??+<qO?.?!]?50?K ?t/a`??e?}?l/??|}?,??| T?/ck?w|I~v????'?s???]???y yB^?j???3G????s7?lu????#?????$?????=>?O -??i9?E??r -n?0??V??????)J/?"???"???4o.M???p>R??1?[??M????? ?5^???????????~}???5??1?/?????_D??$?????:??)???K?V?9?????k????a??$??O?T6?N????t??~???????=u??wL?Z??????Ul??0?????8????&?8MB????v?Z?!?e???m>??R3m^M?LJ??<???:????????:??e|?y*F??G9??}??y???????Z?? -??f???vOu??J0????????$mx -Kh4??@>x??K>??E??7?a,?s?|?Wi?F??/$>-r?=?I??Oj?a?M ???.d??????q)?`??Sw????;:}R???z???2???J??6? ??td???? -???(?????T??B??????????t at Q]???5Z=Hefx?Gd??e1?d?;???9A?p???g???!??e|J?N?p?a?[?F?o??,??5?)h?A??t????$;?T?Ab?Fc?R4??*U?D????8fU?Ca???????q???x???|8????^'??p????a??6??u?Z????4U?7????b>JSM???!??p???????m .5?J???u$? ?,Qi'?g?a??{?????p?d?T????I???i?? ??]5}?w?y?]??_? -??? ??$FbR?K?m??\N*???? ??Y?0????P??2??Eh?? e??$?B"9?????I?????~???????u????]?L\?A*???????????j{]I????w?aU?;???'~O'^????L??<_?D4??|???$?)0t???i?A?zGa?????L3V?--?Y, at 7?7??z?c??)5t??????/_????AS?? ??'U???Id3"??oo??F.???`9i}?~??}?zZ???^ ??n??e6"D??z H?>K? +x??\??7v?????/[????????J?6????????===3-?1??cI????EV?/y? +u??????Y??~???~?/?/>???#???qbt}7???v??t?Sft};?K?j???zu5VJU?j????C??V?/????f??J?????????lW/???py ??dWQ????[??7k?=?:???_?????I????0~??:/?????v$t?t+??X7M??v4???????8tg???#\??w?????TK?'\??f ??b??&8?[??{???7|?S?=nx?? +???????AM"???t?J?ug?????????????????h,Um???l?u?????Z???_)K-Zj?W???g0`i`?F??N?~??M?? 5???K??[O???{!???????|$*d??\???8e??zH???8?4?N????Y?????s?5T6?TM???|#zB?5T??m?F??qGh????j}5` ???X ?4M???9?V??????#?j?T0??q89i{}????f?????v??n???&5[????}i???9_?? +k +????n??r +J"?UT??_??UA??KD?`?d\?/q?]U?f?????s?i?? ?_p???$??????'?RP/Z?|?Y?????7I-??W????ma?`?R??1>?9?? ?Z?$??B2?4Q??o???B?[????(>? +#? ????\?j???+5??wu ?2?U?^? +???>?&???{?????????5H??Y?? $?3?zE6????h?????{j?:?>,?.?X?B^?cQ^?z?'????&E?m?6??m??b6??6?`??Z?*"mX?h????4`?9?u?iZ?????????H?s?????E?????t?h}_??e3:?nG?,???a?A|^?t?5????~^x????*? ???+."{????6??? ?F???????pa8Dz?B?7??U++s?? +??}Y6l?.????XB????4??!??"?Y?-3?`???h???F??c6!G?{!!H?-M????????h???-?LQ??>?^M??ozq????W|Cv?G?0???Y??4??&???wl??XaX?x?????D?$-T??8lD?2?@?"/?)? ?X???????&?i?L?????u????? >??;%S?|/?)?rS?`z?Y???j????2??H???WEZ7??m:??}??????-v\A#8y???9???=??Et\q??m???,???[!?]/?P?????4?H~?r?Hb??0???L!p?T??R]1???5`Lz?E??m?OoH?g\>???m`?$?? +V?s?C? ????}e?u?g??_?? +6M?G?>?*-??@[? + ?B?\ ???G?2??W??a???)?$U?I????&????/?P?%?B{??~???????=??Z@???4?k? +N?x8???6????4,??????$?D????v?4?/???/|??'[?????P\~?$?D????o?=???????Q?4 ?-?M}??0?d?SzwSV!??MV?4????c at Y? ???Y???P at v??H@M?B???M?i5?h]??kHm?:tHD{o8@????C??}v`??????%???q ?????3A?ts?nT?=??????/??v`?????7?{3E?YL6a????????7ad?$n?C?P%x??C??? ?s?}?=??t??A???T??8p?K?BN.? +mzx??a??S2?.?????L????l=???`~?D??WE???6g 3t`g%????4???????&??:???5?6?*as?'?$?/? ?????f??v?X???%??y?h???o? ??#;{~?)??b??n??D?????LD???(??H + )????6??^|??rI&???B???v??J$?$?`??????FA??{*???i?Yo??k?W???8m[?#??k?a/??{ D  +? ?????oP?q?????k????/)??N???????~? +????=?? ??i9?E??z +n????~???3: ??p???8)??1GK???d?|?? ?????????]S?????s??r8=?v1}?t??/ [S??O????~1??????????o???x`???c??J8g????{?T_?2?????????????|?v???tA??-???s??~??????????b?/?)?F????;n???4I??o???z?'?W????y;\?k??x5?3)M?0????X?K?}G????o|?}???x*???G' ??????6?n%????>???b ??=???&????`?%]?R??a@;*??.yC??~?z???isb??t?4?o^H"Z>??k??6???4?0??bm?]8??????? ?1????{??.?Kei +> ???=D??;?|????L???:-0????Cg?|?O~??t?T?-??T*????s^(????J@?????@????$,?x???-TX?S?S???J????6??????#:??[?K1?x? ????l=???n????=b??}???.???,???????w???~b???x???q?m??-????0??WmD&?6^??~????x5?~???Lme?r?Q? z?xU4??h?Oco???? +)??????; H???H????{r???dR??+VJ????0??t?>?}??????U???6b?$???bQ>F/?o??_5rw*A??J??_/??>O???N?hq^{:?e?AC???Nwx??_h????-??[f9?????(pT?lt?nrY???nze (??????S?D?8#???=????2>%V?]?q??-W??7^LVa??L +:!S~:e?A?e?m?y1&??b)M? ??kbl??~U?Ca8~???GY?"?%??????o?Q?y?B('??? +???n??)??? +??????????T??hfasc?s???T`?z?V?n?"W??????? ???5???j???t9??????e?< +#Ov}?C??u???MS??????u Author: kingaa Date: 2015-03-15 17:09:02 +0100 (Sun, 15 Mar 2015) New Revision: 1142 Modified: pkg/pomp/DESCRIPTION pkg/pomp/R/minim.R pkg/pomp/R/nlf.R pkg/pomp/R/spect-match.R pkg/pomp/inst/NEWS pkg/pomp/inst/NEWS.Rd pkg/pomp/tests/bbs-trajmatch.R pkg/pomp/tests/bbs-trajmatch.Rout.save pkg/pomp/tests/ou2-probe.R pkg/pomp/tests/ou2-probe.Rout.save www/content/NEWS.html www/vignettes/pomp.pdf Log: - nloptr and subplex are no longer Dependencies but are Imported instead Modified: pkg/pomp/DESCRIPTION =================================================================== --- pkg/pomp/DESCRIPTION 2015-03-13 18:43:50 UTC (rev 1141) +++ pkg/pomp/DESCRIPTION 2015-03-15 16:09:02 UTC (rev 1142) @@ -1,8 +1,8 @@ Package: pomp Type: Package Title: Statistical Inference for Partially Observed Markov Processes -Version: 0.62-9 -Date: 2015-03-14 +Version: 0.63-1 +Date: 2015-03-15 Authors at R: c(person(given=c("Aaron","A."),family="King", role=c("aut","cre"),email="kingaa at umich.edu"), person(given=c("Edward","L."),family="Ionides",role=c("aut")), @@ -18,8 +18,8 @@ ) URL: http://pomp.r-forge.r-project.org Description: Inference methods for partially observed Markov processes (AKA stochastic dynamical systems, state-space models). -Depends: R(>= 3.0.0), methods, subplex, nloptr -Imports: stats, graphics, mvtnorm, deSolve, coda +Depends: R(>= 3.0.0), methods +Imports: stats, graphics, mvtnorm, deSolve, coda, subplex, nloptr License: GPL(>= 2) LazyData: true MailingList: Subscribe to pomp-announce at r-forge.r-project.org for announcements by going to http://lists.r-forge.r-project.org/mailman/listinfo/pomp-announce. Modified: pkg/pomp/R/minim.R =================================================================== --- pkg/pomp/R/minim.R 2015-03-13 18:43:50 UTC (rev 1141) +++ pkg/pomp/R/minim.R 2015-03-15 16:09:02 UTC (rev 1142) @@ -34,11 +34,11 @@ opts <- list(...) if (method == 'subplex') { - opt <- subplex(par=guess,fn=objfun,control=opts) + opt <- subplex::subplex(par=guess,fn=objfun,control=opts) } else if (method=="sannbox") { opt <- sannbox(par=guess,fn=objfun,control=opts) } else if (method=="nloptr") { - opt <- nloptr(x0=guess,eval_f=objfun,opts=opts) + opt <- nloptr::nloptr(x0=guess,eval_f=objfun,opts=opts) } else { opt <- optim(par=guess,fn=objfun,method=method,control=opts) } Modified: pkg/pomp/R/nlf.R =================================================================== --- pkg/pomp/R/nlf.R 2015-03-13 18:43:50 UTC (rev 1141) +++ pkg/pomp/R/nlf.R 2015-03-15 16:09:02 UTC (rev 1142) @@ -115,26 +115,26 @@ opt <- list(params=params,value=val) } else { if (method == 'subplex') { - opt <- subplex( - par=guess, - fn=nlf.objfun, - object=object, - params=params, - par.index=par.index, - transform=transform, - times=times, - t0=t0, - lags=lags, - period=period, - tensor=tensor, - seed=seed, - transform.data=transform.data, - nrbf=nrbf, - verbose=verbose, - bootstrap=bootstrap, - bootsamp=bootsamp, - control=list(...) - ) + opt <- subplex::subplex( + par=guess, + fn=nlf.objfun, + object=object, + params=params, + par.index=par.index, + transform=transform, + times=times, + t0=t0, + lags=lags, + period=period, + tensor=tensor, + seed=seed, + transform.data=transform.data, + nrbf=nrbf, + verbose=verbose, + bootstrap=bootstrap, + bootsamp=bootsamp, + control=list(...) + ) } else { opt <- optim( par=guess, Modified: pkg/pomp/R/spect-match.R =================================================================== --- pkg/pomp/R/spect-match.R 2015-03-13 18:43:50 UTC (rev 1141) +++ pkg/pomp/R/spect-match.R 2015-03-15 16:09:02 UTC (rev 1142) @@ -174,23 +174,23 @@ msg <- "no optimization performed" } else { if (method == 'subplex') { - opt <- subplex( - par=guess, - fn=obj.fn, - est=par.index, - object=object, - params=params, - vars=vars, - ker=ker, - nsim=nsim, - seed=seed, - transform=transform, - detrend=detrend, - weights=weights, - data.spec=ds, - fail.value=fail.value, - control=list(...) - ) + opt <- subplex::subplex( + par=guess, + fn=obj.fn, + est=par.index, + object=object, + params=params, + vars=vars, + ker=ker, + nsim=nsim, + seed=seed, + transform=transform, + detrend=detrend, + weights=weights, + data.spec=ds, + fail.value=fail.value, + control=list(...) + ) } else { opt <- optim( par=guess, Modified: pkg/pomp/inst/NEWS =================================================================== --- pkg/pomp/inst/NEWS 2015-03-13 18:43:50 UTC (rev 1141) +++ pkg/pomp/inst/NEWS 2015-03-15 16:09:02 UTC (rev 1142) @@ -1,5 +1,11 @@ _N_e_w_s _f_o_r _p_a_c_k_a_g_e '_p_o_m_p' +_C_h_a_n_g_e_s _i_n '_p_o_m_p' _v_e_r_s_i_o_n _0._6_3-_1: + + ??? The optimization packages ???nloptr??? and ???subplex??? are no + longer dependencies of ???pomp??? that will be loaded at the time + ???pomp??? is. Instead, they are imported as needed. + _C_h_a_n_g_e_s _i_n '_p_o_m_p' _v_e_r_s_i_o_n _0._6_2-_2: ??? Bug fix in ???partrans??? when transformations are implemented Modified: pkg/pomp/inst/NEWS.Rd =================================================================== --- pkg/pomp/inst/NEWS.Rd 2015-03-13 18:43:50 UTC (rev 1141) +++ pkg/pomp/inst/NEWS.Rd 2015-03-15 16:09:02 UTC (rev 1142) @@ -1,5 +1,11 @@ \name{NEWS} \title{News for package `pomp'} +\section{Changes in \pkg{pomp} version 0.63-1}{ + \itemize{ + \item The optimization packages \pkg{nloptr} and \pkg{subplex} are no longer dependencies of \pkg{pomp} that will be loaded at the time \pkg{pomp} is. + Instead, they are imported as needed. + } +} \section{Changes in \pkg{pomp} version 0.62-2}{ \itemize{ \item Bug fix in \code{partrans} when transformations are implemented using \code{Csnippet}s. Modified: pkg/pomp/tests/bbs-trajmatch.R =================================================================== --- pkg/pomp/tests/bbs-trajmatch.R 2015-03-13 18:43:50 UTC (rev 1141) +++ pkg/pomp/tests/bbs-trajmatch.R 2015-03-15 16:09:02 UTC (rev 1142) @@ -19,6 +19,7 @@ tmf <- traj.match.objfun(bbs,params=guess,est=est,transform=TRUE,hmax=0.001) +require(subplex) fit <- subplex(fn=tmf,par=log(guess[est]),control=list(reltol=1e-7)) tm2 <- bbs coef(tm2) <- guess Modified: pkg/pomp/tests/bbs-trajmatch.Rout.save =================================================================== --- pkg/pomp/tests/bbs-trajmatch.Rout.save 2015-03-13 18:43:50 UTC (rev 1141) +++ pkg/pomp/tests/bbs-trajmatch.Rout.save 2015-03-15 16:09:02 UTC (rev 1142) @@ -1,6 +1,6 @@ -R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet" -Copyright (C) 2014 The R Foundation for Statistical Computing +R version 3.1.3 (2015-03-09) -- "Smooth Sidewalk" +Copyright (C) 2015 The R Foundation for Statistical Computing Platform: x86_64-unknown-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. @@ -16,8 +16,6 @@ Type 'q()' to quit R. > library(pomp) -Loading required package: subplex -Loading required package: nloptr > > pompExample(bbs) newly created object(s): @@ -54,6 +52,8 @@ > > tmf <- traj.match.objfun(bbs,params=guess,est=est,transform=TRUE,hmax=0.001) > +> require(subplex) +Loading required package: subplex > fit <- subplex(fn=tmf,par=log(guess[est]),control=list(reltol=1e-7)) > tm2 <- bbs > coef(tm2) <- guess @@ -80,4 +80,4 @@ > > proc.time() user system elapsed - 2.480 0.052 2.555 + 2.709 0.041 2.740 Modified: pkg/pomp/tests/ou2-probe.R =================================================================== --- pkg/pomp/tests/ou2-probe.R 2015-03-13 18:43:50 UTC (rev 1141) +++ pkg/pomp/tests/ou2-probe.R 2015-03-15 16:09:02 UTC (rev 1142) @@ -138,6 +138,8 @@ probes=good$probes,nsim=100, seed=349956868L ) + +require(nloptr) fit1 <- nloptr( coef(good,c("alpha.1","alpha.2")), ofun, Modified: pkg/pomp/tests/ou2-probe.Rout.save =================================================================== --- pkg/pomp/tests/ou2-probe.Rout.save 2015-03-13 18:43:50 UTC (rev 1141) +++ pkg/pomp/tests/ou2-probe.Rout.save 2015-03-15 16:09:02 UTC (rev 1142) @@ -1,6 +1,6 @@ -R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet" -Copyright (C) 2014 The R Foundation for Statistical Computing +R version 3.1.3 (2015-03-09) -- "Smooth Sidewalk" +Copyright (C) 2015 The R Foundation for Statistical Computing Platform: x86_64-unknown-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. @@ -16,8 +16,6 @@ Type 'q()' to quit R. > library(pomp) -Loading required package: subplex -Loading required package: nloptr > set.seed(1066L) > > pdf(file="ou2-probe.pdf") @@ -312,6 +310,9 @@ + probes=good$probes,nsim=100, + seed=349956868L + ) +> +> require(nloptr) +Loading required package: nloptr > fit1 <- nloptr( + coef(good,c("alpha.1","alpha.2")), + ofun, @@ -340,4 +341,4 @@ > > proc.time() user system elapsed - 7.892 0.092 8.187 + 9.307 0.094 9.395 Modified: www/content/NEWS.html =================================================================== --- www/content/NEWS.html 2015-03-13 18:43:50 UTC (rev 1141) +++ www/content/NEWS.html 2015-03-15 16:09:02 UTC (rev 1142) @@ -8,6 +8,17 @@

    News for package ‘pomp’

    +

    Changes in pomp version 0.63-1

    + + +
      +
    • The optimization packages nloptr and subplex are no longer dependencies of pomp that will be loaded at the time pomp is. +Instead, they are imported as needed. +

      +
    + + +

    Changes in pomp version 0.62-2

    Modified: www/vignettes/pomp.pdf =================================================================== --- www/vignettes/pomp.pdf 2015-03-13 18:43:50 UTC (rev 1141) +++ www/vignettes/pomp.pdf 2015-03-15 16:09:02 UTC (rev 1142) @@ -17,27 +17,38 @@ V???1?5|?$`|?|????SS???|?????????y4???f?*?? ??L?2W?xf????|?Z>:>z>2=f.?UD?\d??????ez??? -G??,?cE???sL??,:??B???9??v?;??tYO!??=`??x?p??????z??H?????a?????2I??????%H??I??q???8>???*^?~ --?_? ??]?m?????x?nd/GhG6o???^?|M???AkI??t(5?k??L??1?}5?axe????_???^??????(?$z>[j?,|???,|v$ ??J?{RB?]%0??L ?y???h??B??~fO???;??f?L??0??L??0??p -O]>????>?????l?[????????????S????*f?ggwgog?????7Os?k???Jl??8?l??? ?????4?'1wM%|?????????j??????&8x?(??????????K??-??^??????????b>?g}?,qz/Q~8?? ?????? R=:9Dg?#u.??????:*??;_j???y???L\?O?h9"??-??R?=?C#??,[N?n&???(???? r??? -??E??????z?????N#??/????????jq8;?????iVx -9??xzJYr???Gg?y?2??R2??????.R???????G~7>Y??X%?????Z??tNI?s?g??+~??5U?U9?tl????????U?J?? S??$???4G`}? ?l@?9v?S???????o? ??G?<=??{k???PGC???????Bs?C?????P<???L?(?????8???8o????x'F??8???l????#q"j???O???>??\@??3q???Y=c?O????I?X?s131???B\??L?O???':?|<;??W?e???V?; ?????b?E,??l^?b???X???_???K?[??????$M?>????dtJE?d??3?G:??RTN??=?~:??T??X?`t^_?H?????????J?/p?d??0???>Ku???t?K?g??a=?????]u]?pa???H??????1??IoQ?R?l??~?;? qh????Dc? ?/?AT?u??A?mi&????Cl?n7??H9`?&?????]??????%q???[$?)??bxU:e??*?Lwhc??"?_^?}??1???x??????X??????}2?F3?eW*R??QM -?B??]?*?P%m??{?q?????7?s33? -Stfd???.?x??(?m??e?????????vc?%???0-?4?Dx?wrq???^??????? ?b1????/??Y?)??h.?????O?d?L1Z!?%?????.?j???C?z+i?f+9i?2??????}?2?0???????a?? -G??????? ??`hjwU????6:ma???[??i???7{6?>??-???JCG?tr????????A??u?v????*}??m?nb???E????x?p??`??~??????O?d??`)V?? s?????e???L??8?????????{?????%o?{T??z??\:??????d?=?z?j?ns?\:m- ?'?7??tG????????Q?O?U?\o???m???`?UCuv??????m??5|??????????K{?.???b??_?k????oR?????????)??????????7yMhu??uLLQ?????}sB???$?1E?"????>??Hq? I????C?q??????3?AN?]4>?T#??????HP?LR?O?????&??????*??1~'{??c???A???3?= -?p,E?{??7???"?{??z{???*e???????v?????w?????e?y\Oq?????'_?g'???>{??xv6[,??????ee???x9?????t1???{-w??tIJ/?'????}i.6???!??0?|??1?3?c>:?k??I?????z?/?+??d?????e?+??5??h?GS?hU?U?o??e?23?6>6?6????Ty???xDK&x??y?<-sw?25??9??6????j?X3???L?#3?????i?L?jT#0V ??@%KF? ?X???[f??h??????{?'x??2???????`:?-????????F????????#[?1|?|t|?|dz?\d???]??????a???5_?k?'?l?)?U2????????~?%X??94n?????!0?1???3?q,9?????? +?_i*~Ob??J?*S?-?=??7???????i#:?Mp? Q<*???????)????;[./?.?????O??i???|???xY??^??p6?A2??Q%??ztr??8G?\jG??+?7"tT8"?w??'??h?q??x9???rD*??[?/?|{z?F??Y??T?L?_!P???G???_A???b9_?M??x?#?E?FG^b???%&xzt?????)???J????3:??H?d?????x$?'???Q</?+q ^?Cq$??_?[?N??Gq,?g????G?D?"????1?}??'??8g?????z*????1?z??b*fb6???? ??????5Ot.??xv"??f?:?M?|w.bQ????X???????_3??????????w=??K H??}????????6?.fg??t.??????{??ty?5?a}??????v???6 +w??sc?W???d?d????2w&???K}s??"A?_???d???????LgM???? ?n?y>9????2$?y>??4_?s?????{????w????+?m??.???QHp? +^? +?@??2?2h?$^0p? ??e??W???ONj4?-4????Yo?R ?>mH?BQ(% +???fu?*?????P???????????? ???u??f,/J?7a/%?U?&?9??s?MR?c?Xk?w???5*vu`??7M?T?n?3????8w??M?l?L?y?????)i?`?ue?xI?(???c?vpSwj???c?h???)?cC?v?T??V<%?,????v????????O???Vx +?w???????ZxW oj?=-???w???????Y$??R6{??S?^?*?{?cO?Z?w?e???????Q?],?/u???R?#??!??]???,??)[??42 +???3hu?X??(c(???? ??bX]F????@??6q?\?>WN?2?WZ???ZoKo}?=??j??????r??\?1i????S?f^K? +? +???"S?f?m?aZli???"??? ?o?5?o=A??b???>lxX?X?zX?w???`?_???????w?1???x>???V?_9? +?r??ao?}?3jo????z{????(??'?#???J ?I(\c?E?7?7?}?]????.-?W?r????{-)?gH? ?>?hxB?.a 7??F?,???zW? ????R?Eo??[e^'??>b??+ ?#A? ?n`?N??j? +W0?*???*????????TTe??????)??O?xiI?7???t???????]?Kb/g????i%????%??? +???i???IU@??V?S???????"v?"}|> @@ -46,12 +57,12 @@ - -2015-03-13T14:35:18-04:00 -2015-03-13T14:35:18-04:00 + +2015-03-15T12:02:59-04:00 +2015-03-15T12:02:59-04:00 Raph Levien - -Inconsolata + +Inconsolata @@ -541,14 +552,14 @@ 1010 0 obj << /Filter /FlateDecode /Length 1358 >> stream -x??W[o?6??_???C??u?a?: ?\?M??4F???VU??????9?? -ypxxx.????D???>?vs}???Qo?????!n7>?6?ao=X@#??4 ?w?4f8?H?d9?y????vK"E??'~??&v??_?l???????\$ ???4/??f8#?? -W?=?g.???j F?H2?b8?4??B?f8OX?3??>?~?18G:?b.a>G?C ????&$????Z?? ???J?T?9"Q?j???b8??????????x3????uw'???>??;??bY?25o????[??z?A?0??Y4???I2$?KNs?0?V?Jh-?z??j?l?k?c[?z? ?k??ug????,?????>???-?D?????"-??? a????}CJ?????7;???~?n%??p?V_??|vBS'E???4?#poL?????;V?6?K??; -?p`? ?J~????`??|yW?G?Y0Fq????^ ]??7?B?c?0Lm??V?? -s/??m?]??mH.?l?d?'? -?O?-z????CY?s;??g?p?x[????jx%!??y????6??W?%??@?P??u???????-?7??H|/(q/:??9????02?{s???vL??C??Q???W3v?T? $?B??????F?F?9??3vU?n{??Z?q?i?EZL?TEG?????M9jL'U;?r?e???,`??/????8d?@qWW??kb??D????8?9????,???J??? :??.+?,guk -2z](?^7uw??t? ??????O??rzSd?L+!?:y?i?^?v??S?9???? ??y\?AC??3z?Uy??;J(}????|????V?,?? h?6????L$?|?W ?o????Z??Huw'?/????o?G?4??@?`F???????y?? ?JigP?? -(=????S#T{j?????R6s?1*u??:Am?fJ???g???~)??s???Z?v?Q[S??>)^?3?????????^?????i<2??f??????%?'ad?,??sRK?$?/?c??&-?u?3???????????i??Ec???L?????-???W???!???_?-u[?WF??.[mZn???3??'w9M?n?\/5o?)h?)?_??k???,&?d????KBY?,?^/?_???&\%?u?? >?[???Qox?/????r??`J?#o?????F D???????d???n??V?Bendstream +x??W???6????[?"????K?M??H?????K?@)??*?D???u??CR??]5h?^????9sh +"L?????U???????7Qp?|?{?U??7I@#??????]%??g$`Y?i??v????GQ?x????6????W/??????_??4 ?Q?0?qL?"i?3????P??C??z??4;??^j?,(S?VS@?X!D???,&?d6O?A/ e?d??z?`?????a??????????B{0??{?Z?=?6????j?9X????CB)z?-?:endstream endobj 1011 0 obj << /Filter /FlateDecode /Subtype /Type1C /Length 6295 >> @@ -846,7 +857,7 @@ x??ZKs?6????B???1@`??0??!??lW?a???,&???8?????d??????Eh4>|h???/?H.b??????/6zq7\??????$?.??r???zHiy?g*[\o?p?*?b?o!?{?$[)?L??????w??j_??w???W?';?C??D2?GC????WI?E&S??2?z??????X,W*?????-????q???=??????=??.V2?TjX????1?????O6???X??-?sQ???tS9????DJ'?X??*-?????????9M?? xs???E 6?Al"~l??]?S?t*#?H??i*y??%dT+J????4 MD??skDY4?o???????OWL}???E?4??)???VEY?.?TEI?L$??:??H?l.??u?????PQ?(?O?I#u?^??????&yIa??}w[?v?Xn??i??A?[???????Sq??????y?-??p??s Mj??R??}1a?q(??????hgX?D????????2???= ???????b?L? @@ -863,7 +874,7 @@ I?aRJ?/I3?Y????;?Wc?Z?5???????G6U??q??O!????~nrb??2?G????Q???? '????Hs%????B?H9?????J1}$??,?b]?pA??;??m?T??A?*??\???0?????|5#???/m$??@??M]?y???q??LN2p,O?<{????. ?%ofP?/??? f???v.??G?w?P???`????? ?,?&-??Xg?2X?o?3V???Di|???@????`?T??$??9?L??R1????$'??A?(t??'??Y????????6{?????????6WV>?-kb????8 5????.????*RS`UxE?*%????C1}pvB???#??-:?Z?w?f?????j?s2q? -w??8????C]?^??l?Z???9P?9]??W ??qC@??,t????:?{y????$8d??on??72?C`?/?R?|}?z????F~?r??@PC?}???nN?/?q?? 8? ?? ??Sf???r??Km?9F}?M????sO|Iy!?QR?@???????"?c?!s??=e2?]?1&K?endstream +w??8????C]?^??l?Z???9P?9]??W ??qC@??,t????:?{y????$8d??on??72?C`?/?R?|}?z????F~?r??@PC?}???nN?/?q?? 8? ?? ??Sf???r??Km?9F}?M????sO|Iy!?QR?@???????"?c?!s??=e2?]?gK?endstream endobj 1019 0 obj << /Filter /FlateDecode /Length 305 >> @@ -2622,7 +2633,7 @@ .? ????:??>??xN2!?U?????)??haO?????><{?^?Z?3???LL???W??we[e(p?\V??'R??sU?S??a??2???}a??OF??I]?|??????F)( s??X??L??f_:}???z?iC??k??S?!7t-?>????/????Jh0?????)??????T??endstream endobj 1091 0 obj -<< /Type /XRef /Length 454 /Filter /FlateDecode /DecodeParms << /Columns 5 /Predictor 12 >> /W [ 1 3 1 ] /Info 3 0 R /Root 2 0 R /Size 1092 /ID [<75a3a5e54542f2f6e35f31314f003565><0bdc932c417f276c8161780ab157fd67>] >> +<< /Type /XRef /Length 454 /Filter /FlateDecode /DecodeParms << /Columns 5 /Predictor 12 >> /W [ 1 3 1 ] /Info 3 0 R /Root 2 0 R /Size 1092 /ID [<3c5925c65ea90cd4d6649bd6a1c89527><1d9ea8e177b316aaf07480aab56e1ecf>] >> stream x???OHa?g???Yu?E? ?(4???????!x?P??@?C *??? ?X*Q???m?i?J=????? BA From noreply at r-forge.r-project.org Mon Mar 16 13:21:51 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Mon, 16 Mar 2015 13:21:51 +0100 (CET) Subject: [Pomp-commits] r1143 - in pkg/pomp: . R Message-ID: <20150316122151.EF9D4184FA3@r-forge.r-project.org> Author: kingaa Date: 2015-03-16 13:21:51 +0100 (Mon, 16 Mar 2015) New Revision: 1143 Modified: pkg/pomp/DESCRIPTION pkg/pomp/R/builder.R Log: - fix some problems with rendering from templates Modified: pkg/pomp/DESCRIPTION =================================================================== --- pkg/pomp/DESCRIPTION 2015-03-15 16:09:02 UTC (rev 1142) +++ pkg/pomp/DESCRIPTION 2015-03-16 12:21:51 UTC (rev 1143) @@ -1,8 +1,8 @@ Package: pomp Type: Package Title: Statistical Inference for Partially Observed Markov Processes -Version: 0.63-1 -Date: 2015-03-15 +Version: 0.63-2 +Date: 2015-03-16 Authors at R: c(person(given=c("Aaron","A."),family="King", role=c("aut","cre"),email="kingaa at umich.edu"), person(given=c("Edward","L."),family="Ionides",role=c("aut")), Modified: pkg/pomp/R/builder.R =================================================================== --- pkg/pomp/R/builder.R 2015-03-15 16:09:02 UTC (rev 1142) +++ pkg/pomp/R/builder.R 2015-03-16 12:21:51 UTC (rev 1143) @@ -21,7 +21,7 @@ if (.Platform$OS.type=="windows") { stem <- gsub("\\","/",stem,fixed=TRUE) } - modelfile <- paste0(stem,".c") + modelfile <- paste0(stem,".c") solib <- paste0(stem,.Platform$dynlib.ext) if (.Platform$OS.type=="unix") { @@ -29,9 +29,9 @@ } else { pompheader <- system.file("include/pomp.h",package="pomp") } - + out <- file(description=modelfile,open="w") - + cat(file=out,render(header$file,name=name,pompheader=pompheader)) for (f in utility.fns) { @@ -42,24 +42,24 @@ ## variable/parameter/observations definitions for (v in seq_along(paramnames)) { - cat(file=out,render(define$var,variable=paramnames[v],ptr='__p',ilist='__parindex',index=v-1)) + cat(file=out,render(define$var,variable=paramnames[v],ptr='__p',ilist='__parindex',index=as.integer(v-1))) } for (v in seq_along(statenames)) { - cat(file=out,render(define$var,variable=statenames[v],ptr='__x',ilist='__stateindex',index=v-1)) + cat(file=out,render(define$var,variable=statenames[v],ptr='__x',ilist='__stateindex',index=as.integer(v-1))) } for (v in seq_along(covarnames)) { - cat(file=out,render(define$var,variable=covarnames[v],ptr='__covars',ilist='__covindex',index=v-1)) + cat(file=out,render(define$var,variable=covarnames[v],ptr='__covars',ilist='__covindex',index=as.integer(v-1))) } for (v in seq_along(obsnames)) { - cat(file=out,render(define$var,variable=obsnames[v],ptr='__y',ilist='__obsindex',index=v-1)) + cat(file=out,render(define$var,variable=obsnames[v],ptr='__y',ilist='__obsindex',index=as.integer(v-1))) } for (v in seq_along(statenames)) { - cat(file=out,render(define$var,variable=paste0("D",statenames[v]),ptr='__f',ilist='__stateindex',index=v-1)) + cat(file=out,render(define$var,variable=paste0("D",statenames[v]),ptr='__f',ilist='__stateindex',index=as.integer(v-1))) } for (v in seq_along(paramnames)) { - cat(file=out,render(define$var,variable=paste0("T",paramnames[v]),ptr='__pt',ilist='__parindex',index=v-1)) + cat(file=out,render(define$var,variable=paste0("T",paramnames[v]),ptr='__pt',ilist='__parindex',index=as.integer(v-1))) } - cat(file=out,render(define$var.alt,variable="lik",ptr='__lik',index=0)) + cat(file=out,render(define$var.alt,variable="lik",ptr='__lik',index=0L)) ## list of functions to register registry <- c("load_stack_incr","load_stack_decr") @@ -193,6 +193,7 @@ cleanForC <- function (text) { text <- as.character(text) text <- gsub("\\.","_",text) + text <- gsub("-","_",text) text } @@ -204,7 +205,7 @@ short <- which(n==1) n <- max(n) for (i in short) vars[[i]] <- rep(vars[[i]],n) - + retval <- vector(mode="list",length=n) for (i in seq_len(n)) { tpl <- template @@ -226,7 +227,7 @@ parameter.transform, parameter.inv.transform, rprior, dprior, globals, ..., save = FALSE) { - + if (!is.data.frame(data)) stop(sQuote("data")," must be a data-frame") obsnames <- names(data) obsnames <- setdiff(obsnames,times) From noreply at r-forge.r-project.org Mon Mar 16 13:22:00 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Mon, 16 Mar 2015 13:22:00 +0100 (CET) Subject: [Pomp-commits] r1144 - www/vignettes Message-ID: <20150316122200.13419184FA3@r-forge.r-project.org> Author: kingaa Date: 2015-03-16 13:21:59 +0100 (Mon, 16 Mar 2015) New Revision: 1144 Modified: www/vignettes/getting_started.R www/vignettes/getting_started.Rmd www/vignettes/getting_started.html www/vignettes/pomp.pdf Log: - more work on "getting started" vignette Modified: www/vignettes/getting_started.R =================================================================== --- www/vignettes/getting_started.R 2015-03-16 12:21:51 UTC (rev 1143) +++ www/vignettes/getting_started.R 2015-03-16 12:21:59 UTC (rev 1144) @@ -25,7 +25,6 @@ ) ## ----prelims,echo=F,cache=F---------------------------------------------- -set.seed(594709947L) require(ggplot2) require(plyr) require(reshape2) @@ -40,6 +39,15 @@ scipen=5 ) +## ----parallel,include=FALSE,cache=FALSE---------------------------------- +require(foreach) +require(doMC) +options(cores=5) +registerDoMC() +set.seed(594709947L,kind="L'Ecuyer") +mcopts <- list(set.seed=TRUE) +paropts <- list(.options.multicore=mcopts) + ## ----eval=FALSE---------------------------------------------------------- ## install.packages("pomp",repos="http://R-Forge.R-Project.org") @@ -210,12 +218,45 @@ tm <- traj.match(parus,start=c(r=1,K=200,phi=1,N.0=200,sigma=0.5), est=c("r","K","phi"),transform=TRUE) signif(coef(tm),3) +logLik(tm) ## ----parus-tm-sim1,cache=FALSE------------------------------------------- coef(tm,"sigma") <- 0 -sim <- simulate(tm,nsim=10,as.data.frame=TRUE,include.data=TRUE) -ggplot(data=sim,mapping=aes(x=time,y=pop,group=sim,alpha=(sim=="data")))+ +sim1 <- simulate(tm,nsim=10,as.data.frame=TRUE,include.data=TRUE) +ggplot(data=sim1,mapping=aes(x=time,y=pop,group=sim,alpha=(sim=="data")))+ scale_alpha_manual(name="",values=c(`TRUE`=1,`FALSE`=0.2), labels=c(`FALSE`="simulation",`TRUE`="data"))+ geom_line() +## ----parus-mif,cache=TRUE------------------------------------------------ +mf <- mif(parus,Nmif=50,Np=1000,method="mif2",cooling.fraction=0.8, + rw.sd=c(r=0.02,K=0.02,phi=0.02,sigma=0.02),transform=TRUE) +mf <- mif(mf) +mle <- coef(mf); mle +logmeanexp(replicate(5,logLik(pfilter(mf))),se=TRUE) +sim2 <- simulate(mf,nsim=10,as.data.frame=TRUE,include.data=TRUE) +ggplot(data=sim2,mapping=aes(x=time,y=pop,group=sim,alpha=(sim=="data")))+ + scale_alpha_manual(name="",values=c(`TRUE`=1,`FALSE`=0.2), + labels=c(`FALSE`="simulation",`TRUE`="data"))+ + geom_line() + +## ----parus-pmcmc,cache=TRUE---------------------------------------------- +dprior <- Csnippet(" + lik = dunif(r,0,5,1)+dunif(K,100,800,1)+dunif(phi,0,2,1)+ + dunif(sigma,0,2,1); + lik = (give_log) ? lik : exp(lik); + ") +parus <- pomp(parus,dprior=dprior,paramnames=c("r","K","phi","sigma")) +pchs <- foreach (i=1:5,.combine=c, + .options.multicore=mcopts) %dopar% { + pmcmc(parus,Nmcmc=1000,Np=100,start=mle, + proposal=mvn.diag.rw(c(r=0.02,K=0.02,phi=0.02,sigma=0.02))) + } +traces <- conv.rec(pchs,c("r","K","phi")) +require(coda) +plot(traces[,"r"]) +plot(traces[,"K"]) +plot(traces[,"phi"]) +gelman.plot(traces) +gelman.diag(traces) + Modified: www/vignettes/getting_started.Rmd =================================================================== --- www/vignettes/getting_started.Rmd 2015-03-16 12:21:51 UTC (rev 1143) +++ www/vignettes/getting_started.Rmd 2015-03-16 12:21:59 UTC (rev 1144) @@ -44,7 +44,6 @@ ```{r prelims,echo=F,cache=F} -set.seed(594709947L) require(ggplot2) require(plyr) require(reshape2) @@ -59,6 +58,15 @@ scipen=5 ) ``` +```{r parallel,include=FALSE,cache=FALSE} +require(foreach) +require(doMC) +options(cores=5) +registerDoMC() +set.seed(594709947L,kind="L'Ecuyer") +mcopts <- list(set.seed=TRUE) +paropts <- list(.options.multicore=mcopts) +``` ## Introduction @@ -426,13 +434,14 @@ tm <- traj.match(parus,start=c(r=1,K=200,phi=1,N.0=200,sigma=0.5), est=c("r","K","phi"),transform=TRUE) signif(coef(tm),3) +logLik(tm) ``` We can simulate the fitted model and compare it against the data. ```{r parus-tm-sim1,cache=FALSE} coef(tm,"sigma") <- 0 -sim <- simulate(tm,nsim=10,as.data.frame=TRUE,include.data=TRUE) -ggplot(data=sim,mapping=aes(x=time,y=pop,group=sim,alpha=(sim=="data")))+ +sim1 <- simulate(tm,nsim=10,as.data.frame=TRUE,include.data=TRUE) +ggplot(data=sim1,mapping=aes(x=time,y=pop,group=sim,alpha=(sim=="data")))+ scale_alpha_manual(name="",values=c(`TRUE`=1,`FALSE`=0.2), labels=c(`FALSE`="simulation",`TRUE`="data"))+ geom_line() @@ -440,8 +449,49 @@ ## Maximizing the likelihood by iterated filtering +Iterated filtering [@Ionides2015; @Ionides2006] is a method for maximizing the likelihood by repeatedly applying a particle filter. The following codes apply the IF2 algorithm [@Ionides2015]. +```{r parus-mif,cache=TRUE} +mf <- mif(parus,Nmif=50,Np=1000,method="mif2",cooling.fraction=0.8, + rw.sd=c(r=0.02,K=0.02,phi=0.02,sigma=0.02),transform=TRUE) +mf <- mif(mf) +mle <- coef(mf); mle +logmeanexp(replicate(5,logLik(pfilter(mf))),se=TRUE) +sim2 <- simulate(mf,nsim=10,as.data.frame=TRUE,include.data=TRUE) +ggplot(data=sim2,mapping=aes(x=time,y=pop,group=sim,alpha=(sim=="data")))+ + scale_alpha_manual(name="",values=c(`TRUE`=1,`FALSE`=0.2), + labels=c(`FALSE`="simulation",`TRUE`="data"))+ + geom_line() +``` + +The first command runs 50 iterations of the algorithm; the second re-runs the algorithm from where the first run ended up. +The next line extracts and displays the MLE. +The fourth command runs 5 replicate particle filters to compute the log likelihood at the estimated parameters and averages these appropriately to get an estimate of this likelihood and of the standard Monte Carlo error. +Finally, the above plots the data and 10 simulated realizations of the model process on the same axes. + ## Sampling the posterior using particle Markov chain Monte Carlo +The following codes cause 5 parallel pMCMC chains to be run, beginning at the MLE obtained above. +```{r parus-pmcmc,cache=TRUE} +dprior <- Csnippet(" + lik = dunif(r,0,5,1)+dunif(K,100,800,1)+dunif(phi,0,2,1)+ + dunif(sigma,0,2,1); + lik = (give_log) ? lik : exp(lik); + ") +parus <- pomp(parus,dprior=dprior,paramnames=c("r","K","phi","sigma")) +pchs <- foreach (i=1:5,.combine=c, + .options.multicore=mcopts) %dopar% { + pmcmc(parus,Nmcmc=1000,Np=100,start=mle, + proposal=mvn.diag.rw(c(r=0.02,K=0.02,phi=0.02,sigma=0.02))) + } +traces <- conv.rec(pchs,c("r","K","phi")) +require(coda) +plot(traces[,"r"]) +plot(traces[,"K"]) +plot(traces[,"phi"]) +gelman.plot(traces) +gelman.diag(traces) +``` + ## Model checking using probes ## References Modified: www/vignettes/getting_started.html =================================================================== --- www/vignettes/getting_started.html 2015-03-16 12:21:51 UTC (rev 1143) +++ www/vignettes/getting_started.html 2015-03-16 12:21:59 UTC (rev 1144) @@ -90,7 +90,7 @@

    Licensed under the Creative Commons attribution-noncommercial license. Please share and remix noncommercially, mentioning its origin.
    CC-BY_NC

    -

    This document was produced using pomp version 0.62.8.

    +

    This document was produced using pomp version 0.63.1.

    Introduction

    This tutorial aims to help you get started using pomp as a suite of tools for analysis of time series data based on dynamical systems models. First, we give some conceptual background regarding the class of models?partially observed Markov processes?that pomp handles. We then discuss some preliminaries: installing the package and so on. Next, using a basic question about ecological population regulation as an example, we load some data and implement some models as R objects of class pomp. Finally, we illustrate some of the package?s capabilities by using its algorithms to fit and compare the models using various inference methods.

    @@ -174,7 +174,7 @@ geom_line()+geom_point()+ expand_limits(y=0)+ theme_classic() [TRUNCATED] To get the complete diff run: svnlook diff /svnroot/pomp -r 1144 From noreply at r-forge.r-project.org Mon Mar 23 13:59:09 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Mon, 23 Mar 2015 13:59:09 +0100 (CET) Subject: [Pomp-commits] r1145 - in www: content vignettes Message-ID: <20150323125910.06664187296@r-forge.r-project.org> Author: kingaa Date: 2015-03-23 13:59:09 +0100 (Mon, 23 Mar 2015) New Revision: 1145 Added: www/vignettes/mif2.R www/vignettes/mif2.Rmd www/vignettes/mif2.html Modified: www/content/vignettes.htm www/vignettes/Makefile www/vignettes/pomp.pdf Log: - add mif2 vignette Modified: www/content/vignettes.htm =================================================================== --- www/content/vignettes.htm 2015-03-16 12:21:59 UTC (rev 1144) +++ www/content/vignettes.htm 2015-03-23 12:59:09 UTC (rev 1145) @@ -11,6 +11,11 @@
    + + + + + Modified: www/vignettes/Makefile =================================================================== --- www/vignettes/Makefile 2015-03-16 12:21:59 UTC (rev 1144) +++ www/vignettes/Makefile 2015-03-23 12:59:09 UTC (rev 1145) @@ -1,5 +1,5 @@ RSCRIPT = $(R_HOME)/bin/Rscript --vanilla -REXE = $(R_HOME)/bin/R --vanilla +REXE = $(R_HOME)/bin/R --vanilla --slave LATEX = latex BIBTEX = bibtex PDFLATEX = pdflatex Added: www/vignettes/mif2.R =================================================================== --- www/vignettes/mif2.R (rev 0) +++ www/vignettes/mif2.R 2015-03-23 12:59:09 UTC (rev 1145) @@ -0,0 +1,115 @@ +## ----options,include=FALSE,cache=FALSE----------------------------------- +library(knitr) +prefix <- "mif2" +opts_chunk$set( + progress=TRUE, + prompt=FALSE,tidy=FALSE,highlight=TRUE, + strip.white=TRUE, + warning=FALSE, + message=FALSE, + error=FALSE, + echo=TRUE, + cache=TRUE, + results='markup', + fig.show='asis', + size='small', + fig.lp="fig:", + fig.path=paste0("figure/",prefix,"-"), + cache.path=paste0("cache/",prefix,"-"), + fig.pos="h!", + fig.align='center', + fig.height=4,fig.width=6.83, + dpi=300, + dev='png', + dev.args=list(bg='transparent') + ) +require(ggplot2) +require(plyr) +require(reshape2) +require(magrittr) +require(pomp) +theme_set(theme_bw()) +stopifnot(packageVersion("pomp")>="0.63-1") +options( + keep.source=TRUE, + stringsAsFactors=FALSE, + encoding="UTF-8", + scipen=5, + cores=5 + ) + +## ----gompertz-init,cache=FALSE------------------------------------------- +require(pomp) +pompExample(gompertz) +theta <- coef(gompertz) +theta.true <- theta + +## ----gompertz-multi-mif2-eval,results='hide'----------------------------- +require(foreach) +require(doMC) +registerDoMC() + +save.seed <- .Random.seed +set.seed(334388458L,kind="L'Ecuyer") + +estpars <- c("r","sigma","tau") +mf <- foreach(i=1:10, + .inorder=FALSE, + .options.multicore=list(set.seed=TRUE) + ) %dopar% + { + theta.guess <- theta.true + theta.guess[estpars] <- rlnorm( + n=length(estpars), + meanlog=log(theta.guess[estpars]), + sdlog=1 + ) + m1 <- mif( + gompertz, + Nmif=50, + method="mif2", + start=theta.guess, + transform=TRUE, + rw.sd=c(r=0.02,sigma=0.02,tau=0.05), + Np=2000, + var.factor=2, + cooling.type="hyperbolic", + cooling.fraction=0.95 + ) + m1 <- continue(m1,Nmif=50,cooling.fraction=0.8) + m1 <- continue(m1,Nmif=50,cooling.fraction=0.6) + m1 <- continue(m1,Nmif=50,cooling.fraction=0.2) + ll <- replicate(n=10,logLik(pfilter(m1,Np=10000))) + list(mif=m1,ll=ll) + } + +rbind( + mle=c(signif(theta.mif[estpars],3),loglik=round(loglik.mif,2)), + truth=c(signif(theta.true[estpars],3),loglik=round(loglik.true,2)) + ) -> results.table + +## ----gompertz-post-mif2-------------------------------------------------- +theta.true <- coef(gompertz) +loglik.true <- replicate(n=10,logLik(pfilter(gompertz,Np=10000))) +loglik.true <- logmeanexp(loglik.true,se=TRUE) +theta.mif <- t(sapply(mf,function(x)coef(x$mif))) +loglik.mif <- t(sapply(mf,function(x)logmeanexp(x$ll,se=TRUE))) +best <- which.max(loglik.mif[,1]) +theta.mif <- theta.mif[best,] +loglik.mif <- loglik.mif[best,] + +## ----mif2-plot,echo=FALSE,cache=FALSE------------------------------------ +op <- par(mfrow=c(4,1),mar=c(3,3,0,0),mgp=c(2,1,0),bty='l') +loglik <- sapply(mf,function(x)conv.rec(x$mif,"loglik")) +log.r <- sapply(mf,function(x)conv.rec(x$mif,"r")) +log.sigma <- sapply(mf,function(x)conv.rec(x$mif,"sigma")) +log.tau <- sapply(mf,function(x)conv.rec(x$mif,"tau")) +matplot(loglik,type='l',lty=1,xlab="",ylab=expression(log~L),xaxt='n',ylim=max(loglik,na.rm=T)+c(-12,3)) +matplot(log.r,type='l',lty=1,xlab="",ylab=expression(log~r),xaxt='n') +matplot(log.sigma,type='l',lty=1,xlab="",ylab=expression(log~sigma),xaxt='n') +matplot(log.tau,type='l',lty=1,xlab="MIF iteration",ylab=expression(log~tau)) +par(op) + +## ----first-mif-results-table,echo=FALSE,cache=FALSE---------------------- +print(results.table) + Added: www/vignettes/mif2.Rmd =================================================================== --- www/vignettes/mif2.Rmd (rev 0) +++ www/vignettes/mif2.Rmd 2015-03-23 12:59:09 UTC (rev 1145) @@ -0,0 +1,152 @@ +--- +title: "An IF2 example" +author: "Aaron A. King" +output: + html_document: + theme: flatly + toc: yes +bibliography: pomp.bib +csl: ecology.csl +--- + +```{r options,include=FALSE,cache=FALSE} +library(knitr) +prefix <- "mif2" +opts_chunk$set( + progress=TRUE, + prompt=FALSE,tidy=FALSE,highlight=TRUE, + strip.white=TRUE, + warning=FALSE, + message=FALSE, + error=FALSE, + echo=TRUE, + cache=TRUE, + results='markup', + fig.show='asis', + size='small', + fig.lp="fig:", + fig.path=paste0("figure/",prefix,"-"), + cache.path=paste0("cache/",prefix,"-"), + fig.pos="h!", + fig.align='center', + fig.height=4,fig.width=6.83, + dpi=300, + dev='png', + dev.args=list(bg='transparent') + ) +require(ggplot2) +require(plyr) +require(reshape2) +require(magrittr) +require(pomp) +theme_set(theme_bw()) +stopifnot(packageVersion("pomp")>="0.63-1") +options( + keep.source=TRUE, + stringsAsFactors=FALSE, + encoding="UTF-8", + scipen=5, + cores=5 + ) +``` + +Iterated filtering is a technique for maximizing the likelihood obtained by filtering. +In `pomp`, it is the particle filter that is iterated. +Iterated filtering is implemented in the `mif` function. + at Ionides2015 describe an improvement on the original [@Ionides2006] algorithm. +This "IF2" algorithm is currently implemented by setting the `method="mif2"` option in `mif`. + +Let's use iterated filtering to obtain an approximate MLE for the data in the Gompertz model example provided with `pomp`. +We'll initialize the algorithm at several starting points around `theta.true` and just estimate the parameters $r$, $\tau$, and $\sigma$: +```{r gompertz-init,cache=FALSE} +require(pomp) +pompExample(gompertz) +theta <- coef(gompertz) +theta.true <- theta +``` + +Note that we've set `transform=TRUE` in the above. +This means that the likelihood maximization is done on the estimation scale (see the section above on Parameter Transformations). + +```{r gompertz-multi-mif2-eval,results='hide'} +require(foreach) +require(doMC) +registerDoMC() + +save.seed <- .Random.seed +set.seed(334388458L,kind="L'Ecuyer") + +estpars <- c("r","sigma","tau") +mf <- foreach(i=1:10, + .inorder=FALSE, + .options.multicore=list(set.seed=TRUE) + ) %dopar% + { + theta.guess <- theta.true + theta.guess[estpars] <- rlnorm( + n=length(estpars), + meanlog=log(theta.guess[estpars]), + sdlog=1 + ) + m1 <- mif( + gompertz, + Nmif=50, + method="mif2", + start=theta.guess, + transform=TRUE, + rw.sd=c(r=0.02,sigma=0.02,tau=0.05), + Np=2000, + var.factor=2, + cooling.type="hyperbolic", + cooling.fraction=0.95 + ) + m1 <- continue(m1,Nmif=50,cooling.fraction=0.8) + m1 <- continue(m1,Nmif=50,cooling.fraction=0.6) + m1 <- continue(m1,Nmif=50,cooling.fraction=0.2) + ll <- replicate(n=10,logLik(pfilter(m1,Np=10000))) + list(mif=m1,ll=ll) + } +``` +```{r gompertz-post-mif2} +loglik.true <- replicate(n=10,logLik(pfilter(gompertz,Np=10000))) +loglik.true <- logmeanexp(loglik.true,se=TRUE) +theta.mif <- t(sapply(mf,function(x)coef(x$mif))) +loglik.mif <- t(sapply(mf,function(x)logmeanexp(x$ll,se=TRUE))) +best <- which.max(loglik.mif[,1]) +theta.mif <- theta.mif[best,] +loglik.mif <- loglik.mif[best,] +rbind( + mle=c(signif(theta.mif[estpars],3),loglik=round(loglik.mif,2)), + truth=c(signif(theta.true[estpars],3),loglik=round(loglik.true,2)) + ) -> results.table +``` + +Each of the `r length(mf)` `mif` runs ends up at a different place. +In this case (but by no means in every case), we can average across these parameter estimates to get an approximate maximum likelihood estimate. +We'll evaluate the likelihood several times at this estimate to get an idea of the Monte Carlo error in our likelihood estimate. +The particle filter produces an unbiased estimate of the likelihood; +therefore, we'll average the likelihoods, not the log likelihoods. + + +Convergence plots can be used to help diagnose convergence of the iterated filtering algorithm. +The following shows part of the output of `plot(mf)`. + +```{r mif2-plot,echo=FALSE,cache=FALSE,fig.height=6} +op <- par(mfrow=c(4,1),mar=c(3,3,0,0),mgp=c(2,1,0),bty='l') +loglik <- sapply(mf,function(x)conv.rec(x$mif,"loglik")) +log.r <- sapply(mf,function(x)conv.rec(x$mif,"r")) +log.sigma <- sapply(mf,function(x)conv.rec(x$mif,"sigma")) +log.tau <- sapply(mf,function(x)conv.rec(x$mif,"tau")) +matplot(loglik,type='l',lty=1,xlab="",ylab=expression(log~L),xaxt='n',ylim=max(loglik,na.rm=T)+c(-12,3)) +matplot(log.r,type='l',lty=1,xlab="",ylab=expression(log~r),xaxt='n') +matplot(log.sigma,type='l',lty=1,xlab="",ylab=expression(log~sigma),xaxt='n') +matplot(log.tau,type='l',lty=1,xlab="MIF iteration",ylab=expression(log~tau)) +par(op) +``` + +Here is a summary of the results. +```{r first-mif-results-table,echo=FALSE,cache=FALSE} +print(results.table) +``` + +## References Added: www/vignettes/mif2.html =================================================================== --- www/vignettes/mif2.html (rev 0) +++ www/vignettes/mif2.html 2015-03-23 12:59:09 UTC (rev 1145) @@ -0,0 +1,162 @@ + + + + + + + + + + + + + +An IF2 example + [TRUNCATED] To get the complete diff run: svnlook diff /svnroot/pomp -r 1145 From noreply at r-forge.r-project.org Mon Mar 23 13:59:14 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Mon, 23 Mar 2015 13:59:14 +0100 (CET) Subject: [Pomp-commits] r1146 - pkg/pomp pkg/pomp/man www/vignettes Message-ID: <20150323125914.81391187296@r-forge.r-project.org> Author: kingaa Date: 2015-03-23 13:59:14 +0100 (Mon, 23 Mar 2015) New Revision: 1146 Modified: pkg/pomp/DESCRIPTION pkg/pomp/man/csnippet.Rd www/vignettes/pomp.pdf Log: - document Csnippets for rprior and dprior Modified: pkg/pomp/DESCRIPTION =================================================================== --- pkg/pomp/DESCRIPTION 2015-03-23 12:59:09 UTC (rev 1145) +++ pkg/pomp/DESCRIPTION 2015-03-23 12:59:14 UTC (rev 1146) @@ -1,8 +1,8 @@ Package: pomp Type: Package Title: Statistical Inference for Partially Observed Markov Processes -Version: 0.63-2 -Date: 2015-03-16 +Version: 0.63-3 +Date: 2015-03-23 Authors at R: c(person(given=c("Aaron","A."),family="King", role=c("aut","cre"),email="kingaa at umich.edu"), person(given=c("Edward","L."),family="Ionides",role=c("aut")), Modified: pkg/pomp/man/csnippet.Rd =================================================================== --- pkg/pomp/man/csnippet.Rd 2015-03-23 12:59:09 UTC (rev 1145) +++ pkg/pomp/man/csnippet.Rd 2015-03-23 12:59:14 UTC (rev 1146) @@ -50,7 +50,8 @@ } \section{Rules for writing \code{dmeasure} snippets}{ \enumerate{ - \item The goal of such a snippet is to fill the \code{lik} variable with the likelihood of the data given the state. Alternatively, if \code{give_log=1}, \code{lik} should be filled with the log likelihood. + \item The goal of such a snippet is to fill the \code{lik} variable with the likelihood of the data given the state. + Alternatively, if \code{give_log=1}, \code{lik} should be filled with the log likelihood. \item In addition to the states, parameters, covariates (if any), and observables, the variable \code{t}, containing the time of the observation, will be defined in the context in which the snippet is executed. } } @@ -68,6 +69,24 @@ \item As with the other C snippets, all states, parameters and covariates, as well as the current time, \code{t}, will be defined in the context within which the snippet is executed. } } +\section{Rules for writing \code{rprior} snippets}{ + \enumerate{ + \item The goal of such a snippet is the replacement of parameters with values drawn from the prior distribution. + \item Within the context in which the snippet will be evaluated, only the parameters will be defined. + \item Hyperparameters can be included in the ordinary parameter list. + Obviously, hyperparameters should not be replaced with random draws. + } +} +\section{Rules for writing \code{dprior} snippets}{ + \enumerate{ + \item The goal of such a snippet is computation of the prior probability density, or the log of same, at a given point in parameter space. + This scalar value should be returned in the variable \code{lik}. + When \code{give_log=1}, the user should return the log of the prior probability density. + \item Within the context in which the snippet will be evaluated, only the parameters and \code{give_log} will be defined. + \item Hyperparameters can be included in the ordinary parameter list. + Obviously, hyperparameters should not be replaced with random draws. + } +} \section{Rules for writing parameter transformation snippets}{ \enumerate{ \item The parameter transformation mapping a parameter vector from the scale defined by the model codes to another scale is specified as the \code{parameter.inv.transform} whilst the transformation mapping a parameter vector from the alternative scale to that on which the model is defined is specified as the \code{parameter.transform}. Modified: www/vignettes/pomp.pdf =================================================================== --- www/vignettes/pomp.pdf 2015-03-23 12:59:09 UTC (rev 1145) +++ www/vignettes/pomp.pdf 2015-03-23 12:59:14 UTC (rev 1146) @@ -1,54 +1,37 @@ %PDF-1.5 %???? 1 0 obj -<< /Type /ObjStm /Length 4535 /Filter /FlateDecode /N 99 /First 841 >> +<< /Type /ObjStm /Length 3934 /Filter /FlateDecode /N 99 /First 839 >> stream -x??\ks?6??~?m\)???J??ql+????[?[c??f3?Q??u???i??? G%?|o??%?$?h????ZU?  -S(? -[g -WH]? ?u,B!??E,? ??U!??Y???EU(??k??U?[([?B?B????P?????? -??)d,??x?[KD -?? -G?? ?"?Ma?[X?|AL? ? g??PxI???+????0?e?C???? ??"? -? -?H??"J????)h?>???b^???e??- &[????G??<]?h? -???$$%]?T??+??4t???< -(Cd??$??XPV4( P?????X?!P]XK -{??xv6[,??????ee???x9?????t1???{-w??tIJ/?'????}i.6???!??0?|??1?3?c>:?k??I?????z?/?+??d?????e?+??5??h?GS?hU?U?o??e?23?6>6?6????Ty???xDK&x??y?<-sw?25??9??6????j?X3???L?#3?????i?L?jT#0V ??@%KF? ?X???[f??h??????{?'x??2???????`:?-????????F????????#[?1|?|t|?|dz?\d???]??????a???5_?k?'?l?)?U2????????~?%X??94n?????!0?1???3?q,9?????? -?_i*~Ob??J?*S?-?=??7???????i#:?Mp? Q<*???????)????;[./?.?????O??i???|???xY??^??p6?A2??Q%??ztr??8G?\jG??+?7"tT8"?w??'??h?q??x9???rD*??[?/?|{z?F??Y??T?L?_!P???G???_A???b9_?M??x?#?E?FG^b???%&xzt?????)???J????3:??H?d?????x$?'???Q</?+q ^?Cq$??_?[?N??Gq,?g????G?D?"????1?}??'??8g?????z*????1?z??b*fb6???? ??????5Ot.??xv"??f?:?M?|w.bQ????X???????_3??????????w=??K H??}????????6?.fg??t.??????{??ty?5?a}??????v???6 -w??sc?W???d?d????2w&???K}s??"A?_???d???????LgM???? ?n?y>9????2$?y>??4_?s?????{????w????+?m??.???QHp? -^? -?@??2?2h?$^0p? ??e??W???ONj4?-4????Yo?R ?>mH?BQ(% -???fu?*?????P???????????? ???u??f,/J?7a/%?U?&?9??s?MR?c?Xk?w???5*vu`??7M?T?n?3????8w??M?l?L?y?????)i?`?ue?xI?(???c?vpSwj???c?h???)?cC?v?T??V<%?,????v????????O???Vx -?w???????ZxW oj?=-???w???????Y$??R6{??S?^?*?{?cO?Z?w?e???????Q?],?/u???R?#??!??]???,??)[??42 -???3hu?X??(c(???? ??bX]F????@??6q?\?>WN?2?WZ???ZoKo}?=??j??????r??\?1i????S?f^K? -? -???"S?f?m?aZli???"??? ?o?5?o=A??b???>lxX?X?zX?w???`?_???????w?1???x>???V?_9? -?r??ao?}?3jo????z{????(??'?#???J ?I(\c?E?7?7?}?]????.-?W?r????{-)?gH? ?>?hxB?.a 7??F?,???zW? ????R?Eo??[e^'??>b??+ ?#A? ?n`?N??j? -W0?*???*????????TTe??????)??O?xiI?7???t???????]?Kb/g????i%????%??? -???i???IU@??V?S???????"v?"}|*?J??C +%tiqQ ?????#d?;??uxH???P:y???(?zIS?"?w%V???Z?h? [?CVXy? k?,??????????1???7G?6SsU??Q|???9X?? _v|?|??=a|Mc|??l??6???Pt?(??m???e?\??? k!y?? ?^??E?????c????Fj?>??\??g?9?zH|??Zs?Z3??pM?????&????G?]?\_??M?6????5X-c????>9V?7?x?1?y?"k?}?????????5Y?a?lU?????-?????????????c?#?c?&??s,?U??s,??<6??X?cy???%???????[g +x?|8Y,???g#??i:?U?WK?\?????jA??, &???tJ?_P????? S+????????h?Xnm?N;8?)???O[l +????g??X? Bh???????????FU???]?????\v??'b{?}??P?vk????@?H???UwCPf P? *??T??J7??????"??S0Y1Wm8?n???M?- ?km?:?v???????M??<5\'s???f???t?FH?d?f?f*e]??h?Y?? +??7-?????X?F ?t??&?d?8??pr????k5??Rw???k ?2???q?q{?????????u}?w))?,???? +???????.pz+K?;_ ?nzR????? c??+ B?|????qt??P$Q?????(?MfW?H?[J?}??h.?u??5???????????T????C??SQ/????y{?#?e?[?????x?????g?????yzv?z??f???dvD?2 +FJ0??B7??P???B?N???(d??j&?????vrP??9' ??3HW???b??EW~?W??.?K +?B????mW1???dZ+?UJ{C??}?5*S??Os&? +??????|._?WrO????G?F??#?A??x>?????d$d%?8y('?????py$???o???LN??G9??j??'r&?r>???<%??V?uSZd9??b2????_??u???Rsw!?rY}??????e}??*Y?:?g???U~???????b~+'????i?G>???h?0?????o#s?w);$??on??L+Z?VN|1:?.u???h:??!o.???n????????7B!??xH???O<4A?? ?yt??6Z?????.?????p?ta????7sc?W?D?R????~?;???????:??y???V+wn???z?:kn????\n?}>;?R?{-4d?1sD???????q???m9?????????_u,????I?t?I|?? ?????I??|??????5??I???N?????@?j??????r:Z? ?:;.?r; ?E??????z????????:???e???5??2W?e^?[?l?k ?R?uX????m?Q???~9?.?U??????? ??,??[{??Z+v?5??Q]B????"???????HvY??v?kf??e???e???L;?f7[-K?????6???a`??b?x?|p????U?U??c?????Q????6!?B??w???9???]?=o??}T???wQ?&?v?W?????7P??)?>???x?????S?????=}?P??F???Rj?5???k???j??m?&&/??B?&L?;F???-S?B???v?-i#7???????&???????x?}?bM?0?kR+?/??99$?? +Jc??U??????t?????A? }????F?BY?l?\?EI?*4?9T&????k????*[x?%`????WA??6S??C?)l?^B?J??>k?R?jb?@Z,U?A?&??DE6?^?2A7?????hm??t??Y???gKW?"0?M????) +?/????n?u3?"??!*c?"?[???/&K?H_7EL???????????Z???????R?q???iP??B??(???at?? s}?"LaX?h?9N??a??h?1}>???Yf???>xP??( +!B?$? +Z???r?)o?????)?????i????JA?$?o???n??R?g)_w?)?????V???aZ???qE^?(}??K?R??A?;????~=?_??????ta4}????ReLu? +:???eQv?Y]?}?n.5ZV??r??9> @@ -57,12 +40,12 @@ - -2015-03-23T08:42:52-04:00 -2015-03-23T08:42:52-04:00 + +2015-03-23T08:58:17-04:00 +2015-03-23T08:58:17-04:00 Raph Levien - -Inconsolata + +Inconsolata @@ -70,500 +53,556 @@ endstream endobj 102 0 obj -<< /Type /ObjStm /Length 2433 /Filter /FlateDecode /N 99 /First 901 >> +<< /Type /ObjStm /Length 3149 /Filter /FlateDecode /N 99 /First 915 >> stream -x??[[o?~???/ - -g???A_??@?R?4-?@Sk? -E -$?????.I?A????!8;?????u?ec -)??aeS??+??kP????u?&???g???l??M??? 0?~?????y????Y???r.? *??IR.??6+3sF????(??G?l?????^?d0?.b??%E??????& -^?A??[??"%??1H29(?$?G???[Iq -29+o@?e??0?-?{??)dwf?????? w???\~?*,'??Y)| ?7??*x?? -!?R!y??????@8???e?G"\?Td???A???IX,???0?A??? X%[?x???: "? -?????D?????x-x????a ??X9??r ??Tv?X??;F???6&?I??e?KF? O ?D(??e l ]?~6?~X????\&?8??H?~M??`J???7?;Q?X?b?Vu?_????s%hn s1;?.?????????????J??{?|???~??|?????b???'???E??2N^?? o0????????"?/??_?x9?T?+?4????????,??????vR???? hAV???zY????? -qn??S?n}ho????K????????Dg???? ? ??? N???I??)I>1??]S????%??C`?F#?d??>Z?h? _????s?V????J??P????m???F????q8Y ??jR??\]`???[?O???]uqu????N??;?:?m????0??z -?4???G?]s1?)%??JWW`??A:?{???Es???????-v?]?:m;?6~l8???]8z?,5"K?k% ??Q7???????<3?xd???,V,_????D&?k???hO?*???????4???i?S?C?{??|Q????`s?????D?!?E????????? ??]???J?"?0???'xo?? -`?sd??l?^X.AjeK???????????i?>?C?^e???qfg???ZW?nlc^?~\W??C??? ??#?b^?r?3??N??k`???&G?C????&?d?e??n?T>?R?H??)??=?G0??[????e??I??@??j?b? ???,F U???$n??>I<#??{=E???cf2?t? ????2?cGzr`???E?!eg?f?]????w???>8} ?S0?%3??38????? ?H???X??@*?TZ1iH?????B'?u\?BBg"B??cL?*????GgO?C???V??cd??? ?tO}???+X???a???pQ????/????b?~?z??c5??R????>??V;H?oA??? ?7d??a??k??^endstream +x??[mo?F?~?b?????}=???M????I??????F?t?&????%)??P6??@$K?????gfgf?J&?????:fLD??? +m`>i??Ek?&??L) ? #z9?V +???_?/????J9?M???}??q9.??O??c???*??X?O????3??x_b??????EA??x??o?e"??m??.??????&#???X??j????h)????x}K???2-??-? +C????? 7??ddc???R?X??^U??[]??n;U0?d???????[r??Pc;??Uu[[?h????b??R??VK???b???^b????%&??$#ZR??KJ?K??_???? ??5?MT?N?z?;?????y?flv5?R?QqJ]?W{?????f???J??(:_?)3O'?w +M??k>??3??????i9??????(????X?/|y?v?_??da?????S~?$?Z]?*z?x2-(1i?????R????????|Z??x6Y?????,Nq\?????????? +?z????|`??J?jB?"?=E????h ??? "q??????V?N?W +???\!' ???]?4???}W???m??/i???W??8???s1??v????|Wu_L?V~?*.a??,??x? ??za0????W???c_?k??'?9>&m:~?????v??v?v?.}O?7H?????a':??K?Cq +?????]?? ?f???0??\N???!? +??p????p?#???Bh?X?~999????`????V??|Y?0?0??VtZ?-?8?????2????Cf??m?U?k?U?_?l,?*?????|[dt?Z??;?????}?????b??bkq??5?}?v??O/^???Z????ZX:v??Z?N'?KZN?N]?Jr???>???M??6h?g?O?????U[???)???S?m??Q?????N?Z??????????R???e?zL?A_??-??h??Q4?M?t???z#?^m???$?y???~?3l???X?&.A?????}??A?4????6???H?a??#u?:?t79????:]?g???8????? V>????0>bt????Ey9?????htt????r?M?b~??S~????(????5Vo??C%?]+??n?m??S?6??u?dS???j??m??6QVs????????:osY?97Oj?Ic +??t??O?[????;??????S???m????d%???wCV??i??F??Cq$B??,??5"\????r?ed?s.??Zx?@?:l???l?? ?d?$E?N?P???? (?z?|^??,U????????g?p"9??}!>"0T?m^?\N?e`???_?(?8???#?=???d????*K??V?J??T?E???????I?????D????Qq ??C=HK)G?)??=w7|??#gd'o?p????#???+??"p??&?)V?4B?|x? kk??l4?S?7?????"W??20????}7???`i.?a????????.???TU+??ZWu4?P? *?ap?ZV????\j???4U9?$?????endstream endobj 202 0 obj -<< /Type /ObjStm /Length 2354 /Filter /FlateDecode /N 99 /First 892 >> +<< /Type /ObjStm /Length 2345 /Filter /FlateDecode /N 99 /First 900 >> stream -x??Z[o?~????.??H??, ?N??")??n?A?'?Z[2? ????gF?X??F?ics8C??~#?!e?3^?`? ?H??|?qTL?? -[???)?L"0={$? 3?JNBE?*g?? u???e???"h?F??O@??PiC"? ?6??Pj??70?P?%@? P4???@??B$???{5;_-?jYod9K?P????b~????b 1Ya?SWj?f??\??y?f?a}]m?,??c???z^W?X???X??l?Y??/????<?f?>?X????P?????g?? -H?-Z.?%??Ue?e(??'F????? --?????0Z?????????D??'???>???y*R?)b$?I???O??"?P???????(????w????5v??k{?d?Q????*???????O????/T?????by[?K??b??????????????z?P??%`?Y???$x?????eK??v?7?????????l?s??kBx?????????.????????vZ????D(w???lq{???2? 7????b??Yl???~zQ??????Jv????????.?8????h ?{_5__.?* ~? -?y~_????z~??~????0s?z??@???H??????V???$v?x?Q?f????????[??/$d? ???\I?F??j}S?[?)?:??v?%&?5 ???H(?W?1k?u???N?^T?e??Z???4!????%?kFBy?????wL,?o?????????>??L?????Oj?~?O??\? ?????H?q?xHV??cp???????$_#$p Zv???y?U??H1?b??]??O?U?\??b?u>B 9?N????t^I???? - -G??+)?:?2i???? Q???{2D????A?,????a {h??3J?Gh!??????b???'G?Y{)KZ?<???-??T?Z????s Z???I????+?*-wL?5}???????d??+*???kCQy??/???'???-E??D?q2??$B???J?cd?g$!?v?c;0???"??Y{??????_?&'?2\8?*?i??D??Q????I???z#{??N`???????????=!???r????p?O?x-m?-V??-tgV??????+??T??:A?_?z?@?0?x????,U -6??-)W8?(=?`K m?z???h??#M??g???????.w&,k?p?????9??;??_o?K ?^???z????`?(????#??~Lu?{???????GKr??s??y?????>??@d?b U???????5?? ?P?1????{?.?e???l????????4 ??b??De???f?C??FWV??b?Fd?5"?1??/- -3???oz?{?@Q ????)?tX?????eI????P?o>-8,?=?Z??j{io??b?l?Y|z?|??]$?m??????]hSH??w???????? -??;??x???endstream +x??Zmo#???_?? ?R9$? ???k????6I?|P}{>?>??t????jW/?&??+?????????33?z??????PF??Q????LF????PDY 9A??!O??? ??7 }? +??3????'??o?C?7??A{???s?$j???>??Q ???6g4?[v?????^P??}B???????????ug8???P????p.??p? + +??^M 4:T?q2A?1D`??\L?????0???.? + R??M(*? R?=D9iBf??!?t]!?X???b?YEb?d??????????!#q?9Tt b4?R?X???|??q?r0?D?h,?????#d$???f???TLR?aCP??1?F?|)???&%?u????r?e?um{????h????? +d3?J?YRb???$9?hx???? +??????*???R??l???J? +~???(?S???[p?=XE??,&??s;,0x,?}`???? +???^?W,(Q?? ++?X??????B?`?U??4?^|?mp??-??W??_?o?:??.>???_?-?? +????@a??y5??????;@ ??h= "??5????GJr?j*?L^?uv?????/H`?????l~]????f?????t???V???rv?^,k?\}3???N??R7?f??fo????s%?N~?+?L +?&????7????#UB?l?a6????nrm?hn??+0m????B,?????W??FC???M??~h??????fvu6??it???? +???A???u??_?/jO?r.?F?u?? +!??%?f?????k~?}B???????'MiB7?????l??*xW?8??#?l?a$? +??"B &?5?r?F?v8?? +*??r?m?4???Fr??vP???N??6w ?????x?{9?? s?p??P)??"?`?{??K?q?H:??????w???E?S@F%????%??AQ????j?I\?f?j??r???x??Y=??J??8??z?E?F2X?N?????#Y'X'??:G6H?e?O???J??V?aP%???(i|;J??G?a,??'?zH??? ???i??G???3r???P??i=???m??*??????u???????)??%CQ {??? +#?????[??|?l????l?w2?m??h ;?l??qA?^?M???4???,:???Q8???????_?i-*???@T???9`?9??'? '0+bL?? ?f?;??P?oc?;?;??l<8??9?}?????W,bE?B???|???Kz?????@?V)xko?,??????s???=(???=?cy?~@???'6%?X?? Rl????`@?T?A??^?m??dt?? ?#?dD1@???`?Hv?z6??????????3???c??16=?j??lq#Q?[?)??:D???C?{?6??k?Z??@R??^*x?t:J?G?!?????fB????HL}?R??zy(?????zT??Ab???O)?v???P???????L?&??g????i?????????G[`? ????3.8^:??w??/??_?M????????????w +" +5T????t??un[b???~4Mendstream endobj 302 0 obj -<< /Type /ObjStm /Length 2618 /Filter /FlateDecode /N 99 /First 900 >> +<< /Type /ObjStm /Length 2534 /Filter /FlateDecode /N 99 /First 900 >> stream -x??[???}?W??F`???%0 H??(?????lV?????????>??????wK=+? ??C?N]? -.g?cC??*&}??3??L ?l???b?r&K?? ??? -y| - ?t)A?????&b?n"??l???????+???z2?m?7^ -??`|b?a?s ?E????N?$????:??9?nZ1???9 cb?tv!?F??0?6????A??O?pL?)C4??b??vF??C?a? -(?c?????(%d at e1?:S?FD??? -)L#E'??D?B?????!??7??*??X???211mM,*???A%?&i????f??4? ?u?+??)???'6?@?B???0?\??????@????*??`L%$??`???)??k6???S\?X)?B:VJ????)?zY?at S?? -???oJ]Oh?#?-??@???z??1??!???/?z.??!VBC?A?D???? ,)~ ?#b?\????_0T???E??` *j -P??w???cx??K?E????I???_????z???V?:s^%??????f?_?????\?-_?.o???t??????-????|????^-wF?????????.Wm?}?5?O???????.???,~X????o?????K??z?? -??f?b?m\???]??#]??????<8[??u???????=_^i[??P???F]??????dT??????H?_??QU??Yb??l+Fo?j ????H?XT?b?j??`??&=?1?7??B???1P{???^?0(??w'?`v??????0A??*y ??????a?N??guW???]y??d&?#968????1?U??b? ?K?m.#?;?}LT?u?;???UM????j???J?????^?a???;4???6???/????,??W?v???7??%?????????????:VTN?h?? 3 ,p??rX[?i?1?????Q????-??P?H2}pzR/?]??{????;? ?@??Oh? V? ?pC$Z????]?0??; ???s???R??L@i?&?C??=(?t?????????d?`z#c?;??V3????????????????c????2?????,????_??q?????14T???G???Xi9?C+f?1?#?x?[??,# -?u-?w???j??Ol%??J???k?I~&5?o??????/[?X?R],?????r-?II???O??#k?>?Z??4??????lP??dz???E??A3y_%?e???{??'?^?tx??????p????{?Lce}P?????????Ax??D ?????v?????P%$7??I?~;??S0?Y??8-z)??K????O?"?????W?'??.?u?G?L??,????!??r*??L?GT?$?n??? -??z????XU?yS?? L?yw -??Bb?Z???!a?8??_??u???;{????rv?L?&???????,~Z??w??OW????????b?=?~?]??7?z??N????V$??z(????^?_??*??:vW????xry?????e??nUE?X??e\m?Xf????F?w???MD?G,?v?s????f????/????J????fu?h}}?D???j??(*n??P?????z??H*?x???x????h?G?????:=??'?!??fp?J????{?\????#L%B??!?T?H?a?S2???? -t?1eiLY?g/-S*?????QZ?_Z??1ni???=?4?a=[z??z??dL;??"?,??`?H??ZE???>D?"5 ?`,????P?#???_??????% P~@}A?s??7??O??1?7?????)g????A????E*??"????t?|3]v??2<|;]q"? ??????????????9????Ca??@}??m?#y[!FPC???????? +????????-?????0????????gWw?????m?}??Z??P?????o????%XL?`???_?/?O#?v?8?D?,?? ?0????)??QS??V?ItI?%????9H?@Px +H?l ?.X=?Hv?g?d???`?o1?ePq?~T1VU ?N?,ucN????*B?c???c?????v????]??????????>?$?>?J?@?SH?????{??R?2???V??(1?hI????6??L????????l1?????z}????f???.???by5E{?\?(,?l???9?\Fv5B???[???-B??H????)???'???d?(Oe?Y?I??u*????:??D"a?x??|qd%?F2???U?#????)t??S +?)???W? ?;?W8e?u?S@??,}???????\a??K7?D?r 90@ ?5d??E?/?!?[K/???G?,?m?-?-?6?? ??m:???13??:_lE???????l????W?OG??????M???S??L???S??????(?Bh?U?l<8+9????1KW$??(?Q?]??cI????? ?K?????r????)??d?'??????["???w`4?'?a?1?????@?#??F???"?????$??h??j?Z??Hd?????g?J??g?v???2[????^,?? +??r9?Y/??nT?????H?A(????Y????v?a??%?%?DL?]??a:?z;?????3????Q?O?W?r>? +.???m??v6????$?? +?1???W?5D?(?n?J?'K7L?g??W?J??Vz?????>6?)x??????OH?Cv?6"eo?????&[k?(ky?Oc??7W +?Q??|d??l?)??~ +6?G?M?yA?B[A/? +1??q3??P?"???j?G?19??G(5h?C????c}D ?Z?c???/??????fL?I?}?D?m?E??*?/??:?`??y?p????G?x?r???EJ?>A)??#?U?1"{=?ps??jwD?;??P??n?]*??-??t?n???? VY?Ht?H jW14??Z??a?2o?!b/?]??????G????? ??n?BA?(??Q?m????,`??)??h???endstream endobj 402 0 obj -<< /Type /ObjStm /Length 2739 /Filter /FlateDecode /N 99 /First 912 >> +<< /Type /ObjStm /Length 2728 /Filter /FlateDecode /N 99 /First 909 >> stream -x??[]o\I}?W?#?>0?A?AUH??y????I???')????C?B?VT???'\-x8?=J??P?? ????CI\TG? -p3????I??)?$?Z9?P???P?c%?T?` -U?8?,??I?z?.?V?Q&x(?I?=0F????,??\???M?C??J M?7??l???>??????????V%??\?H??B?y??^hz????4[Ka????h?0 -?oF???????pyF??Q 9????.)??!??c??S??:B/5????iG??"V?*?Y???? ]r. ??5reTt?? ?-?)x?,??????B?s?5??kXC??????g`?? ???,??6??j?7???6??*vXIi?%????T~??g???????7????)?????c????r???.'??;y ?????????????.?{????wp???$y??I??P??U?b?)????????????T[?lZ?AP?"5?`+?B??g??zH??Q R;?? ???l?0]?TOr.? -??!?h? -???rT??M>???m?x??*?5??RK?l{??tl?????P>??8K{\?[???????X???krAc?????d??8t?!?5?^"]f??c3????Llj ?)????'1}(?zq???C?%_}?Z?8K??,.??#?o???7 7< ?A[?E???6?????ki?[F$G$?R????m:?"???m:K?F?)??????3O/??>?SY????D????'?&?&???j????C1??c?0???(^[????????? -?JUC????.????JF?{???????~??S>M?e,?nB?E ??????CB????????c??m?<2?????b -?2?_g,???]7k??+J Author: kingaa Date: 2015-03-24 14:44:58 +0100 (Tue, 24 Mar 2015) New Revision: 1147 Modified: pkg/pomp/DESCRIPTION pkg/pomp/inst/CITATION Log: - update citation Modified: pkg/pomp/DESCRIPTION =================================================================== --- pkg/pomp/DESCRIPTION 2015-03-23 12:59:14 UTC (rev 1146) +++ pkg/pomp/DESCRIPTION 2015-03-24 13:44:58 UTC (rev 1147) @@ -1,8 +1,8 @@ Package: pomp Type: Package Title: Statistical Inference for Partially Observed Markov Processes -Version: 0.63-3 -Date: 2015-03-23 +Version: 0.63-4 +Date: 2015-03-24 Authors at R: c(person(given=c("Aaron","A."),family="King", role=c("aut","cre"),email="kingaa at umich.edu"), person(given=c("Edward","L."),family="Ionides",role=c("aut")), Modified: pkg/pomp/inst/CITATION =================================================================== --- pkg/pomp/inst/CITATION 2015-03-23 12:59:14 UTC (rev 1146) +++ pkg/pomp/inst/CITATION 2015-03-24 13:44:58 UTC (rev 1147) @@ -1,3 +1,6 @@ +year <- sub("-.*", "", meta$Date) +note <- sprintf("R package version %s", meta$Version) + citHeader("To cite the pomp package in publications use:") citEntry( @@ -2,3 +5,3 @@ entry="Manual", - title="pomp: Statistical inference for partially observed Markov processes (R package)", + title="{pomp}: {S}tatistical Inference for Partially Observed {M}arkov Processes", author=personList( @@ -16,13 +19,12 @@ as.person("Helen Wearing"), as.person("Simon N. Wood") ), - year=2014, - url="http://pomp.r-forge.r-rproject.org", - textVersion=paste( - "A. A. King, E. L. Ionides, C. M. Bret\\'o, S. P. Ellner, M. J. Ferrari, B. E. Kendall, M. Lavine, D. Nguyen, D. C. Reuman, H. Wearing, and S. N. Wood", - "pomp: Statistical inference for partially observed Markov processes (R package)", - "http://pomp.r-forge.r-project.org" - ) - ) - -citFooter("As pomp is continually evolving, you may want to cite its version number. Find it with 'help(package=pomp)'.") + year=year, + note=note, + url=meta$URL, + textVersion=paste0( + "A. A. King, E. L. Ionides, C. M. Breto, S. P. Ellner, M. J. Ferrari, B. E. Kendall, M. Lavine, D. Nguyen, D. C. Reuman, H. Wearing, and S. N. Wood"," (",year,") ", + "pomp: Statistical Inference for Partially Observed Markov Processes (R package). ", + meta$URL + ) + ) From noreply at r-forge.r-project.org Tue Mar 24 15:19:19 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Tue, 24 Mar 2015 15:19:19 +0100 (CET) Subject: [Pomp-commits] r1148 - www/vignettes Message-ID: <20150324141919.76FF8186E77@r-forge.r-project.org> Author: kingaa Date: 2015-03-24 15:19:18 +0100 (Tue, 24 Mar 2015) New Revision: 1148 Modified: www/vignettes/pomp.pdf www/vignettes/pompjss.R www/vignettes/pompjss.Rnw www/vignettes/pompjss.bib www/vignettes/pompjss.pdf Log: - update vignette Modified: www/vignettes/pomp.pdf =================================================================== --- www/vignettes/pomp.pdf 2015-03-24 13:44:58 UTC (rev 1147) +++ www/vignettes/pomp.pdf 2015-03-24 14:19:18 UTC (rev 1148) @@ -10,7 +10,8 @@ ???@ -? ????? !?W?O ?p????,??????????1???7G?6SsU??Q|???9X?? _v|?|??=a|Mc|??l??6???Pt?(??m???e?\??? k!y?? ?^??E?????c????Fj?>??\??g?9?zH|??Zs?Z3??pM?????&????G?]?\_??M?6????5X-c????>9V?7?x?1?y?"k?}?????????5Y?a?lU?????-?????????????c?#?c?&??s,?U??s,??<6??X?cy???%???????[g x?|8Y,???g#??i:?U?WK?\?????jA??, &???tJ?_P????? S+????????h?Xnm?N;8?)???O[l ????g??X? Bh???????????FU???]?????\v??'b{?}??P?vk????@?H???UwCPf P? *??T??J7??????"??S0Y1Wm8?n???M?- ?km?:?v???????M??<5\'s???f???t?FH?d?f?f*e]??h?Y?? @@ -31,7 +32,7 @@ :???eQv?Y]?}?n.5ZV??r??9?eQv?Y]?}?n.5ZV??r??9> @@ -40,12 +41,12 @@ - -2015-03-23T08:58:17-04:00 -2015-03-23T08:58:17-04:00 + +2015-03-24T10:07:19-04:00 +2015-03-24T10:07:19-04:00 Raph Levien - -Inconsolata + +Inconsolata @@ -587,20 +588,19 @@ ??B,??4?,:?/????`??{?@???j?7?!??+?n?x???W?Qendstream endobj 1014 0 obj -<< /Filter /FlateDecode /Length 1357 >> +<< /Filter /FlateDecode /Length 1358 >> stream -x??W???6????[?"????*??iSi4??}?(%?^%???r???wH????-??Kr8?3g?OA?I????j77?y??& -N?ObO???j???" h???????qWI@???i?0ey?o7???-?p?W?IlC??u???e???s??q?Bp???8?cSV!?qNr?;???\U?p?)pQ?????3?hDR?* ? ????,?,M??0???9W?m??=B??s -?=?b)@Y??H (?|k???????P9"Q???Y?????>??????7c?,C???P??<|$EG??b??j?4????R ??D???/7h~t?Is$? ? }?~?d%?z?Z??+6w???-L?)CB?Zvk??9&??E@?8???O?{?%??%?h?AVd???p!???????!%?s??????i?y???MRXR?/??n???8-?$-p?17???ssc??U? -?i???? 6?Q??Q -,l.?????Q??$ ???4!&>z)t??~0 -y?]?`j2????V ????&???????l???G?~"?H??????-? ?{n&??}????uh i1??S? -???(???A??????+P*?=??M???h????E??? ?E=?7!8% ?????????Rc??n?? h??^??}?3????^?a-t\`Z?>?)TO?(:)??????P?y??j't?A?? -t45C?lQ%???1??e?V4A??????Vk??BqWW??kb?h"??ov C?n?e??P)??_ at G?Z?2?0? hPg?? ??J?^??????{]?g??|w.?`?????A??7r???g???Uh&?<%)???Y1?~M??2 -?w??n??H??????????`^??K?2(?*@s????F"??3[M??}??jyg=??Q?\??F?u?G?4??@???d???9?????3???v @9?N(`???:'??P????d VT@???>CW??????0GH\???n?C}s>???v*??`L2t???P??H!K??? ???a? ?:5?? -? ??,G??8? -?Mx?>uK7J>k??9H?,e3g?R??]???:S????S_?p??? 5~?S??????5?????z?Y???>Aj|???????x211?=?^a??^M??Y"0{????x?yNj???&???/P???E??u??f0????????H?^?????????6??#?M???j? ??" Q???????M?R?r0~? ??|?i?F1d??w? +)???+?????O??? +?h???Zyx?p;??)??<`I?Y????}?????;??6??A?N?-?$C?Vd?c8p??\?}W?G?Y0Fq????^JS???mC?b?0Lm??V????^?g?D??1??Z? +?????MdH??;??????Uy/?d?c????M:?B????????9?sd.???y>???(?N???&j?A??n??D?<?? ?d =???FFxo??w???c??n; +?`{-??k????~?tJ?k???<#?B?????}U?[5??V?fB?;UCG+?0???? ?/s.:P6gEz?????z?Z????????Yp??GI~?[??9?w??(???J????:"???b??Y@?>?5????????=?@???sf??w??f1??)??L+?h[u?i?^?v??S?9????????+???.??f??2?wR???gu?P???eP???o?fnu??@??~??0M9???5]? ?6??T??2??G???b7r?SF? ??4??/V??G;> @@ -906,21 +906,25 @@ stream x??Z?s?6??????-??@`w??&{???n[??!?M?[?TI*???} ????Jr?H????>??"??"???o????g?.???xq???????Sn?^C??E????wW8tG?????=?t?-??Q?????J???n?+????jy?+?c????46????P??gA?Ug???b? ???????m1??J????h??q??F????wO9????????b+?G*5,?zS? ???/?a?'???a?v????[?O????Psk"?X,?f????(U6?N??????w????t?`uRtm??2MA3??a?y ??1?,g??v=wX3l?:\Bw?kU??_???????>?;??~~?o?R????9?M??m????x??Ne? ?"?,%,;OE???aW???#??R\5C?o????a -??????+?)??+?a????=?P????}??????&???=?%??v??7n ?&10E??9? 3?P??<?<D?????????0????? -UE??LFU?9?`??e?? ??~??+9\?kv??y?CL?% -E????6??T??(?4=?l.??u???j?PQ?(???I#u?^??????&yIav????V?b,7??4~???%?I??N|???????H?p?????xP -8d???&??x)???????4?o???~[?3,g=??h2c??Lfl?gO?e??.?g???8?iC???.?M??R??}M??B???b???K??2???L??{??+?p!\3?p%?ira?M????"???P??*?A?O?3?7?zF???n?p??:?FG?)???7?d?'95?9???W??&???1??fq???J-b?U????X??]??'?3?G?W6??????t?c??i??1?????)?`?m?yx???n?v?? ?^EY7?+J?6???u?E????SM?L?*???K;yp???)9'?K?R??????w??Z??>l???0m?x?^ I?????G?_??`?M??pu????N`y???+??Z ??M=?0???oh?mp?2c?H????Q??M?_?S??vo??$?? ?y?~?wVHr?R?xI???BTN?~?????A/?????-kb????85????.????*RS`UxE?*%????C1}pvD???#??-:?Z?w?f?????jvs2q?w??8????C]?^??l?Z????0Rs?/?@?????Y???g vu??r?V' -?I"p??-r??_?????????u??x?>???$???0????R_??(:?Ap0?'A@???????0???K?? s?????w;%??8Iy!?QR?@???/?/O"?c?!s??=e2?]?6?K?endstream +??????+?)??+?a????=?P????}??????&???=?%??v??7n ?&10E??9?lg?2???RWr????(' ??????K?B +?q?m.??T?Q iz??\x??{??MO??????}??v???????P?? @?F?`?b?-???L?,????}w[???Xn??i??A?K???????sq??????y?-??p??s Mj??R??}1a?i(??????hgX?"z`A?d??s??????????] ?LG?q???>?c < +\ %???????z????7?????ejw?????H?W?B?6f??J0??"?????T?}?Y}e#?g.???????S?6??v???9?;??(??a???Nw6A??~?C???m?????P?S8????=?9?MgW3?x$?>????Y????? ??AGG???????] ?????4b0?&^?8??D???_?Q???*???b?p??9C&g9&?M????]?N?&????g?Q????~???????3?8g?.T??D?3?x?/?-@NQ(?d?[?a4?]?o?-.p?@qK?D ep.A<.J? +???%???b??KR:?3??A???p??Ow_?y????o???n??4mVQ???L?j??U??@??*??L]?a?r^j??W???4v?zy??^???S???K`I????51????i v?]???????a7?i??K]g?,?3:](M7 +???q?}???h??~WC?>?}ElJ???4???3?[????0.?n;*??jb?\J??R??"??????U???d?????????|??UG???2}d#!?za. +?7?????Ze?~???mE +????????7???0?I?!??\/???????&??9??$0S???,???-?T?O| +r???k??4W??oo+$????Mmz??G\??2(?? T???#??&N?o1t?2??*??w?c_??=?y?W3?,???F?? +I0=??e??+L?F_??$???????JOI??P?Y?f??M,??`??)n???~R~? +?q?|&x/?????k??_.?u????}K??Z?$J??o?????;?r?%q?0?Ad????????$9?n??@?c&> @@ -2603,14 +2607,11 @@ %??{?P???endstream endobj 1091 0 obj -<< /Type /XRef /Length 435 /Filter /FlateDecode /DecodeParms << /Columns 5 /Predictor 12 >> /W [ 1 3 1 ] /Info 3 0 R /Root 2 0 R /Size 1092 /ID [<213d0053ec1e0a53c3006db272349d0d>] >> +<< /Type /XRef /Length 436 /Filter /FlateDecode /DecodeParms << /Columns 5 /Predictor 12 >> /W [ 1 3 1 ] /Info 3 0 R /Root 2 0 R /Size 1092 /ID [<1654c5e3a24271b3b3682c1ec6893f4a><0c9132f9484649268e66406e7f421aef>] >> stream -x???=(Eq??}/?z_???P)e %?????z? H?G!???b?0 ?2I)? ??[?F??????x???t???s????>?%??mY.|??J?F6R?V?q???:X#?/;?? }C???i?Fa??6*??D?o????.x??dBh7 -???4f? -??=_?n)??8?t;??Sj??'0" ~/?Sf??3????}X?U?JPF??)a;???3s??d?????+aF?]T?? ???5S?????n??????69e?p?0? -]?I?'z?FB-??????=???-???x;?J??f?P/???<y??I?W#?]y?N??$?d? +x???M(DQ???? Author: kingaa Date: 2015-03-24 17:24:30 +0100 (Tue, 24 Mar 2015) New Revision: 1149 Modified: pkg/pomp/inst/CITATION Log: - improve citation Modified: pkg/pomp/inst/CITATION =================================================================== --- pkg/pomp/inst/CITATION 2015-03-24 14:19:18 UTC (rev 1148) +++ pkg/pomp/inst/CITATION 2015-03-24 16:24:30 UTC (rev 1149) @@ -1,5 +1,5 @@ year <- sub("-.*", "", meta$Date) -note <- sprintf("R package version %s", meta$Version) +note <- sprintf("R package, version %s", meta$Version) citHeader("To cite the pomp package in publications use:") @@ -24,7 +24,7 @@ url=meta$URL, textVersion=paste0( "A. A. King, E. L. Ionides, C. M. Breto, S. P. Ellner, M. J. Ferrari, B. E. Kendall, M. Lavine, D. Nguyen, D. C. Reuman, H. Wearing, and S. N. Wood"," (",year,") ", - "pomp: Statistical Inference for Partially Observed Markov Processes (R package). ", - meta$URL + "pomp: Statistical Inference for Partially Observed Markov Processes ", + note,". ",meta$URL ) ) From noreply at r-forge.r-project.org Tue Mar 24 20:32:51 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Tue, 24 Mar 2015 20:32:51 +0100 (CET) Subject: [Pomp-commits] r1150 - www/vignettes Message-ID: <20150324193251.B2AD11877E8@r-forge.r-project.org> Author: kingaa Date: 2015-03-24 20:32:50 +0100 (Tue, 24 Mar 2015) New Revision: 1150 Modified: www/vignettes/pomp.pdf www/vignettes/pompjss.R www/vignettes/pompjss.Rnw www/vignettes/pompjss.bib www/vignettes/pompjss.pdf Log: - small fixes Modified: www/vignettes/pomp.pdf =================================================================== --- www/vignettes/pomp.pdf 2015-03-24 16:24:30 UTC (rev 1149) +++ www/vignettes/pomp.pdf 2015-03-24 19:32:50 UTC (rev 1150) @@ -11,7 +11,7 @@ -? ????? !?W?O ?p????,??????????1???7G?6SsU??Q|???9X?? _v|?|??=a|Mc|??l??6???Pt?(??m???e?\??? k!y?? ?^??E?????c????Fj?>??\??g?9?zH|??Zs?Z3??pM?????&????G?]?\_??M?6????5X-c????>9V?7?x?1?y?"k?}?????????5Y?a?lU?????-?????????????c?#?c?&??s,?U??s,??<6??X?cy???%???????[g x?|8Y,???g#??i:?U?WK?\?????jA??, &???tJ?_P????? S+????????h?Xnm?N;8?)???O[l ????g??X? Bh???????????FU???]?????\v??'b{?}??P?vk????@?H???UwCPf P? *??T??J7??????"??S0Y1Wm8?n???M?- ?km?:?v???????M??<5\'s???f???t?FH?d?f?f*e]??h?Y?? @@ -32,7 +32,7 @@ :???eQv?Y]?}?n.5ZV??r??9?eQv?Y]?}?n.5ZV??r??9> @@ -41,12 +41,12 @@ - -2015-03-24T10:07:19-04:00 -2015-03-24T10:07:19-04:00 + +2015-03-24T15:20:55-04:00 +2015-03-24T15:20:55-04:00 Raph Levien - -Inconsolata + +Inconsolata @@ -2607,7 +2607,7 @@ %??{?P???endstream endobj 1091 0 obj -<< /Type /XRef /Length 436 /Filter /FlateDecode /DecodeParms << /Columns 5 /Predictor 12 >> /W [ 1 3 1 ] /Info 3 0 R /Root 2 0 R /Size 1092 /ID [<1654c5e3a24271b3b3682c1ec6893f4a><0c9132f9484649268e66406e7f421aef>] >> +<< /Type /XRef /Length 436 /Filter /FlateDecode /DecodeParms << /Columns 5 /Predictor 12 >> /W [ 1 3 1 ] /Info 3 0 R /Root 2 0 R /Size 1092 /ID [<25a48ba635e277ad025f5ef26ba3c7f2><6bf50825d4ac84ee13149a7cf8900a7e>] >> stream x???M(DQ????="0.62-5") +stopifnot(packageVersion("pomp")>="0.63-4") ## ----set-opts,include=F,cache=F------------------------------------------ @@ -58,6 +58,7 @@ ## ----set-seed,cache=F,include=F------------------------------------------ set.seed(5384959L) +options(cores=10) ## ----bake,include=FALSE,cache=FALSE-------------------------------------- @@ -271,7 +272,7 @@ require(doMC) require(foreach) - registerDoMC(10) + registerDoMC() save.seed <- .Random.seed set.seed(334388458L,kind="L'Ecuyer") @@ -399,7 +400,7 @@ tic <- Sys.time() require(doMC) require(foreach) - registerDoMC(5) + registerDoMC() save.seed <- .Random.seed set.seed(334388458L,kind="L'Ecuyer") @@ -427,11 +428,11 @@ rm(pmcmc1,save.seed,tic,toc) }) -## ----pmcmc-diagnostics,results="hide",fig.show="hide",echo=F,eval=F------ -## gelman.diag(pmcmc.traces) -## gelman.plot(pmcmc.traces) -## autocorr.plot(pmcmc.traces[[1]]) -## hist(rle(unlist(pmcmc.traces[,"r"]))$length) +## ----pmcmc-diagnostics,results="hide",fig.show="hide",echo=F,eval=T------ +gelman.diag(pmcmc.traces) +gelman.plot(pmcmc.traces) +autocorr.plot(pmcmc.traces[[1]]) +hist(rle(unlist(pmcmc.traces[,"r"]))$length) ## ----pmcmc-plot,echo=F,eval=T,results="hide",cache=TRUE------------------ op <- par(mar=c(4,3.5,0,1),mfcol=c(3,2),mgp=c(2.5,1,0),cex.axis=1.5,cex.lab=2) @@ -568,7 +569,7 @@ require(magrittr) require(foreach) require(doMC) - registerDoMC(10) + registerDoMC() rbind(guess=guess, truth=coef(ricker), @@ -644,7 +645,7 @@ tic <- Sys.time() require(doMC) require(foreach) - registerDoMC(5) + registerDoMC() save.seed <- .Random.seed set.seed(334388458L,kind="L'Ecuyer") @@ -668,11 +669,11 @@ abc.traces <- conv.rec(abc1,c("r","sigma","tau")) abc.traces <- window(abc.traces,start=2000001,thin=400) ess.abc <- effectiveSize(abc.traces) -rm(abc1,save.seed,tic,toc) +rm(abc1,save.seed,tic,toc) }) -## ----abc-diagnostics,results="hide",fig.show="hide",echo=F--------------- +## ----abc-diagnostics,results="hide",fig.show="hide",echo=FALSE,eval=TRUE---- gelman.diag(abc.traces) gelman.plot(abc.traces) autocorr.plot(abc.traces[[1]]) @@ -728,7 +729,7 @@ bake("nlf-mif-compare.rda",{ require(doMC) require(foreach) - registerDoMC(10) + registerDoMC() save.seed <- .Random.seed set.seed(816326853L,kind="L'Ecuyer") Modified: www/vignettes/pompjss.Rnw =================================================================== --- www/vignettes/pompjss.Rnw 2015-03-24 16:24:30 UTC (rev 1149) +++ www/vignettes/pompjss.Rnw 2015-03-24 19:32:50 UTC (rev 1150) @@ -122,9 +122,6 @@ %% Telephone: +43/512/507-7103 %% Fax: +43/512/507-2851 -%% for those who use Sweave please include the following line (with % symbols): -%% need no \usepackage{Sweave.sty} -%% publication information %% NOTE: Typically, this can be left commented and will be filled out by the technical editor %% \Volume{50} %% \Issue{9} @@ -148,7 +145,7 @@ require(reshape2) require(xtable) -stopifnot(packageVersion("pomp")>="0.62-5") +stopifnot(packageVersion("pomp")>="0.63-4") <>= options( @@ -193,6 +190,7 @@ <>= set.seed(5384959L) +options(cores=10) <>= bake <- function (file, expr) { @@ -231,7 +229,7 @@ In particular, when linear, Gaussian approximations are adequate for one's purposes, or when the latent process takes values in a small, discrete set, methods that exploit these additional assumptions to advantage, such as the extended and ensemble Kalman filter methods or exact hidden-Markov-model methods, are available, but not yet as part of \pkg{pomp}. It is the class of nonlinear, non-Gaussian POMP models with large state spaces upon which \pkg{pomp} is focused. -A POMP model may be characterized by the transition density for the Markov process and the measurement density\footnote{We use the term ``density'' in this article encompass both the continuous and discrete cases. +A POMP model may be characterized by the transition density for the Markov process and the measurement density\footnote{We use the term ``density'' in this article encompass both the continuous and discrete cases. Thus, in the latter case, i.e., when state variables and/or measured quantities are discrete, one could replace ``probability density function'' with ``probability mass function''.}. However, some methods require only simulation from the transition density whereas others require evaluation of this density. Still other methods may not work with the model itself but with an approximation, such as a linearization. @@ -547,7 +545,7 @@ In \cref{alg:pfilter:systematic} of \cref{alg:pfilter}, systematic resampling (\cref{alg:systematic}) is used in preference to multinomial resampling. \Cref{alg:systematic} reduces Monte~Carlo variability while resampling with the proper marginal probability. In particular, if all the particle weights are equal then \cref{alg:systematic} has the appropriate behavior of leaving the particles unchanged. -As pointed out by \citep{douc05}, stratified resampling performs better than multinomial sampling and \cref{alg:systematic} is in practice comparable in performance to stratified resampling and somewhat faster. +As pointed out by \citep{douc05}, stratified resampling performs better than multinomial sampling and \cref{alg:systematic} is in practice comparable in performance to stratified resampling and somewhat faster. \pagebreak @@ -623,7 +621,7 @@ \item It preserves the plug-and-play property, inherited from the particle filter. \end{enumerate} Iterated filtering is implemented in the \code{mif} function. -By default, \code{mif} carries out the procedure of \citet{ionides06}. +By default, \code{mif} carries out the procedure of \citet{ionides06}. The improved iterated filtering algorithm (IF2) of \citet{ionides15} has shown promise. A limited version of IF2 is available via the \code{method="mif2"} option; a full version of this algorithm will be released soon. @@ -1210,7 +1208,7 @@ require(doMC) require(foreach) - registerDoMC(10) + registerDoMC() save.seed <- .Random.seed set.seed(334388458L,kind="L'Ecuyer") @@ -1315,7 +1313,7 @@ The first three columns show the estimated values of the three parameters. The next two columns show the log likelihood, $\loglikMC$, estimated by SMC (\cref{alg:pfilter}) and its standard error, respectively. The exact log likelihood, $\ell$, is shown in the rightmost column. - An ideal likelihood-ratio $95\%$ confidence set, not usually computationally available, includes all parameters having likelihood within \code{qchisq(0.95,df=3)/2 = 3.91} of the exact MLE. + An ideal likelihood-ratio $95\%$ confidence set, not usually computationally available, includes all parameters having likelihood within \code{qchisq(0.95,df=3)/2 = 3.91} of the exact MLE. We see that both the \code{mif} MLE and the truth are in this set. In this example, the \code{mif} MLE is close to the exact MLE, so it is reasonable to expect that profile likelihood confidence intervals and likelihood ratio tests constructed using the \code{mif} MLE have statistical properties similar to those based on the exact MLE. \label{tab:gompertz-multi-mif-table} @@ -1366,7 +1364,7 @@ tic <- Sys.time() require(doMC) require(foreach) - registerDoMC(5) + registerDoMC() save.seed <- .Random.seed set.seed(334388458L,kind="L'Ecuyer") @@ -1391,7 +1389,7 @@ ess.pmcmc <- effectiveSize(pmcmc.traces) rm(pmcmc1,save.seed,tic,toc) }) -<>= +<>= gelman.diag(pmcmc.traces) gelman.plot(pmcmc.traces) autocorr.plot(pmcmc.traces[[1]]) @@ -1624,7 +1622,7 @@ require(magrittr) require(foreach) require(doMC) - registerDoMC(10) + registerDoMC() rbind(guess=guess, truth=coef(ricker), @@ -1711,7 +1709,7 @@ tic <- Sys.time() require(doMC) require(foreach) - registerDoMC(5) + registerDoMC() save.seed <- .Random.seed set.seed(334388458L,kind="L'Ecuyer") @@ -1733,10 +1731,10 @@ abc.traces <- conv.rec(abc1,c("r","sigma","tau")) abc.traces <- window(abc.traces,start=2000001,thin=400) ess.abc <- effectiveSize(abc.traces) -rm(abc1,save.seed,tic,toc) +rm(abc1,save.seed,tic,toc) }) -<>= +<>= gelman.diag(abc.traces) gelman.plot(abc.traces) autocorr.plot(abc.traces[[1]]) @@ -1832,7 +1830,7 @@ bake("nlf-mif-compare.rda",{ require(doMC) require(foreach) - registerDoMC(10) + registerDoMC() save.seed <- .Random.seed set.seed(816326853L,kind="L'Ecuyer") @@ -2037,12 +2035,12 @@ \prob{\dlta{\cp{R}{\BirthDeath}(t)}\myequals 1 \given S(t), I(t), R(t)} &= \mu\,R(t)\,h+o(h), \end{aligned} \end{equation} -together with statement that all events of the form +together with statement that all events of the form \begin{equation*} - \{\dlta{\cp{A}{B}(t)}\,{>}\, 1\} \qquad \text{and} \qquad \{\dlta{\cp{A}{B}(t)}\myequals 1,\dlta{\cp{C}{D}(t)}\myequals 1\} + \{\dlta{\cp{A}{B}(t)}\,{>}\, 1\} \qquad \text{and} \qquad \{\dlta{\cp{A}{B}(t)}\myequals 1,\dlta{\cp{C}{D}(t)}\myequals 1\} \end{equation*} for $A$, $B$, $C$, $D$ with $(A,B)\neq (C,D)$ have probability $o(h)$. -The counting processes are coupled to the state variables \citep{breto11} via the following identities +The counting processes are coupled to the state variables \citep{breto11} via the following identities \begin{equation}\label{eq:sir-cp-bal} \begin{aligned} \dlta{S}(t) &= \dlta{\cp{\BirthDeath}{S}}(t)-\dlta{\cp{S}{I}}(t)-\dlta{\cp{S}{\BirthDeath}}(t),\\ Modified: www/vignettes/pompjss.bib =================================================================== --- www/vignettes/pompjss.bib 2015-03-24 16:24:30 UTC (rev 1149) +++ www/vignettes/pompjss.bib 2015-03-24 19:32:50 UTC (rev 1150) @@ -56,7 +56,7 @@ } @Article{andrieu10, - Title = {Particle {M}arkov Chain {M}onte {C}arlo}, + Title = {Particle {M}arkov Chain {M}onte {C}arlo Methods}, Author = {Andrieu, Christophe and Doucet, Arnaud and Holenstein, Roman}, Journal = JRSSB, Year = {2010}, Modified: www/vignettes/pompjss.pdf =================================================================== --- www/vignettes/pompjss.pdf 2015-03-24 16:24:30 UTC (rev 1149) +++ www/vignettes/pompjss.pdf 2015-03-24 19:32:50 UTC (rev 1150) @@ -3210,260 +3210,278 @@ /Height 900 /BitsPerComponent 8 /ColorSpace /DeviceGray -/Length 47112 +/Length 46531 /Filter /FlateDecode >> stream -x?????D?s?JT,(6????bE?D???"?????Q?`??{E??????"E?J?w????d????l9.????\2If??????[4?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B????4fKBH?0:{?%!??N!??N!??N!??N!??N!?????k?N??X??????: ?{??9_8??????k?R?A??W??7?o????? J?O{?????[??],w8a??Y????q"u?>iA???_???C??z?? -??^.???%??1??4??b`?????iER/7=?????y?vBQ??Mg[?}??.?????\g???%??3kU???q?????~z??BT?5?]? -m??')???5 ??5???`?v?U?G?????BcyFM???n8??o?Y[?Q,??Z??Xf????????l???????????7??zo?i?;???G??}????{???U}???????:Vm?x?u?-;N???????????J????n} 0??8????~???B???9?0?.?j????^}~lm?>??M5?zG??w??v????A_??X????e???~?X?L_5??G??'????U?W>???????;?k?|///!$O?`??????Vm??XK?j?l ??m??????'?V???m?????1?:V_Y??l????????L??^?^g???GE????2i?v??E?C>1?J?Y?}???????w?c? (k?t??@mo????????`?M???0i??????C?7??????U??????^?????-?????C#?K??? ??N??{?m????????? K?kv4??N???;#Z???j?q??^N:3}a?q??????#?BH~R?6&?'9???Y?/Ha???o???'M??%?_?:A?????? ?e%??;?????S??????I?? ??????U?o=??/#??????)k{?x\?/?yU !?N\??X`??,?~6????=?1????ml?e?#W??-?O??N?t? ??=??O??g5?E%??={?8=????Lk????? -c ?? cHf???}S?e??Hc?\}???J??x??"?7H?c???????{??B?6???6*???J{??[??8zn!??\C?????????=?mq????z??aF???????Q?5|Om7z?=bkk] -({??B???JX??w???x??i??K?Z?????2???O????}b$??U???O0???s` -j;!?X??SO???e??Z???a???/????9sn??Bom?r??vB1???N???????Yq????/?a???F??Nw????i???vB???9N??m???];h?U0Wu????S?S?6???+-?SvW"q???W???N!???'>??Whm???5???A?L??#?zpl5??????vfm? -o?;?n????)?dYr??=S???c?4??????1???yq !y?6???k????d ????i?O~????n?;??3??? m????qQ???{7q?t??S?+[>?????X??[??,???G?? -B???c??2????B*???1K??WLm'??????:?& -??I?;?vB???6)qW?f?????1?3LM?? ? /1???:?vB?,?_? - g??????Sj;!?D?mg??????Q? !????K????<?Cm'??J????ez??| ??B*???n{??%???????u??!?vB!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?BH???a?B|???_B!?DO??E#??\????B?db4??a?:B??NR? !??Nm'?j;??B???vB??B??B???N!?vj;!?P????Bm??B??B???vB??S? !??Nm'?j;??B???B???Bm??????????Nm'9F????@???v?[?te+j;????=? -??Nm'?????vC4m[q??`c???vm?R?[?(??Lm'??i?M?-???l Bm??R?IN0"m????A??Z;j;? >z????1?]?]Am'??W?%??L?x6??k?,j;?~?&?????i?S?I.0 -8Y?????A????o??W??$?????o7?1??R????? ?_?y???A???v?#?{????1???Nr?j?o^fkj;??? -????>`kj;???? m/???5???Nr???F??#? [?P???$78X*????5???Nr???9??>?*???S?Inp -0U?mT?9???Nr?.??o}?^?j;??D?K?/???r?9??P???$'?x__X ?asj;?????W?#f!?vj;?>????_??lBm?????Q`???-???A???v?< ?>?esj;???o7? /??9???Nr?O??????????Nm'9????p'?,??P???$'? ??/???? ?vj;? ?N?.?`sj;??? ??????D6??S?IN?5p<0#????w??P???d?S??/??vm?Pq??P???d3S ?6???@I???|?F%?vj;??l%?????T,?N??=D???U ???N6/;??R -????Y???\?V%?vj;???????i?6Rj?wlUBm???????bcqpHz?.??^???J???v?Yi?6???lo`????lVBm???????/???Kz????Lf?j;??lV??????U?!0??=????Nm'???g???H??Rm5p?6 ???J???vk?{7?\?c,> -??V]ji}??????Nm??!???7o?x?X|x"??n???+?}????Nm?{?_???7?A?X???V]????c??????Nm??X=y?f?'??????SkC?@? -`A[?P????<"??N??Y?%???x^?d&%?V???K?vlYBm??{3[h?S?y??;IW?S???T5?H_???%?vj?'{J???y??g???????t?Lt?Ug?j;????????7???3[k??????}L???IlZBm?????' ??n,n/?Z?5????????%?vj?????/???Ef??o???R???mc???6??P???????? -x?f?????b?x??H???k???k?Nl[Bm???3?????k?V???@??+jXn?6<??j;??J -??;m?+???QX4????rMg oX???????Nmw?8`]?%???{??col????rM??#??v[?P???j??6U??y?f?m?????|?? ? uir?I?s?.??S???\?}\??7k? -lJ?? ?J???+????GeM????Nmw??h?? -???7k?V%V^?Z?Y?\?j?? -6/??GS?w?????f?:????|eX?z?????? -c??lr8? ?2x8???/????y ?=??~,L?l????????y?f???+w/?Z? ??y??|{?/??GR???j;2???Q?nm}??P%????rd?;u?t??? k&??=???6?@????????7?_??I? ???v>0?wo??f:?X???]???;?O -B??Q???f???2???X???L??Y??k???o/9r??.z?{??I?j{????a0?*??D?sb?`Eq???N?'??mE??{??M???c??R?gp??g??Y$o??'??*?? ???J??? =X]C??????7[ 4OU????????r{??Y ?F?U?? ????r??b -???\????? ?[?????G+-????? -?7??????$O?];?&T???????vsFg=g???7p?6?< -??Xi,???9)?X??]?M??[??Br??um?ns??)?4?jJ`:????3?j?fd???M&_:,?z?N:?J>??*?v???ps???????f?????? -? ?-???](=??5m_ ?????Ym?5?A?r4????o??V?'6?gk?+?W?G???&ak}???qa???P?+??r????T???n???r??? ?mP?Z?_ ??\ |`^O%??x???c?d??Bm???o!:y -?????&??;???'??U????Z??T??????k???)?8?????A?=??.??????9iU??&?Hs???????????EF??d??U??NR ??6?????u??c?p`??P?#??{?Z????V????,>N?F????]?e??VwY???`???Q?a??$?>?[Y?X????4?P?7+???]DiZ????L??Y?{?????y?????j{???l?????????0???p???OJ?^???b?4'??T?N????"{????????;?A?=??????x ?e}?E?????Mn?y???92??)? k??vG?K?3E3?6????????N -?Y<?????1?O???k? -?H??????!?l?o+[b???2???@?d=?@os?m??}?????gaMh??m????R?Z?v?%$h">?.??P????????[?{pJ????i/???[#?????T?B???x?#W?*??????m?-QVO??????U*,ZP{?=Z??(0??\tE?H???I??=???e';??U???\?Xn???GSEsCL?????Oj????????n??? j??=?2???GO?_???_??????"{?H??+6{::u?J -?+?f?w???+?y???V?T{H???Ogw???0?^6[???h\?g?{4=^????????s???(kH? -?cjsQb?????A????z=???P??????n??8:???\?????]`c?H\??c??5?? -??I ??Ig/???hl?k}???? ??1T??z??????X&??^??}?g(??b?? F??V???0??? ?????o`]S?0??? -?_???xD?????z????*`?P?????z?g.UB??U??y?$=]???-??l??D7?6?s0??{?]????5fo??????Y& ??s^?c???^Z?X?????KS?A ???i{???{??|?,`Um?r??skkQg?2???Q?? -???64?????.????r??6???????_?;? -??????7?????Nm?2????? ?k??=??n?a???xo?4 -?J?I?]e?? ??3??L`J???P??~V?T?p?w?a*???+(*s??K??*k{[`??????BW?????`?cd}0?`1pr?????????q??`6?3???2/},>?"?;S?????k?? ?m_J?!??(i?1>???}0U??????'?????????k?????M^???DE?e^?9?O??;M_?5?pw???A?!??(i?>?w?x??|[???=?%?.2???\?{?g?????x$?3?Zl???*?Ezok???!}???& ???Bm????M??w???????Ft? -p?C??#?????U|?S??w?7?)8d??F???ll??? -?9???P?S??E,,???vMs?y?C??????N|o?q|????x??1D?'?F?\'Bm????X`?-?C0#|??d)?06~?#P?uU???X +x?????????K???b?X ??]??b?TT?@???E?0PDD?TP@?N???{??????????????w?????gN?B?!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!$/??A!9b?"!??N!??N!??N!??N!??N!????5+&???C3??0??7?????kf@???~??????%?9?}??????^N?-??)?{?h?\?%?????c?7?????:??d??E?:????/??B?8f?I7??k?K????!??>0???m?K???;Y?=?RV?y???N?}??Nvmo8?vBQ`??=?????95sYS??~h???M??q?cWY?*>?(??D???kk???1??B? +??co?H???XE???}?k???e??*?S???BT84>r{??? sh??????_??????h?k?c?9?~?c??????mbL????m???]`??e9uV\???41j?kb?I? !$??-G?k}??W??b??k?????>??????(9T~?~uZ?g?L?{?^VA_KY7?Vf?F???5???????f??9?????????[?#4???bk?????mf??????qUmg>x???W?e?l??y??n??6?-???c?e?6]???^F6?L???O?Mdv??%??/????? +{Y4?p4?%yB s{?!??u7mO~??0?e?X????MM?6 ??^??M??B?????Hl?e???n??a?????I??%bq??????q?m'?[???%??3L?c????c[V?????V??^?~Dmok??6?XBH^?0&?&60?n???JY??e????^?~???o??n?S?K?k??.?h?D??L????S?vgYc????????RI?k?NV????????'^?h???v#F?K)k???? [?b??dsB??^v???????f?????+???Z????????????vU?[?/??B?7UG??pH?CG??n??LQR?v?.s?????????9[n.?|?????vB?????q?[ +]t?????r????Zz??]?11????Bv}+?9?????1:?O??B??/5s????l?i??m????8g????=??Z??,?a??nY4????c?_??_?KVL??v??????[7.??7?B??3S=?x&?&??e??)?Tj;!?D?rUc????? +??B"?q??>?I???????N!??j????w??????8?Y?Nm'????jW??S??I?vB)/ +??H{?l|??B?????l?????|??B????[?????1?vB)WZ????M?+?????ke?C???B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!?B!???A?5/B?%z?~)!??=m?7?BrQ?y?B?'?DS????!???$??B???vB??S? !??Nm'?j;!?j;!?P????Bm??B???N!?vj;!?P? !??Nm'?j;??B???vB??S? !??N!??N!?vj;?/??u@???v?c????????Nr?????Bm?????/?7k?P???$????Z ?vj;?-VO????Nr?-???Bm???????Y +???F?k???~???z?Hm'??????Bm??u???[?r[3}??Ca?u`cj;?;???WV??kZ?A%??o?,?=_???}??$J?O???Bm???j??+?*caa]j;?????V??[?|??w??????N?6???????$:#cV???"?{???Tov?l??L?? ??W?e??>j;???g?6??????^.~ ????u?5?_-??-xK??i at m'???|?w`=?|?????????X?.?35z???Q?Id?L>??X$??}??!fmj;???; m?"?v~`mj;???-??????? +Bm????? `?????? ?vj;? +:s???????S?Inp*0E?m??:???Nr?????o}?^?j;??D???o???R?9??P???$'??H_X +??? ?vj;? n????a?P???$?<??/???? ?vj;? ?? ??Y??Nm'9?k??????u?Bm?????=?&}? +?NV??S?IN?9?S_xx??A???v??z? ???:???Nr?????B?}V??S?IN08Q_????A???v?,???~auj;????P'3?.????J ???N*?`w}?``Y??????Y???Nm'LM??K{[?.n>?+?P??????Vh{}??X??fi{?2???V ???N*?]??B}?????,?Q?a?j;??T,m????&?e?? +???#k?P????b9Xb,.K????R????Z ???N*???,cq?)????g?X???Nm'???????kz???? Lb?j;??T(??q??(??? +????V?WBm?????*?KcqX + J????o5m?2`V,??S??z?+????f!????o?U?W???X?V,??S?}8@o>?Y?9?Qc?g??`jn??_ +,,b?j;?????????7???e,^?4?I?c?5U???[???YBm??{3Kh??|x??IW?S?)?u/?????k?P??????.????f?/?+??#??56???????%?vj?7Im??o\`,???QR???}L?????ZBm?????' ??i,?$*?j?%????????%?vj??K??/???Ef? +oQ??R/?Q`???X[?uK???vw.??|z???Pc?@?J[?^?D?Zc??:?3??P???? d??|z??z?u|y%?.????b? +IF2 ??Nm?R]??N/????5 +??????cS.?,`Q??? ?\??K???v7?6?\ +??7k?1?????)???9bAq?.f?j;??C->????;????????????dq?.K?=|??%?vj?s?????K??f?=?????@?T ?? ?-?zP???K???v'-??f??>?Yc?`Mbe0pw???5?.?f?j{4?}??(Y?x??~??{o?x[???~#?????????H`abe ?d?? 6?~`?j{4??aX?????[?????'?+???Z? ??y? ?t'?/??GR?_?j;2???Q?nm}??P%????92???U??W`M????=??>x????:??kn?kQ?'=/hZ7`???^?T?x??H??H/??????0o$_??? m?]???CP? +pO??~?Pe?J???o?<;8?.??????d`?,? +pirmpd*??quJnld +j{???`?y?<`q? #?+?$F +????-~?&????R???????D????P?#?????x'9].NZZ???B?OM??.H??*????? ?2g??GQ??~?l???"??w???? 3?2S?9?3?B6?r??8?UL???????0?_f???kcN???3Uhe??I|???kC????????L?!???i{/?????M?2Q? ?????9s?siJc d3?2??|j??Gyx?}\C?!???i?m????k?N?(?iS??c? }r? ??z???e?!????T[?w?18????P???Gc?M?0{??N?????? +l6???Rb???]w?????????$Z??? ???j?-?@M??j{?1?f??4?~??6??@?c??K??Gq??"/??u??p`Q?2???#??6Py?=r??'p?m?I???3i\jM?7?? +? +?O???+?N??VS?? ???'????P?+??N?7?|??t??tJ?|b U?;?&?o1pQE^???D?j3qI???q5?????b`wJ??GM?W?????M??????0??h??????n/?Ol?m??(ozB???LA??Q? +??`*tVW?j????D???x?Z?_ ?n?????Jt/????c?$??Bm????????????&??;??yc&?g+-E???]??K??I??????RHq:????A?=??.???8? ???*v?b?h??K??"???????EF??l??UFX'?/??g???h??kp7??P?#????Z?? N?????? ?S????fUu??]F?]Q~?1Xo??4??y?W?6??Z?Xx$??4?P?+wc??bkZ??&?L??Y?g?!W???)?????????i???????G??,?[?-?{?CJ??GL?OrublP??F?e??7?0???-BS?????..? +?]^?QE?sD_?0?]??KoIm?:??C??r?_??s/?j{???C??G?fe?G?{M?a{???D?"\??????0???GO?:??x?\P?{?I????O???H??#??n?MM??4i,xo"??t^*??Kus??????????????????=m?????S??? [TRUNCATED] To get the complete diff run: svnlook diff /svnroot/pomp -r 1150 From noreply at r-forge.r-project.org Wed Mar 25 14:26:33 2015 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Wed, 25 Mar 2015 14:26:33 +0100 (CET) Subject: [Pomp-commits] r1151 - in pkg/pomp: . inst Message-ID: <20150325132633.2A133186997@r-forge.r-project.org> Author: kingaa Date: 2015-03-25 14:26:32 +0100 (Wed, 25 Mar 2015) New Revision: 1151 Modified: pkg/pomp/DESCRIPTION pkg/pomp/inst/CITATION Log: - update citation Modified: pkg/pomp/DESCRIPTION =================================================================== --- pkg/pomp/DESCRIPTION 2015-03-24 19:32:50 UTC (rev 1150) +++ pkg/pomp/DESCRIPTION 2015-03-25 13:26:32 UTC (rev 1151) @@ -1,8 +1,8 @@ Package: pomp Type: Package Title: Statistical Inference for Partially Observed Markov Processes -Version: 0.63-4 -Date: 2015-03-24 +Version: 0.63-5 +Date: 2015-03-25 Authors at R: c(person(given=c("Aaron","A."),family="King", role=c("aut","cre"),email="kingaa at umich.edu"), person(given=c("Edward","L."),family="Ionides",role=c("aut")), Modified: pkg/pomp/inst/CITATION =================================================================== --- pkg/pomp/inst/CITATION 2015-03-24 19:32:50 UTC (rev 1150) +++ pkg/pomp/inst/CITATION 2015-03-25 13:26:32 UTC (rev 1151) @@ -1,9 +1,33 @@ year <- sub("-.*", "", meta$Date) -note <- sprintf("R package, version %s", meta$Version) +note1 <- sprintf("R~package, version~%s", meta$Version) +note2 <- sprintf("(R package, version %s)", meta$Version) -citHeader("To cite the pomp package in publications use:") +citEntry( + header=paste("To cite the",sQuote("pomp"), + "package in publications, please use:"), + entry="Article", + title="Statistical Inference for Partially Observed {M}arkov Processes via the {R} Package {pomp}", + author=personList( + as.person("Aaron A. King"), + as.person("Dao Nguyen"), + as.person("Edward L. Ionides") + ), + year=2015, + journal="Journal of Statistical Software", + volume="in press", +# number=XX, +# url="http://www.jstatsoft.org/vXX/iXX", + textVersion=paste0( + "Aaron A. King, Dao Nguyen, Edward L. Ionides", + " (2015) ", + "Statistical Inference for Partially Observed Markov Processes via the R Package pomp. ", + "Journal of Statistical Software, in press. " +# "http://www.jstatsoft.org/vXX/iXX" + ) + ) citEntry( + header="The correct citation of the package itself is:", entry="Manual", title="{pomp}: {S}tatistical Inference for Partially Observed {M}arkov Processes", author=personList( @@ -20,11 +44,14 @@ as.person("Simon N. Wood") ), year=year, - note=note, + note=note1, url=meta$URL, textVersion=paste0( "A. A. King, E. L. Ionides, C. M. Breto, S. P. Ellner, M. J. Ferrari, B. E. Kendall, M. Lavine, D. Nguyen, D. C. Reuman, H. Wearing, and S. N. Wood"," (",year,") ", "pomp: Statistical Inference for Partially Observed Markov Processes ", - note,". ",meta$URL + note2,". ",meta$URL ) ) + +citFooter("To obtain these citations in BibTeX format, do ", + sQuote("toBibtex(citation(\"pomp\"))"))
    Statistical Inference for Partially Observed Markov Processes via the R Package pomp(PDF)(R code)
    Getting started with pomp (HTML) (R code)(HTML) (R code)
    An example using IF2(HTML)(R code)
    pomp package manual (PDF)