-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathREADME.Rmd
142 lines (106 loc) · 4.56 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
```{r, echo=FALSE, include=FALSE}
## Get VERSION and create file names
ver <- sub(x=grep(x=readLines("DESCRIPTION"), pattern="^Version: ",
value=TRUE),
pattern="^Version: ", replacement="")
pkg.name <- "mcglm_"
pkg.source <- paste0(pkg.name, ver, ".tar.gz")
pkg.win <- paste0(pkg.name, ver, ".zip")
```
# mcglm `r ver`
[![Build Status](https://travis-ci.org/wbonat/mcglm.svg?branch=master)](https://travis-ci.org/wbonat/mcglm)
Build status for the stable version (`master` branch)
[![Build Status](https://travis-ci.org/wbonat/mcglm.svg?branch=devel)](https://travis-ci.org/wbonat/mcglm)
Build status for the development version (`devel` branch)
The `mcglm` package fits multivariate covariance generalized linear models
(Bonat and Jorgensen, 2016).
## Introduction
`mcglm` fits multivariate covariance generalized linear models.
It allows use a different linear predictor for each response variable of a
multivariate response. The response variable can be continous or
dicrete, like counts and binary and also limited continuos ou
discrete/continuous inflated responses. The most important and relevant
feature is that many covariance structures can be used to model the
relations among variables.
This package is part of the Thesis of the first author.
## Download and install
### Linux/Mac
Use the `devtools` package (available from
[CRAN](http://cran-r.c3sl.ufpr.br/web/packages/devtools/index.html)) to
install automatically from this GitHub repository:
```{r, eval=FALSE}
library(devtools)
install_github("wbonat/mcglm")
```
Alternatively, download the package tarball: [`r pkg.source`][]
and run from a UNIX terminal (make sure you are on the container file
directory):
```{r, echo=FALSE, comment=NA}
cmd <- paste("R CMD INSTALL -l /path/to/your/R/library", pkg.source)
cat(cmd, sep = "\n")
```
Or, inside an `R` session:
```{r, echo=FALSE, comment=NA}
inst <- paste0("install.packages(", "\"", pkg.source, "\"", ", repos = NULL,\n",
" lib.loc = \"/path/to/your/R/library\",\n",
" dependencies = TRUE)")
cat(inst, sep = "\n")
```
Note that `-l /path/to/your/R/library` in the former and `lib.loc =
"/path/to/your/R/library"` in the latter are optional. Only use it if
you want to install in a personal library, other than the standard R
library.
### Windows
Download Windows binary version: [`r pkg.win`][] (**do not unzip
it under Windows**), put the file in your working directory, and from
inside `R`:
```{r, echo=FALSE, comment=NA}
instw <- paste0("install.packages(", "\"", pkg.win, "\"", ", repos = NULL,\n",
" dependencies = TRUE)")
cat(instw, sep = "\n")
```
### Development version
By default, if you use `devtools::install_github()`, or download any of the
package tarball or Windows binary version, it will install the stable
version of the package (from the `master` branch of this repository).
If you want to install the development version, you can use
```r
library(devtools)
install_github("wbonat/mcglm", ref = "devel")
```
Note that the development version can contain bugs and other unknown
features, so use it at your own risk!
## Authors
- [Wagner Hugo Bonat][] (author and main developer)
- [Walmes Marques Zeviani][] (contributor)
- [Fernando de Pol Mayer][] (contributor)
## Documentation
The reference manual in PDF can be found here: [mcglm-manual.pdf][]
## Contributing
This R package is develop using [`roxygen2`][] for documentation and
[`devtools`] to check and build. Also, we adopt the [Gitflow worflow][]
in this repository. Please, see the
[instructions for contributing](./CONTRIBUTING.md) to collaborate.
## License
This package is released under the
[GNU General Public License (GPL) v3.0][].
See [LICENSE](./LICENSE)
<!-- links -->
```{r, echo=FALSE, include=FALSE}
pkg.source.link <- paste0(
"https://github.com/wbonat/mcglm/raw/master/downloads/",
pkg.source)
pkg.win.link <- paste0(
"https://github.com/wbonat/mcglm/raw/master/downloads/",
pkg.win)
```
[GNU General Public License (GPL) v3.0]: http://www.gnu.org/licenses/gpl-3.0.html
[`roxygen2`]: https://github.com/klutometis/roxygen
[`devtools`]: https://github.com/hadley/devtools
[`r pkg.source`]: `r pkg.source.link`
[`r pkg.win`]: `r pkg.win.link`
[mcglm-manual.pdf]: https://github.com/wbonat/mcglm/raw/master/downloads/mcglm-manual.pdf
[Gitflow worflow]: http://nvie.com/posts/a-successful-git-branching-model/
[Wagner Hugo Bonat]: http://www.leg.ufpr.br/~wagner
[Walmes Marques Zeviani]: http://www.leg.ufpr.br/~walmes
[Fernando de Pol Mayer]: http://www.leg.ufpr.br/~fernandomayer