Learn R Programming

mimi (version 0.1.0)

irwls.cov: irwls.cov

Description

irwls.cov

Usage

irwls.cov(y, x, var.type, lambda1, lambda2, maxit = 100, alpha0 = NULL,
  theta0 = NULL, thresh = 1e-05, trace.it = F, max.rank = NULL,
  nu = 0.01)

Arguments

y

nxp observation matrix

x

(np)xN covariates matrix

var.type

vector of size p indicating types of columns in y (gaussian, binary, poisson)

lambda1

positive number, value of the nuclear norm regularization parameter

lambda2

positive number, value of the l1 norm regularization parameter

maxit

integer, maximum number of iterations

alpha0

matrix of size (nb of groups)x(number of variables), initial value of the group effect, default 0

theta0

matrix of size (nb of ind.)x(number of variables), initial value of the individual effect, default 0

thresh

positive number, convergence criterion

trace.it

boolean, if TRUE information about convergence will be displayes, default FALSE

max.rank

integer, maximum rank of interaction matrix theta

nu

positive number, backtracking line search parameter, default 0.01

Value

A list vith the following elements

y.imputed

the original data matrix where missing entries are imputed by their estimated means

param

the estimated parameter matrix

alpha

a (nb groups) x (nb variables) matrix containing the group effects

theta

a (nb individuals) x (nb variables) matrix containing the individual effects