- Home
- R-Forge
**nclbayes**: Functions, Demos and Examples of Bayesian Analysis and Basic MCMC**quadform2d**: Calculates a quadratic form for 2-d vectors

# Calculates a quadratic form for 2-d vectors

### Description

Calculates a quadratic form for 2-d vectors

### Usage

1 | ```
quadform2d(beta1, beta2, b, c)
``` |

### Arguments

`beta1` |
dimension 1. |

`beta2` |
dimension 2. |

`b` |
2-d vector containing (location) mean. |

`c` |
2x2 centering matrix. |

### Examples

1 |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.

- abrasion: Data from an experiment to investigate how weight loss due to...
- aircraft: Data on the number of 'multi-fatality crashes' in the week...
- babies: Data showing the outcomes from a set of babies, categorised...
- births: A dataset containing the time of birth (hh:mm), sex, and...
- cavendish: Data collected by the 18th century physicist Henry Cavendish,...
- coagulation: Data on the effect of three new diets on the blood...
- contamination: Data on the aerobic colony counts (acc, measured in colony...
- crickets: Data on the frequency of chirps made by a striped ground...
- dbvnorm: The Bivariate Normal distribution
- dbvt: The Bivariate t distribution
- demoCommands: Launches an editor containing the commands in a demo
- dgt: The Generalised t distribution
- dinvchi: The Inverse Chi distribution
- dnormgamma: The Normal-Gamma distribution
- dnorminvchi: The Normal-InvChi distribution
- elicitgzerofn: Function used in the elicitation of normal-gamma prior...
- elicitNGa: Elicitation of normal-gamma prior distribution by using...
- gibbsNormal: Gibbs sampler for a normal random sample with a...
- gibbsNormal2: Gibbs sampler for a normal random sample with a conjugate...
- gibbsReffects: Gibbs sampler for a one-way normal random effects model with...
- granite: A random sample of granite gravestones was taken from a...
- hdiBeta: The highest density interval (HDI) for a Beta(a,b)...
- hdiGamma: The highest density interval (HDI) for a Gamma(a,b)...
- hdiInvchi: The highest density interval (HDI) for a Inv-Chi(a,b)...
- hepatitis: Data on the logarithm of ornithine carbonyltransferase (a...
- IBMprices: Data consisting of 160 consecutive daily IBM common stock...
- insulation: Data on weekly gas consumption (in thousands of cubic feet)...
- leukaemia: Data on 33 leukaemia patients, classified by AG Group (1: AG...
- lungs: Data on 50 patients suffering from a chronic lung disease....
- malcolm: Data collected by Malcolm on the height and shoe size of a...
- mcmcAnalysis: Summarise and plot tabular MCMC output
- mcmcBoxplot: Box plots from MCMC output
- mcmcCi: Equi-tailed confidence intervals from MCMC output
- mcmcProcess: Function to remove burn-in and thin MCMC output
- metropolis: Metropolis algorithm to simulate realisations from a standard...
- mhReffects: Metropolis-Hastings algorithm for a one-way normal random...
- mwgGamma: Metropolis within Gibbs algorithm for a gamma random sample
- NGaposterior: Parameters of the NGa posterior distribution when sampling...
- oldfaithful: Data on successive waiting times (in minutes) between...
- protein: Data from an experiment to calibrate a near infrared...
- quadform2d: Calculates a quadratic form for 2-d vectors
- rats: Data on the weights of a set of thirty young rats, measured...
- sales: Data on the number of orders received by a small company for...
- sideeffects: Data showing the number of patients who were given different...
- surgery: Data on the number of patients undergoing surgery and the...
- tonsils: A dataset containing the results of a study of the tonsil...