# Calculates the gradient for the objectiveICA function

### Description

Uses a series of C functions to calculate the derivative of the objectiveICA function. Offers a choice between the Huber substitution function or the logCosh function.

### Usage

1 | ```
gradientICA(T, E, N, C, PH, method = c("Huber", "Cosh"))
``` |

### Arguments

`T` |
Vector of angles of length p |

`E` |
Financial time series data of dimension nxd |

`N` |
Vector of lags that MUST be arranged in ascending order |

`C` |
Real number C which is used for Huber substitution or Logcosh substitution |

`PH` |
Phi matrix of weights of dimension q*q |

`method` |
Choice between use of Huber or logCosh substitution methods |

### Details

More details to help above

### Value

Gradient of objective value

### Author(s)

Erjie Ang ea75@cornell.edu

### See Also

See

### Examples

1 2 3 4 5 6 7 8 9 10 11 12 |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.