Projects for R: |
1-3 of
3
shown (3 visible only to FishBox members, 2 visible only to project members).
|
|
-
Data Cloning I: univariate
by eric.ward, last updated 5/26/08, sharing set to public
This script writes and runs the data cloning procedure described by Lele et al. (2007, Ecology Letters). The routine is in R, and requires the user to install OpenBUGS before running. The number of clones can (and should) be modified. For this simple example, 100 clones takes ~ 2 minutes on my 2.5 year old laptop (1.66Ghz, 1GB RAM). More details and diagnostics can be found in the multivariate cloning project. -
Estimating heritability from time series
by mdscheuerell, last updated 1/5/11, sharing set to public
We use a multivariate state-space model and a time series of yearly migration dates for sockeye salmon to estimate the heritability coef from the classic breeder's equation.
The 2 files below are the dataset and the R script.
-
MARSS Dev Site
by e2holmes, last updated 1 week, 1 day ago, sharing set to public
This is the DEVELOPMENT site for the MARSS. For the current MARSS release go to CRAN or download straight from the R GUI using "Install Packages" menu.
MARSS fits mulitvariate autoregressive state-space (MARSS) models with Gaussian errors to multivariate time series data. A MARSS model is:
x(t) = B x(t-1) + u + v(t), v(t)~MVN(0,Q)
y(t) = Z x(t) + a + w(t), w(t)~MVN(0,R)
Project news (Jan 27, 2012): MARSS 2.8 uploaded to CRAN. 2.3+ implements the algorithm for a fully unconstrained MARSS model with fixed and shared elements in all parameters. See changes.pdf for the fixes since 2.5. MARSS 2.9 is in the works which will allow more typical specification of covariates. I'm also working on MARSS 3.0, which implements the general EM algorithm with linear constraints on the parameter matrices. MARSS 2.8 is implementing a constrained version of the more general algorithm in the EMDerivation paper. The change for 3.0 requires changing the 'wrappers' so user can specify the linear constraints. The actual algorithm code (MARSSkem.r) is unchanged.
Developers: Eli Holmes, Eric Ward and Kellie Wills
Current known issues:
- lap-p models not working with method=kem since kemcheck is blocking. Need to review EM algorithm per constraint that B subblock corresponding to diag(Q)=0 must be diagonal. Use method="BFGS" as a work around.
- moving average models not tested.
- The likelihood for the covariate "trick" where you want covariate to affect process only and do that by setting R=zero is wrong. There shouldn't be a likelihood of the covariate added in, but will be since Q=1.I added a note to manual for 2.8 saying you need to subtract off that extra LL.
- For cross-platform compatibility with MacOS, I think all of the source files need a hard return / empty line as the last line.
Projects for R: |
1-3 of
3
shown (3 visible only to FishBox members, 2 visible only to project members).
|
|