Package: inlabru 2.12.0.9000
inlabru: Bayesian Latent Gaussian Modelling using INLA and Extensions
Facilitates spatial and general latent Gaussian modeling using integrated nested Laplace approximation via the INLA package (<https://www.r-inla.org>). Additionally, extends the GAM-like model class to more general nonlinear predictor expressions, and implements a log Gaussian Cox process likelihood for modeling univariate and spatial point processes based on ecological survey data. Model components are specified with general inputs and mapping methods to the latent variables, and the predictors are specified via general R expressions, with separate expressions for each observation likelihood model in multi-likelihood models. A prediction method based on fast Monte Carlo sampling allows posterior prediction of general expressions of the latent variables. Ecology-focused introduction in Bachl, Lindgren, Borchers, and Illian (2019) <doi:10.1111/2041-210X.13168>.
Authors:
inlabru_2.12.0.9000.tar.gz
inlabru_2.12.0.9000.zip(r-4.5)inlabru_2.12.0.9000.zip(r-4.4)inlabru_2.12.0.9000.zip(r-4.3)
inlabru_2.12.0.9000.tgz(r-4.4-any)inlabru_2.12.0.9000.tgz(r-4.3-any)
inlabru_2.12.0.9000.tar.gz(r-4.5-noble)inlabru_2.12.0.9000.tar.gz(r-4.4-noble)
inlabru_2.12.0.9000.tgz(r-4.4-emscripten)inlabru_2.12.0.9000.tgz(r-4.3-emscripten)
inlabru.pdf |inlabru.html✨
inlabru/json (API)
NEWS
# Install 'inlabru' in R: |
install.packages('inlabru', repos = c('https://inlabru-org.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/inlabru-org/inlabru/issues
- E_nc1 - 1-Dimensional Homogeneous Poisson example.
- E_nc2 - 1-Dimensional NonHomogeneous Poisson example.
- E_nc3a - 1-Dimensional NonHomogeneous Poisson example.
- E_nc3b - 1-Dimensional NonHomogeneous Poisson example.
- countdata1 - 1-Dimensional Homogeneous Poisson example.
- countdata2 - 1-Dimensional NonHomogeneous Poisson example.
- countdata3a - 1-Dimensional NonHomogeneous Poisson example.
- countdata3b - 1-Dimensional NonHomogeneous Poisson example.
- cov2_1D - 1-Dimensional NonHomogeneous Poisson example.
- gorillas_sf - Gorilla nesting sites in sf format
- lambda1_1D - 1-Dimensional Homogeneous Poisson example.
- lambda2_1D - 1-Dimensional NonHomogeneous Poisson example.
- lambda3_1D - 1-Dimensional NonHomogeneous Poisson example.
- mexdolphin_sf - Pan-tropical spotted dolphins in the Gulf of Mexico
- mrsea - Marine renewables strategic environmental assessment
- pts1 - 1-Dimensional Homogeneous Poisson example.
- pts2 - 1-Dimensional NonHomogeneous Poisson example.
- pts3 - 1-Dimensional NonHomogeneous Poisson example.
- robins_subset - Robins_subset
- shrimp - Blue and red shrimp in the Western Mediterranean Sea
- toygroups - Simulated 1D animal group locations and group sizes
- toypoints - Simulated 2D point process data
Last updated 1 hours agofrom:f593e56368. Checks:OK: 6 NOTE: 1. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 21 2024 |
R-4.5-win | OK | Nov 21 2024 |
R-4.5-linux | OK | Nov 21 2024 |
R-4.4-win | OK | Nov 21 2024 |
R-4.4-mac | OK | Nov 21 2024 |
R-4.3-win | NOTE | Nov 21 2024 |
R-4.3-mac | OK | Nov 21 2024 |
Exports:add_mappersas.bru_optionsbincountbrubru_call_optionsbru_componentbru_component_listbru_compute_linearisationbru_convergence_plotbru_fill_missingbru_forward_transformationbru_get_mapperbru_get_mapper_safelybru_indexbru_infobru_inla.stack.mexpandbru_inla.stack.mjoinbru_inverse_transformationbru_like_control_familybru_like_inla_familybru_like_listbru_logbru_log_bookmarkbru_log_bookmarksbru_log_indexbru_log_messagebru_log_newbru_log_offsetbru_log_resetbru_make_stackbru_mapperbru_mapper_aggregatebru_mapper_collectbru_mapper_constbru_mapper_definebru_mapper_factorbru_mapper_fmesherbru_mapper_harmonicsbru_mapper_indexbru_mapper_linearbru_mapper_logsumexpbru_mapper_marginalbru_mapper_matrixbru_mapper_mesh_Bbru_mapper_multibru_mapper_pipebru_mapper_repeatbru_mapper_scalebru_mapper_shiftbru_mapper_taylorbru_modelbru_obsbru_optionsbru_options_checkbru_options_defaultbru_options_getbru_options_resetbru_options_setbru_rerunbru_response_sizebru_safe_inlabru_safe_spbru_standardise_namesbru_summarisebru_timingsbru_timings_plotbru_usedbru_used_updatebru_used_varscomp_lin_evaldeltaICdevel.cvmeasureeval_spatialevaluate_comp_simpleevaluate_effect_multi_stateevaluate_effect_single_stateevaluate_modelevaluate_statefm_cprodfm_crsfm_intfm_pixelsfm_sp2segmentgenerateggglobeglplotgmapgorillas_sf_gcovgorillas_spibm_evalibm_eval2ibm_inla_subsetibm_invalid_outputibm_is_linearibm_jacobianibm_linearibm_nibm_n_outputibm_namesibm_names<-ibm_simplifyibm_valuesiinlaindex_evalinla_subset_evalinla.spde2.pcmatern_Binput_evallgcplikelike_listlocal_basic_fixed_effect_testdatalocal_basic_intercept_testdatalocal_bru_options_setlocal_bru_safe_inlalocal_bru_testthat_assignlocal_bru_testthat_setuplocal_bru_testthat_tolerancesmake_hierarchical_mesh_basismexdolphin_spmultiplotplotmarginal.inlaplotsamplepoint2countrow_kronsample.lgcpslinespatial.to.pppspde.posteriorspoly
Dependencies:classclassIntcliDBIdplyre1071fansifmeshergenericsglueKernSmoothlatticelifecyclemagrittrMASSMatrixMatrixModelspillarpkgconfigplyrproxyR6Rcpprlangs2sftibbletidyselectunitsutf8vctrswithrwk
Articles list
Rendered fromarticles.Rmd
usingknitr::rmarkdown
on Nov 21 2024.Last update: 2023-10-29
Started: 2023-10-29
Defining model components
Rendered fromcomponent.Rmd
usingknitr::rmarkdown
on Nov 21 2024.Last update: 2024-11-20
Started: 2022-10-17
Devel: Customised model components with the bru_mapper system
Rendered frombru_mapper.Rmd
usingknitr::rmarkdown
on Nov 21 2024.Last update: 2024-11-15
Started: 2022-10-17
Iterative linearised INLA method
Rendered frommethod.Rmd
usingknitr::rmarkdown
on Nov 21 2024.Last update: 2022-10-17
Started: 2020-11-26
Nonlinear model approximation
Rendered fromlinearapprox.Rmd
usingknitr::rmarkdown
on Nov 21 2024.Last update: 2024-09-30
Started: 2021-01-08
Prediction scores
Rendered fromprediction_scores.Rmd
usingknitr::rmarkdown
on Nov 21 2024.Last update: 2023-08-31
Started: 2022-10-17
Readme and manuals
Help Manual
Help page | Topics |
---|---|
inlabru | inlabru-package inlabru |
1D LGCP bin count simulation and comparison with data | bincount |
Methods for mapper lists | bm_list c.bm_list c.bru_mapper [.bm_list |
Convenient model fitting using (iterated) INLA | bru bru_rerun print.bru |
Latent model component construction | bru_component bru_component.character component |
Evaluate component values in predictor expressions | bru_component_eval |
Methods for inlabru component lists | bru_component_list bru_component_list.formula bru_component_list.list c.component c.component_list component_list [.component_list |
Plot inlabru convergence diagnostics | bru_convergence_plot |
Fill in missing values in Spatial grids | bru_fill_missing |
Extract mapper information from INLA model component objects | bru_get_mapper bru_get_mapper.inla.rgeneric bru_get_mapper.inla.spde bru_get_mapper_safely |
Extract predictor index information | bru_index bru_index.bru bru_index.bru_like |
Methods for bru_info objects | bru_info bru_info.bru bru_info.character print.bru_info print.summary_bru_info summary.bru_info |
Access methods for 'bru_log' objects | as.character.bru_log bru_log bru_log.bru bru_log.bru_log bru_log.character bru_log.iinla c.bru_log length.bru_log print.bru_log [.bru_log |
Methods for 'bru_log' bookmarks | bru_log_bookmark bru_log_bookmarks |
Add a log message | bru_log_message |
Create a 'bru_log' object | bru_log_new |
Position methods for 'bru_log' objects | bru_log_index bru_log_offset |
Clear log contents | bru_log_reset |
Constructors for 'bru_mapper' objects | bru_mapper bru_mapper_define |
Mapper for aggregation | bru_mapper_aggregate ibm_eval.bru_mapper_aggregate ibm_jacobian.bru_mapper_aggregate ibm_n.bru_mapper_aggregate ibm_n_output.bru_mapper_aggregate ibm_values.bru_mapper_aggregate |
Mapper for concatenated variables | bru_mapper_collect ibm_eval.bru_mapper_collect ibm_invalid_output.bru_mapper_collect ibm_is_linear.bru_mapper_collect ibm_jacobian.bru_mapper_collect ibm_linear.bru_mapper_collect ibm_n.bru_mapper_collect ibm_names.bru_mapper_collect ibm_names<-.bru_mapper_collect ibm_n_output.bru_mapper_collect ibm_values.bru_mapper_collect [.bru_mapper_collect |
Constant mapper | bru_mapper_const ibm_eval.bru_mapper_const ibm_jacobian.bru_mapper_const ibm_n.bru_mapper_const ibm_values.bru_mapper_const |
Mapper for factor variables | bru_mapper_factor ibm_jacobian.bru_mapper_factor ibm_n.bru_mapper_factor ibm_values.bru_mapper_factor |
Mapper for general 'fmesher' function space objects | bru_mapper_fmesher ibm_jacobian.bru_mapper_fmesher ibm_n.bru_mapper_fmesher ibm_values.bru_mapper_fmesher |
Generic methods for bru_mapper objects | bru_mapper_generics ibm_eval ibm_eval.default ibm_eval2 ibm_eval2.default ibm_inla_subset ibm_inla_subset.default ibm_invalid_output ibm_invalid_output.default ibm_is_linear ibm_is_linear.default ibm_jacobian ibm_jacobian.default ibm_linear ibm_linear.default ibm_n ibm_n.default ibm_names ibm_names.default ibm_names<- ibm_n_output ibm_n_output.default ibm_simplify ibm_simplify.default ibm_values ibm_values.default |
Mapper for cos/sin functions | bru_mapper_harmonics ibm_jacobian.bru_mapper_harmonics ibm_n.bru_mapper_harmonics |
Mapper for indexed variables | bru_mapper_index ibm_invalid_output.bru_mapper_index ibm_jacobian.bru_mapper_index |
Mapper for a linear effect | bru_mapper_linear ibm_jacobian.bru_mapper_linear ibm_n.bru_mapper_linear ibm_values.bru_mapper_linear |
Mapper for log-sum-exp aggregation | bru_mapper_logsumexp ibm_eval.bru_mapper_logsumexp ibm_jacobian.bru_mapper_logsumexp |
Mapper for marginal distribution transformation | bru_mapper_marginal ibm_eval.bru_mapper_marginal ibm_jacobian.bru_mapper_marginal ibm_n.bru_mapper_marginal ibm_n_output.bru_mapper_marginal ibm_values.bru_mapper_marginal |
Mapper for matrix multiplication | bru_mapper_matrix ibm_jacobian.bru_mapper_matrix ibm_n.bru_mapper_matrix ibm_values.bru_mapper_matrix |
Mapper for basis conversion | bru_mapper_mesh_B ibm_jacobian.bru_mapper_mesh_B ibm_n.bru_mapper_mesh_B ibm_values.bru_mapper_mesh_B |
Mapper for tensor product domains | bru_mapper_multi ibm_eval.bru_mapper_multi ibm_invalid_output.bru_mapper_multi ibm_is_linear.bru_mapper_multi ibm_jacobian.bru_mapper_multi ibm_linear.bru_mapper_multi ibm_n.bru_mapper_multi ibm_names.bru_mapper_multi ibm_names<-.bru_mapper_multi ibm_n_output.bru_mapper_multi ibm_values.bru_mapper_multi [.bru_mapper_multi |
Mapper for linking several mappers in sequence | bru_mapper_pipe ibm_eval.bru_mapper_pipe ibm_eval2.bru_mapper_pipe ibm_jacobian.bru_mapper_pipe ibm_n.bru_mapper_pipe ibm_n_output.bru_mapper_pipe ibm_simplify.bru_mapper_pipe ibm_values.bru_mapper_pipe |
Mapper for repeating a mapper | bru_mapper_repeat ibm_eval.bru_mapper_repeat ibm_invalid_output.bru_mapper_repeat ibm_jacobian.bru_mapper_repeat ibm_linear.bru_mapper_repeat ibm_n.bru_mapper_repeat ibm_n_output.bru_mapper_repeat ibm_values.bru_mapper_repeat |
Mapper for element-wise scaling | bru_mapper_scale ibm_eval.bru_mapper_scale ibm_jacobian.bru_mapper_scale ibm_n.bru_mapper_scale ibm_n_output.bru_mapper_scale ibm_values.bru_mapper_scale |
Mapper for element-wise shifting | bru_mapper_shift ibm_eval.bru_mapper_shift ibm_jacobian.bru_mapper_shift ibm_n.bru_mapper_shift ibm_n_output.bru_mapper_shift ibm_values.bru_mapper_shift |
Mapper for linear Taylor approximations | bru_mapper_taylor ibm_eval.bru_mapper_taylor ibm_jacobian.bru_mapper_taylor ibm_n.bru_mapper_taylor ibm_n_output.bru_mapper_taylor ibm_values.bru_mapper_taylor |
Mapper for 'fm_mesh_1d' | bru_mapper.fm_mesh_1d ibm_jacobian.bru_mapper_fm_mesh_1d ibm_jacobian.bru_mapper_inla_mesh_1d ibm_n.bru_mapper_fm_mesh_1d ibm_n.bru_mapper_inla_mesh_1d ibm_values.bru_mapper_fm_mesh_1d ibm_values.bru_mapper_inla_mesh_1d |
Mapper for 'fm_mesh_2d' | bru_mapper.fm_mesh_2d ibm_jacobian.bru_mapper_fm_mesh_2d ibm_jacobian.bru_mapper_inla_mesh_2d ibm_n.bru_mapper_fm_mesh_2d ibm_n.bru_mapper_inla_mesh_2d ibm_values.bru_mapper_fm_mesh_2d ibm_values.bru_mapper_inla_mesh_2d |
Observation model construction for usage with 'bru()' | bru_like_list bru_like_list.bru_like bru_like_list.list bru_obs c.bru_like c.bru_like_list like like_list [.bru_like_list |
Create or update an options objects | as.bru_options bru_options bru_options_check bru_options_default bru_options_get bru_options_reset bru_options_set |
Response size queries | bru_response_size bru_response_size.bru bru_response_size.bru_info bru_response_size.bru_like bru_response_size.bru_like_list |
Extract timing information from fitted bru object | bru_timings bru_timings.bru |
Plot inlabru iteration timings | bru_timings_plot |
Transformation tools | bru_forward_transformation bru_inverse_transformation bru_transformation |
Summarise DIC and WAIC from 'lgcp' objects. | deltaIC |
Variance and correlations measures for prediction components | devel.cvmeasure |
Evaluate spatial covariates | eval_spatial eval_spatial.sf eval_spatial.SpatialGridDataFrame eval_spatial.SpatialPixelsDataFrame eval_spatial.SpatialPolygonsDataFrame eval_spatial.SpatRaster eval_spatial.stars |
Generate samples from fitted bru models | generate generate.bru |
ggplot2 geomes for inlabru related objects | gg |
Geom for predictions | gg.bru_prediction gg.prediction |
Geom for data.frame | gg.data.frame |
Geom for fm_mesh_1d objects | gg.fm_mesh_1d gg.inla.mesh.1d |
Geom for fm_mesh_2d objects | gg.fm_mesh_2d gg.inla.mesh |
Geom for matrix | gg.matrix |
Geom for RasterLayer objects | gg.RasterLayer |
Geom helper for sf objects | gg.sf |
Geom for SpatialGridDataFrame objects | gg.SpatialGridDataFrame |
Geom for SpatialLines objects | gg.SpatialLines |
Geom for SpatialPixels objects | gg.SpatialPixels |
Geom for SpatialPixelsDataFrame objects | gg.SpatialPixelsDataFrame |
Geom for SpatialPoints objects | gg.SpatialPoints |
Geom for SpatialPolygons objects | gg.SpatialPolygons |
Geom wrapper for SpatRaster objects | gg.SpatRaster |
Visualize a globe using RGL | globe |
Render objects using RGL | glplot glplot.fm_mesh_2d glplot.inla.mesh glplot.SpatialLines glplot.SpatialPoints |
Gorilla nesting sites in sf format | gorillas_sf gorillas_sf_gcov gorillas_sp |
Log Gaussian Cox process (LGCP) inference using INLA | lgcp |
Pan-tropical spotted dolphins in the Gulf of Mexico | mexdolphin_sf mexdolphin_sp |
Marine renewables strategic environmental assessment | mrsea |
Multiple ggplots on a page. | multiplot |
Plot method for posterior marginals estimated by bru | plot.bru plotmarginal.inla |
Plot prediction using ggplot2 | plot.bru_prediction plot.prediction |
Create a plot sample. | plotsample |
Convert a plot sample of points into one of counts. | point2count |
1-Dimensional Homogeneous Poisson example. | countdata1 E_nc1 lambda1_1D Poisson1_1D pts1 |
1-Dimensional NonHomogeneous Poisson example. | countdata2 cov2_1D E_nc2 lambda2_1D Poisson2_1D pts2 |
1-Dimensional NonHomogeneous Poisson example. | countdata3a countdata3b E_nc3a E_nc3b lambda3_1D Poisson3_1D pts3 |
Prediction from fitted bru model | predict.bru |
robins_subset | robins_subset |
Sample from an inhomogeneous Poisson process | sample.lgcp |
Blue and red shrimp in the Western Mediterranean Sea | shrimp |
Posteriors of SPDE hyper parameters and Matern correlation or covariance function. | spde.posterior |
Summary for an inlabru fit | print.summary_bru summary.bru |
Summary and print methods for observation models | print.bru_like print.bru_like_list print.summary_bru_like print.summary_bru_like_list summary.bru_like summary.bru_like_list |
mapper object summaries | print.bru_mapper print.summary_bru_mapper summary.bru_mapper summary.bru_mapper_collect summary.bru_mapper_multi summary.bru_mapper_pipe summary.bru_mapper_repeat |
Print inlabru options | print.summary_bru_options summary.bru_options |
Simulated 1D animal group locations and group sizes | toygroups |
Simulated 2D point process data | toypoints |