g02gn gives the estimate of an estimable function along with its standard error from the results from fitting a generalized linear model.
public static void g02gn( ip, irank,  b,  cov, [,] v,  f, out est, out stat, out sestat, out z, tol, out ifail )
|Visual Basic (Declaration)|
Public Shared Sub g02gn ( _ ip As , _ irank As , _ b As (), _ cov As (), _ v As (,), _ f As (), _ < > ByRef est As , _ < > ByRef stat As , _ < > ByRef sestat As , _ < > ByRef z As , _ tol As , _ < > ByRef ifail As _ )
public: static void g02gn( ip, irank, array< >^ b, array< >^ cov, array< ,2>^ v, array< >^ f, [ ] % est, [ ] % stat, [ ] % sestat, [ ] % z, tol, [ ] % ifail )
static member g02gn : ip: * irank: * b:  * cov:  * v: [,] * f:  * est: byref * stat: byref * sestat: byref * z: byref * tol: * ifail: byref -> unit
On entry: , the number of terms in the linear model.Constraint: .
On entry: , the rank of the dependent variables.Constraint: .
- Type: array<
>()An array of size [ip]On entry: the ip values of the estimates of the parameters of the model, .
- Type: array<
>()An array of size 
- Type: array<
,2>[,](,)[,]An array of size [ldv, ]Note: ldv must satisfy the constraint:
- Type: array<
>()An array of size [ip]On entry: , the linear function to be estimated.
On exit: if , stat contains the estimate of the function,
On exit: if , sestat contains the standard error of the estimate of the function, .
On exit: if , z contains the statistic for the test of the function being equal to zero.
On entry: , the tolerance value used in the check for estimability.
- , where is the machine precision, is used instead.
On exit: unless the method detects an error (see [Error Indicators and Warnings]).
g02gn computes the estimates of an estimable function for a generalized linear model which is not of full rank. It is intended for use after a call to g02ga, g02gb, g02gc or g02gd. An estimable function is a linear combination of the parameters such that it has a unique estimate. For a full rank model all linear combinations of parameters are estimable.
In the case of a model not of full rank the methods use a singular value decomposition (SVD) to find the parameter estimates, , and their variance-covariance matrix. Given the upper triangular matrix obtained from the decomposition of the independent variables the SVD gives
where is a by diagonal matrix with nonzero diagonal elements, being the rank of , and and are by orthogonal matrices. This leads to a solution:
being the first columns of , i.e., ; being the first columns of , and being the first elements of .
Details of the SVD are made available in the form of the matrix :
as described by g02ga, g02gb, g02gc and g02gd.
A linear function of the parameters, , can be tested to see if it is estimable by computing . If is zero, then the function is estimable, if not; the function is not estimable. In practice is tested against some small quantity .
Given that is estimable it can be estimated by and its standard error calculated from the variance-covariance matrix of , , as
Also a statistic
can be computed. The distribution of will be approximately Normal.
Golub G H and Van Loan C F (1996) Matrix Computations (3rd Edition) Johns Hopkins University Press, Baltimore
Note: g02gn may return useful information for one or more of the following detected errors or warnings.
Errors or warnings detected by the method:
Some error messages may refer to parameters that are dropped from this interface (ldv, wk) In these cases, an error in another parameter has usually caused an incorrect value to be inferred.
On entry, . In this case est is returned as true and all statistics are calculated.
The computations are believed to be stable.
The value of estimable functions is independent of the solution chosen from the many possible solutions. While g02gn may be used to estimate functions of the parameters of the model as computed by g02gk, , these must be expressed in terms of the original parameters, . The relation between the two sets of parameters may not be straightforward.
A loglinear model is fitted to a by contingency table by g02gc. The model consists of terms for rows and columns. The table is:
The number of functions to be tested is read in, then the linear functions themselves are read in and tested with g02gn. The results of g02gn are printed.