Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: glm
See also: log xlnxdy

Quantlet: xlny
Description: computes x.*log(y), with check for x=y=0, used for GLM macros.

Usage: l = xlny(x,y)
Input:
x n x k matrix
y n x k matrix
Output:
l n x k matrix

Example:

library("glm")

x = 0|0|1|1|1

y = 0|0.5|1|0|0.5

xlny(x,y)

Result:

Contents of l

[1,]        0 

[2,]        0 

[3,]        0 

[4,]     -Inf 

[5,] -0.69315 


Library: glm
See also: log xlnxdy

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Author: Marlene Mueller, 2000/05/18
(C) MD*TECH Method and Data Technologies, 21.9.2000