Learn R Programming

cds (version 1.0.4)

group.ALS: Alternating Least Squares with Groups for Constrained Dual Scaling

Description

Alternating least-sqaures for estimating row and column scores in constrained dual scaling, where different groups are allowed for.

Usage

group.ALS(
  a,
  m,
  q,
  G,
  Fr.cent,
  eps = 0.1,
  maxit = 50,
  Mmat,
  info.level = 2,
  const,
  K,
  n,
  tol
)

Arguments

a

A 2n-vector of row scores.

m

Integer; the number of items.

q

Integer; the rating scale from 1:q.

G

An indicator matrix of size n by K.

Fr.cent

The centred F_r matrix.

eps

The numerical tolerance level for the loss.

maxit

Integer; the maximum number of iterations allowed.

Mmat

Matrix of spline basis functions.

info.level

Integer controlling the amount of information printed.

const

The constant part of the loss function.

K

The number of latent classes.

n

The number of samples.

tol

tolerance tol passed to lsei of the limSolve package