Initial (RE)ML fits for the GLMM_MCMC function
This is a help function for GLMM_MCMC
function.
Besides initial (RE)ML fits, the function created variables
derived from the design matrices.
THIS FUNCTION IS NOT TO BE CALLED BY ORDINARY USERS.
GLMM_MCMCifit(do.init, na.complete, y, dist, id, time, x, z, random.intercept, xempty, zempty, Rc, Rd, p, p_fi, q, q_ri, lalpha, dimb)
do.init |
logical value indicating whether initial (RE)ML fits should be done |
na.complete |
logical value. If |
y |
see output element |
dist |
see argument |
id |
see output element |
time |
see argument |
x |
see output element |
z |
see output element |
random.intercept |
see output element |
xempty |
see output element |
zempty |
see output element |
Rc |
see output element |
Rd |
see output element |
p |
see output element |
p_fi |
see output element |
q |
see output element |
q_ri |
see output element |
lalpha |
see output element |
dimb |
see output element |
A list with the following components (some of them not included if
do.init
is FALSE
):
Y |
a list of length R with observations really used in fitting process (after removal of missing values) |
ID |
a list of length R with id's corresponding to Y |
time |
a vector |
x |
a list resulting from the original argument x after removal of observations with some missing information additionaly, intercept column is added if fixed intercept included in the model |
z |
a list resulting from the original argument z after removal of observations with some missing information additionaly, intercept column is added if random intercept included in the model |
I |
number of subjects (grouped observations) in the original data (before removing NA's) |
n |
a list of length R, each component is a vector or length I (may contain zeros if some cluster disappears for particular response due to NA's) |
Cn |
vectorized n |
sumCn |
sum(Cn) = total number of observations |
Cy_c |
vector with continuous response to be passed to C++, equal to 0 if there is no continuous response |
Cy_d |
vector with discrete response to be passed to C++, equal to 0 if there is no discrete response |
CX |
vector containing X matrices (without ones for possible intercept) to be passed to C++, equal to 0 if there are no X matrices |
CZ |
vector containing Z matrices (without ones for possible intercept) to be passed to C++, equal to 0 if there are no Z matrices |
iintcpt |
data.frame(Est, SE) with estimated intercepts and their SE, R rows, row equal to (0, 0) if there is no fixed intercept for particular response |
ifixef |
a list of length R, each component is equal to 0 if there are no fixed effects for particular response, and is equal to data.frame(Est, SE) if there are fixed effects |
isigma |
vector of length R, equal to 0 for discrete response, equal to estimated residual standard deviation for continuous response |
iEranef |
a list of length R, each component is equal to 0 if there are no random effects for particular response, and is equal to data.frame(Est, SE) with estimated means of the random effects and their std. errors if there are random effects |
iSDranef |
a list of length R, each component is equal to 0 if there are no random effects for particular response, and is equal to a vector with estimated standard deviations of the random effects if there are random effects |
ib |
a list of length R, each component is equal to 0 if there are no random effects for particular response, and a matrix with EB estimates of random effects shifted by their estimated mean if there are random effects |
is.intcpt |
logical vector of length R |
is.fixef |
logical vector of length R |
is.ranef |
logical vector of length R |
is.sigma |
logical vector of length R |
ibMat |
matrix with initial values of random effects (EB estimates from (RE)ML fits) |
ibMat2 |
matrix with alternative initial values of random effects |
iEranefVec |
vector with estimated means of random effects |
iSDranefVec |
vector with estimated standard deviations of random effects |
iSEranefVec |
vector with standard errors of estimated means of random effects |
ialpha |
vector with initial values of alpha's (including fixed intercepts) |
ialpha2 |
vector with alternative initial values of alpha's (including fixed intercepts) |
iSEalpha |
vector with standard errors of estimated values of fixed effects |
Arnošt Komárek arnost.komarek[AT]mff.cuni.cz
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.