Scilab Function identity_link - identity link function
with Scilab
Calling Sequence
- [output] = identity_link(input1,input2,request)
Parameters
- input1
: input parameter required to calculate what I need (or rather to calculate the 'request' input parameter); input1 will be expected value 'mu' if I need to calculate linear predictor 'eta' or if I need to calculate the derivative d(eta)/d(mu); input1 will be linear predictor 'eta' if I need to calculate expected value 'mu'.
- input2
: this input parameter is the sample size; input2 is only used for Binomial models and in the other models it's fixed to 1.
- request
: this input parameter is a text string and it represents what I need to calculate or rather the text string 'mu' if I need to calculate the expected value, the text string 'eta' if I need to calculate the linear predictor or the text string 'etamu' if I need to calculate the derivative d(eta)/d(mu).
- output
: value for the 'request' input parameter.
Description
This function returns the value for the 'request' input parameter using input1, input2 and the identity link.
Author
Created for Scilab by S. Favaro (Email: sfavaro@katamail.com) 20-12-03.