All functions |
|
|---|---|
Convert sp curve objects to inla.mesh.segment objects. | |
Data are taken from a meta-analysis to compare the utility of three types of diagnostic imaging - lymphangiography (LAG), computed tomography (CT) and magnetic resonance (MR) - to detect lymph node metastases in patients with cervical cancer. The dataset consists of a total of 46 studies: the first 17 for LAG, the following 19 for CT and the last 10 for MR. | |
~~ A concise (1-5 lines) description of the dataset. ~~ | |
Control variables in control.bgev.default for use in inla | |
Control variables in control.compute for use in inla | |
Control variables in control.expert for use in inla | |
Control variables in control.family for use in inla | |
Control variables in control.fixed for use in inla | |
Control variables in control.group for use in inla | |
Control variables in control.hazard for use in inla | |
Control variables in control.inla for use in inla | |
Control variables in control.lincomb for use in inla | |
Control variables in control.link for use in inla | |
Control variables in control.mix for use in inla | |
Control variables in control.mode for use in inla | |
Control variables in control.predictor for use in inla | |
Control variables in control.results for use in inla | |
Control variables in control.update for use in inla | |
This function performs group-wise, cross-validatory model assessment for an INLA model using so-called node-splitting (Marshall and Spiegelhalter, 2007; Presanis et al, 2013). The user inputs an object of class inla (i.e. a result of a call to inla() ) as well as a variable name ( split.by ) specifying a grouping: Data points that share the same value of split.by are in the same group. The function then checks whether each group is an "outlier", or in conflict with the remaining groups, using the methodology described in Ferkingstad et al (2017). The result is a vector containing a p-value for each group, corresponding to a test for each group i , where the null hypothesis is that group i is consistent with the other groups except i (so a small p-value is evidence that the group is an "outlier"). See Ferkingstad et al (2017) for further details. | |
Debug a graph specification on file (ascii-mode only), by checking the specification along the way. | |
Montly total of car drivers killed or several injuried in England from January 1969 to December 1984 NB: The last 12 lines of the data set have the first column set to NULL since these data where not observed but we want to predict them. | |
Seizure counts in a randomised trial of anti-convulsant therpay in epilepsy for 59 patients. | |
Extract boundary or internal segments tagged by group id:s. | |
| Function used for defining of smooth and spatial terms within inla model formulae. The function does not evaluate anything - it exists purely to help set up a model. The function specifies one smooth function in the linear predictor (see inla.list.models ) as $$w\ f(x)$$ |
This function will return the coefficients in the 3-component AR(1) mixture representing FGN(H) | |
Various utility functions for INLA | |
Various utility functions for INLA | |
Cases of Oral cavity cancer in Germany from 1986-1990 | |
Construct a neighbour-matrix from a graph and disaply it | |
Construct a neighbour-matrix from a graph and disaply it | |
Convert indexes given by to triplet `(idx, group, replicate)' to the (one-dimensional) index used in the grouped and replicated model | |
inla performs a full Bayesian analysis of additive models using Integrated Nested Laplace approximation | |
The inla class is defined in the INLA package | |
Package to perform full Bayesian analysis on generalised additive mixed models using Integrated Nested Laplace Approximations. | |
| These functions convert between the AR(p) coefficients phi , the partial autorcorrelation coefficients pacf and the autocorrelation function acf . The phi -parameterization is the same as used for arima -models in R ; see ?arima and the parameter-vector a in Details . |
| These functions convert between the AR(p) coefficients phi , the partial autorcorrelation coefficients pacf and the autocorrelation function acf . The phi -parameterization is the same as used for arima -models in R ; see ?arima and the parameter-vector a in Details . |
Convert a matrix or sparse matrix into the sparse format used by INLA (dgTMatrix) | |
Convert a matrix or sparse matrix into the sparse format used by INLA (dgTMatrix) | |
| Conversion between WKT and a tree representation |
| Functions for defining Barrier models as an inla rgeneric model |
| Functions for defining Barrier models as an inla rgeneric model |
Install alternative binary builds. | |
Install alternative binary builds. | |
List the recent changes in the inla-program and its R-interface | |
List the recent changes in the inla-program and its R-interface | |
inla.collect.results collect results from a inla-call | |
inla.collect.results collect results from a inla-call | |
A small utility to compare INLA and MCMC results (OBSOLETE) | |
A small utility to compare INLA and MCMC results (OBSOLETE) | |
Tools to convert a Cox proportional hazard model into Poisson regression | |
Tools to convert a Cox proportional hazard model into Poisson regression | |
Improve the estimates of the CPO/PIT-values be recomputing the model-fit by removing data-points. | |
Improve the estimates of the CPO/PIT-values be recomputing the model-fit by removing data-points. | |
Creates either a CRS object or an inla.CRS object, describing a coordinate reference system | |
Wrapper for sp::CRS and inla.CRS objects to extract the coordinate reference system argument string. Should no longer be used with PROJ6/rgdal3; see inla.crs_get_wkt | |
Build a block-diagonal sparse matrix. Obsolete wrapper for bdiag() . | |
Open a new device using dev.new unless using RStudio | |
Open a new device using dev.new unless using RStudio | |
Find an upper bound to the convex hull of a point set | |
View documentation of latent, prior and likelihood models. | |
View documentation of latent, prior and likelihood models. | |
Extract elements by wildcard name matching from a data.frame , list , or matrix . | |
Low level function for computing finite element matrices, spherical harmonics, B-splines, and point mappings with barycentric triangle coordinates. | |
Generates a tex RGB color specification matrix based on a color palette. | |
inla.group group or cluster covariates so to reduce the number of unique values | |
inla.group group or cluster covariates so to reduce the number of unique values | |
| Detect whether PROJ6 is available for INLA |
Improve the estimates of the posterior marginals for the hyperparameters of the model using the grid integration strategy. | |
Improve the estimates of the posterior marginals for the hyperparameters of the model using the grid integration strategy. | |
Produce samples from the approximated joint posterior for the hyperparameters | |
Produce samples from the approximated joint posterior for the hyperparameters | |
Wrapper for identical, optionally testing only the CRS part of two objects | |
It implements the models in Knorr-Held, L. (2000) with three different constraint approaches: sum-to-zero, contrast or diagonal add. | |
It implements the models in Knorr-Held, L. (2000) with three different constraint approaches: sum-to-zero, contrast or diagonal add. | |
It implements the sampling method for the models in Knorr-Held, L. (2000) considering the algorithm 3.1 in Rue & Held (2005) book. | |
It implements the sampling method for the models in Knorr-Held, L. (2000) considering the algorithm 3.1 in Rue & Held (2005) book. | |
Illustrate a one-sample Kolmogorov-Smirnov test by plotting the empirical distribution deviation. | |
Illustrate a one-sample Kolmogorov-Smirnov test by plotting the empirical distribution deviation. | |
List available model components, likelihoods, priors, etc. To read specific documentation for the individual elements, use inla.doc . | |
List available model components, likelihoods, priors, etc. To read specific documentation for the individual elements, use inla.doc . | |
Load or source a file: (internal use) | |
Load or source a file: (internal use) | |
Calculates covariance and correlation functions for Matern models and related oscillating SPDE models, on \(R^d\) and on the sphere, \(S^2\). | |
This defines an mdata-object for matrix valued response-families | |
This defines an mdata-object for matrix valued response-families | |
Merge a mixture of inla -objects | |
Merge a mixture of inla -objects | |
Create a 1D mesh specification inla.mesh.1d object, that defines a function space for 1D SPDE models. | |
Calculates barycentric coordinates and weight matrices for inla.mesh.1d objects. | |
Create a triangle mesh based on initial point locations, specified or automatic boundaries, and mesh quality parameters. | |
Assess the finite element approximation errors in a mesh for interactive R sessions. More detailed assessment tools are in meshbuilder . | |
Assess the finite element approximation errors in a mesh for interactive R sessions. More detailed assessment tools are in meshbuilder . | |
Calculate basis functions on a 1d or 2d inla.mesh | |
Constructs an list of inla.mesh.segment object from boundary or interior constraint information in an inla.mesh object. | |
Compute subsets of vertices and triangles in an inla.mesh object that are connected by edges. | |
Compute subsets of vertices and triangles in an inla.mesh object that are connected by edges. | |
Create a constrained refined Delaunay triangulation (CRDT) for a set of spatial locations. | |
Create a triangle mesh based on initial point locations, specified or automatic boundaries, and mesh quality parameters. | |
Calculates directional derivative matrices for functions on inla.mesh objects. | |
Constructs finite element matrices for inla.mesh and inla.mesh.1d objects. | |
Construct a lattice grid for inla.mesh | |
Calculates coordinate mappings for inla.mesh projections. | |
Calculate a lattice projection to/from an inla.mesh | |
Query information about an inla.mesh object. | |
| Constructs inla.mesh.segment objects that can be used to specify boundary and interior constraint edges in calls to inla.mesh . |
This page describe the models implemented in inla , divided into sections: latent, group, mix, link, predictor, hazard, likelihood, prior, wrapper . | |
For use with 'nmix' and 'nmixnb' models. This function takes the information contained in an object returned by inla() and uses the contents to create fitted lambda values using the linear predictor for log(lambda), the input covariate values, and samples from the posteriors of the model hyperparameters. Fitted values from the linear predictor are exponentiated, by default, before being returned. | |
For use with 'nmix' and 'nmixnb' models. This function takes the information contained in an object returned by inla() and uses the contents to create fitted lambda values using the linear predictor for log(lambda), the input covariate values, and samples from the posteriors of the model hyperparameters. Fitted values from the linear predictor are exponentiated, by default, before being returned. | |
Constructs a nonconvex boundary for a point set using morphological operations. | |
Set and get global options for INLA | |
Set and get global options for INLA | |
Wrapper for the over method to find triangle centroids or vertices inside sp polygon objects | |
Describe and check the PARDISO support in R-INLA | |
Describe and check the PARDISO support in R-INLA | |
Print the priors used for the hyperparameters | |
Print the priors used for the hyperparameters | |
Prune the INLA-package by deleting binary files not supported by the running OS | |
Prune the INLA-package by deleting binary files not supported by the running OS | |
| Control and view a remote inla-queue of submitted jobs |
| Control and view a remote inla-queue of submitted jobs |
Provide the names of all implemented reordering schemes | |
Provide the names of all implemented reordering schemes | |
Rerun inla on an inla-object (output from link{inla} ) | |
Rerun inla on an inla-object (output from link{inla} ) | |
Takes two Matrices and computes the row-wise Kronecker product. Optionally applies row-wise weights and/or applies an additional 0/1 row-wise Kronecker matrix product, as needed by inla.spde.make.A . | |
Constructs precision matrices for first- and second-order random walk (RW1/RW2) latent models used within INLA . | |
| This function generate samples, and functions of those, from an approximated posterior of a fitted model (an inla-object) |
| This function generate samples, and functions of those, from an approximated posterior of a fitted model (an inla-object) |
TODO | |
TODO | |
Attempts to simplify a polygonal curve by joining nearly colinear segments. | |
Wrapper for CRS(projargs) (PROJ4) and CRS(wkt) for sp::Spatial objects. | |
Constructs observation/prediction weight matrices for models based on inla.mesh and inla.mesh.1d objects. | |
Constructs observation/prediction weight matrices for numerical integration schemes for regional data problems. Primarily intended for internal use by inla.spde.make.A . | |
Generates a list of named index vectors for an SPDE model. | |
List SPDE models supported by inla.spde objects | |
| Calculates the precision matrix for given parameter values based on an inla.spde model object. |
Exctract field and parameter values and distributions for an inla.spde SPDE effect from an inla result object. | |
Old methods fo sampling from a SPDE model. For new code, use inla.spde.precision and inla.qsample instead. | |
| Create an inla.spde1 model object. |
| Creates and inla.spde2 object describing the internal structure of an 'spde2' model. |
Create an inla.spde2 model object for a Matern model. Use inla.spde2.pcmatern instead for a PC prior for the parameters. | |
Calculates an approximate basis for tau and kappa for an inla.spde2.matern model where tau is a rescaling parameter. | |
Create an inla.spde2 model object for a Matern model, using a PC prior for the parameters. | |
Handles transformation of various inla objects accorting to coordinate reference systems of sp::CRS or inla.CRS class. | |
Initialize the definition file and print the path to the internal script to transfer ssh-keys | |
Initialize the definition file and print the path to the internal script to transfer ssh-keys | |
| Functions for combining data, effects and observation matrices into inla.stack objects, and extracting information from such objects. |
Create a survival object, to be used as a response variable in a model formula for the inla function for survival models. | |
Create a survival object, to be used as a response variable in a model formula for the inla function for survival models. | |
Functions to upgrade the INLA -package to the current version. | |
Functions to upgrade the INLA -package to the current version. | |
Show the version of the INLA-package | |
Show the version of the INLA-package | |
| Get and set CRS object or WKT string properties. |
Sample and evalue from from a joint marginal approximation as returned using argument selection in inla . | |
Sample and evalue from from a joint marginal approximation as returned using argument selection in inla . | |
A framework for defining joint priors in R | |
A framework for defining joint priors in R | |
Times of infection from the time to insertion of the catheter for 38 kindey patients using portable dialysis equipment | |
| These functions define mapping in between two-dimensional indices on a lattice and the one-dimensional node representation used in inla . The mapping from node to lattice follows the default R behaviour (which is column based storage), and as.vector(A) and matrix(a, nrow, ncol) can be used instead of inla.matrix2vector and inla.vector2matrix . |
This the Leukemia data from Henderson et al (2003); see source. | |
Draws a inla.mesh.segment object with generic or rgl graphics. | |
| Define link-functions and its inverse |
| Define link-functions and its inverse |
Create a linear combination or several linear combinations, as input to inla(..., lincomb = <lincomb>) | |
Create a linear combination or several linear combinations, as input to inla(..., lincomb = <lincomb>) | |
| Density, distribution function, quantile function, random generation, hpd-interval, interpolation, expectations, mode and transformations of marginals obtained by inla or inla.hyperpar() . These functions computes the density (inla.dmarginal), the distribution function (inla.pmarginal), the quantile function (inla.qmarginal), random generation (inla.rmarginal), spline smoothing (inla.smarginal), computes expected values (inla.emarginal), computes the mode (inla.mmarginal), transforms the marginal (inla.tmarginal), and provide summary statistics (inla.zmarginal). |
Interactively design and build a triangle mesh for use with SPDE models, and assess the finite element approximation errors. The R code needed to recreate the mesh outside the interactive Shiny app is also generated. Spatial objects can be imported from the global workspace. | |
Interactively design and build a triangle mesh for use with SPDE models, and assess the finite element approximation errors. The R code needed to recreate the mesh outside the interactive Shiny app is also generated. Spatial objects can be imported from the global workspace. | |
The Munich rent data | |
This map is used in association to the Leukemia data from Henderson et al (2003); see source. | |
~~ A concise (1-5 lines) description of the dataset. ~~ | |
Construct parameter settings for inla.spde2.matern models. | |
| Functions to evaluate, sample, compute quantiles and percentiles of the PC prior for the alpha parameter in the Weibull likelihood |
| Functions to evaluate, sample, compute quantiles and percentiles of the PC prior for the alpha parameter in the Weibull likelihood |
Functions to evaluate and sample from the PC prior for an AR(p) model | |
Functions to evaluate and sample from the PC prior for an AR(p) model | |
| Functions to evaluate, sample, compute quantiles and percentiles of the PC prior for the correlation in the Gaussian AR(1) model where the base-model is zero correlation. |
| Functions to evaluate, sample, compute quantiles and percentiles of the PC prior for the correlation in the Gaussian AR(1) model where the base-model is zero correlation. |
| Functions to evaluate, sample, compute quantiles and percentiles of the PC prior for the correlation in the Gaussian AR(1) model where the base-model is correlation one. |
| Functions to evaluate, sample, compute quantiles and percentiles of the PC prior for the correlation in the Gaussian AR(1) model where the base-model is correlation one. |
| Functions to evaluate and sample from the PC prior for a correlation matrix. |
| Functions to evaluate and sample from the PC prior for a correlation matrix. |
A function to evaluate the PC-prior for the degrees of freedom in a standarized Student-t distribution | |
A function to evaluate the PC-prior for the degrees of freedom in a standarized Student-t distribution | |
| Functions to evaluate, sample, compute quantiles and percentiles of the PC prior for Gamma(1/a, 1/a) |
| Functions to evaluate, sample, compute quantiles and percentiles of the PC prior for Gamma(1/a, 1/a) |
| Functions to evaluate, sample, compute quantiles and percentiles of the PC prior for the gammacount likelihood |
| Functions to evaluate, sample, compute quantiles and percentiles of the PC prior for the gammacount likelihood |
| Functions to evaluate, sample, compute quantiles and percentiles of the PC prior for the tail parameter in the GEV likelihood |
| Functions to evaluate, sample, compute quantiles and percentiles of the PC prior for the tail parameter in the GEV likelihood |
| Functions to evaluate and simulate from multivariate PC priors: The simplex and sphere case |
| Functions to evaluate and simulate from multivariate PC priors: The simplex and sphere case |
| Functions to evaluate, sample, compute quantiles and percentiles of the PC prior for the precision in the Gaussian distribution. |
| Functions to evaluate, sample, compute quantiles and percentiles of the PC prior for the precision in the Gaussian distribution. |
Functions to evaluate, sample, compute quantiles and percentiles of the PC prior for the alpha parameter in the skew-normal link-function | |
Functions to evaluate, sample, compute quantiles and percentiles of the PC prior for the alpha parameter in the skew-normal link-function | |
Takes am inla object produced by inla and plot the results | |
Takes am inla object produced by inla and plot the results | |
Plot the outline of a CRS or inla.CRS projection, with optional graticules (transformed parallels and meridians) and Tissot indicatrices. | |
Plots an inla.mesh object using either standard graphics or with rgl . | |
Plots a triangulation mesh using rgl . | |
A data matrix with Longitude and Latitude coordinates for the boundary of Parana State. | |
Print a INLA fit | |
Print a INLA fit | |
A data frame with daily rainfall in the Parana State. | |
This routine use the GMRFLib implementation which compute parts of the inverse of a SPD sparse matrix. The diagonal and values for the neighbours in the inverse, are provided. | |
This function compute the reordering (or find the best reordering) using the GMRFLib implementation | |
This function generate samples from a GMRF using the GMRFLib implementation | |
This routine use the GMRFLib implementation to solve linear systems with a SPD matrix. | |
Internal function for merging raw stack information | |
| Construct a graph-object from a file or a matrix; write graph-object to file |
| A framework for defining latent models in R |
| A framework for defining latent models in R |
Breslow (1984) analyses some mutagenicity assay data (shown below) on salmonella in which three plates have been processed at each dose i of quinoline and the number of revertant colonies of TA98 Salmonella measured | |
This function scales an intrinsic GMRF model so the geometric mean of the marginal variances is one | |
The rate of lip cancer in 56 counties in Scotland is recorder. The data set includes the observed and expected cases (based on the population and its age and sex distribution in the country), a covariate measuring the percentage of the population engaged in agricolture, fishing or forestry and the "position" of each county expressed as a list of adjacent counties | |
Proportion of seeds that germinated on each of 21 plates arranged according to a 2 by 2 factorial layout by seed and type of root extract | |
Simulated data set on 200 location points. The simulation process is made at the introduction of the SPDE tutorial. | |
Takes a fitted inla or surv.inla object produced by inla or surv.inla and produces a summary from it. | |
Takes a fitted inla or surv.inla object produced by inla or surv.inla and produces a summary from it. | |
Construct and print inla.mesh object summaries | |
This example considers mortality rates in 12 hospitals performing cardiac surgery in babies | |
Simulated data set for Weibull survival model | |
Recorded days of rain above 1 mm in Tokyo for 2 years, 1983:84 | |
Undernutrition of children in each region of Zambia is measured through a score computed on the basis of some anthropometric measures. The data set contains also other infomation about each child. | |