Comments (1)
Zur Dokumentation des R-Pakets:
Der beste Weg, Funktionen zu dokumentieren, ist in den R-Skripts direkt über den Funktionen sogenannte Roxygen Tags einzubauen (das sind Kommentare, die einer bestimmten Struktur folgen, ist eigentlich ganz einfach). Ich hab das in dem File conf.R mal gemacht, so kann das z.B. aussehen (sehr kurz gehalten, etwas detailliertere Erklärungen wären natürlich besser):
#' Compute confidence intervals for the estimates (kurze Beschreibung, was die Funktion macht)
#'
#' @param fit A fitted model (hier werden alle Inputs definiert und kurz beschrieben)
#' @param alpha confidence level, default 0.95
#'
#' @return A list containing the following elements: (hier werden alle Outputs definiert und kurz beschrieben)
#' \item{lower_limit}{the lower limits of the intervals}
#' \item{estimate}{the estimates}
#' \item{upper_limit}{the upper limits of the intervals}
#'
#' @examples (hier werden Beispiele gegeben, wie die Funktion angewendet werden kann)
#' conf_int(fit = fit)
Die ersten drei Blöcke sollten bei jeder Funktion vorhanden sein, der letzte Block ist eigentlich nur für Funktionen sinnvoll, die vom User auch verwendet werden (also nicht für interne Funktionen, die nur von anderen Funktionen verwendet werden). Man kann das natürlich noch viel detaillierter machen und z.B. Literatur, Formeln o.ä. einbauen, aber da können wir ja später noch drüber sprechen, falls das relevant ist. Der Vorteil dabei ist, das man so mit einem Befehl automatisch alle Dokumentations-Files erstellen kann, die notwendig sind - sobald wir das haben, können wir das Package bestimmt an einem Tag oder so fertigstellen.
Im moveHMM-Package wurde die Dokumentation auch mit Roxygen gemacht, da kann man sich gut inspirieren lassen: https://github.com/TheoMichelot/moveHMM/tree/master/R
from fhmm.
Related Issues (20)
- Setup JSS paper template.
- Function for LaTeX output
- Implement wrapper for full functionality of fHMM
- Falsche state-dependent distribution bei 3 States HOT 1
- Documentation issues
- Odd graphics for sim. HHMM
- Inconsistent reference style in the vignettes HOT 2
- Flowchart with brackets
- `coef` function for model coefficients
- Update model with new data HOT 3
- Check if data file is importable HOT 1
- Lookahead bias ? HOT 2
- Document `fHMM_data` HOT 1
- Document `fHMM_model` HOT 1
- Allow for `data.frame` argument to `set_controls()` HOT 1
- Hello, about legends of hierarchy HMM plots. HOT 1
- How to obtain the probability transition matrix and emission matrix of hidden states? HOT 3
- Error when specifying `states = 5` HOT 4
- Implement Poisson state-dependent distribution
- Update `download_data()`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fhmm.