Description Usage Arguments Value Examples

View source: R/VariousFunctions.R

Function finding the Bayesian Model given the KMeans clustering algorithm

1 | ```
KMeansModel(train, trainpharmat, num_clusters, cl)
``` |

`train` |
matrix of train features |

`trainpharmat` |
matrix of training of side_effects |

`num_clusters` |
number of clusters desired |

`cl` |
results of the KMeans model clustering function |

A Bayesian matrix of model for predictions, given the KMeans clustering

1 2 3 4 | ```
#First call the KMeans function and obtain cl (list of clusters)
#train is the feature matrix of train
#trainpharmat is the side effect matrix of train
#A<-KMeansModel(train,trainpharmat,4,cl)
``` |

```
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.