Standard deviation and p-values of the estimated model parameters
Standard deviation and p-values of the estimated model parameters
This function calculates the standard deviations and the p-values of the estimated model parameters. The standard deviations are obtained from the asymptotic Fisher information matrix in the fitting algorithms modelfit1, modelfit2, modelfit3, depending of the current multinomial mixed model.
ci(a, F)
Arguments
a: vector with the estimated parameters obtained from modelfit1, modelfit2 or modelfit3.
F: inverse of the Fisher Information Matrix obtained from modelfit1, modelfit2 or modelfit3.
Returns
A list containing the following components. - Std.dev: vector with the standard deviations of the parameters. The parameters are sorted per category.
p.value: vector with the p-values of the parameters for testing H0:a=0.
Examples
k=3#number of categories of the response variablepp=c(1,1)#vector with the number of auxiliary variables in each categorydata(simdata)#datamod=1#Type of modeldatar=data.mme(simdata,k,pp,mod)#Model fitresult=modelfit1(pp,datar$Xk,datar$X,datar$Z,datar$initial,datar$y[,1:(k-1)], datar$n,datar$N)beta=result[[8]][,1]#fixed effectsFisher=result[[3]]#Fisher information matrix##Standard deviation and p-valuesres=ci(beta,Fisher)
References
Lopez-Vizcaino, ME, Lombardia, MJ and Morales, D (2013). Multinomial-based small area estimation of labour force indicators. Statistical Modelling, 13, 153-178.