Skip to content

Commit

Permalink
adding old usage of roxygen
Browse files Browse the repository at this point in the history
  • Loading branch information
AnestisTouloumis committed Aug 12, 2020
1 parent 6449f1d commit 3853ed2
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 54 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ BugReports: http://github.com/AnestisTouloumis/SimCorMultRes/issues
License: GPL-3
VignetteBuilder: knitr
RoxygenNote: 7.1.1
Roxygen: list(old_usage = TRUE)
Encoding: UTF-8
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ browseVignettes("SimCorMultRes")
To cite R package SimCorMultRes in publications, please use:
Touloumis, A. (2016). Simulating Correlated Binary and
Multinomial Responses under Marginal Model Specification: The
SimCorMultRes Package. The R Journal 8:2, 79-91.
Touloumis, A. (2016). Simulating Correlated Binary and Multinomial
Responses under Marginal Model Specification: The SimCorMultRes
Package. The R Journal 8:2, 79-91.
A BibTeX entry for LaTeX users is
Expand Down
13 changes: 3 additions & 10 deletions man/rbin.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 3 additions & 9 deletions man/rmult.acl.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 3 additions & 9 deletions man/rmult.bcl.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 3 additions & 10 deletions man/rmult.clm.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 3 additions & 10 deletions man/rmult.crm.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions vignettes/SimCorMultRes.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ simulated_nominal_dataset <- rmult.bcl(clsize = cluster_size,
suppressPackageStartupMessages(library("multgee"))
# fitting a GEE model
nominal_gee_model <- nomLORgee(y ~ x1 + x2,
data = simulated_nominal_dataset$simdata, id = id,
repeated = time, LORstr="time.exch")
data = simulated_nominal_dataset$simdata,
id = id, repeated = time,
LORstr = "time.exch")
# checking regression coefficients
round(coef(nominal_gee_model), 2)
```
Expand Down Expand Up @@ -213,7 +214,8 @@ x <- rnorm(sample_size * cluster_size)
categories_no <- 5
# correlation matrix for the NORTA method
latent_correlation_matrix <- diag(1, (categories_no - 1) * cluster_size) +
kronecker(toeplitz(c(0, rep(0.24, categories_no - 2))), matrix(1, cluster_size, cluster_size))
kronecker(toeplitz(c(0, rep(0.24, categories_no - 2))),
matrix(1, cluster_size, cluster_size))
# simulation of ordinal responses
simulated_ordinal_dataset <- rmult.crm(clsize = cluster_size,
intercepts = beta_intercepts,
Expand Down

3 comments on commit 3853ed2

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vignettes/SimCorMultRes.Rmd:57:1: style: Lines should not be more than 80 characters.

Suppose the aim is to simulate nominal responses from the marginal baseline-category logit model
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vignettes/SimCorMultRes.Rmd:57:1: style: Lines should not be more than 80 characters.

Suppose the aim is to simulate nominal responses from the marginal baseline-category logit model
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vignettes/SimCorMultRes.Rmd:57:9: error: unexpected symbol

Suppose the aim is to simulate nominal responses from the marginal baseline-category logit model
        ^

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vignettes/SimCorMultRes.Rmd:57:1: style: Lines should not be more than 80 characters.

Suppose the aim is to simulate nominal responses from the marginal baseline-category logit model
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vignettes/SimCorMultRes.Rmd:57:1: style: Lines should not be more than 80 characters.

Suppose the aim is to simulate nominal responses from the marginal baseline-category logit model
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vignettes/SimCorMultRes.Rmd:57:9: error: unexpected symbol

Suppose the aim is to simulate nominal responses from the marginal baseline-category logit model
        ^

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vignettes/SimCorMultRes.Rmd:57:1: style: Lines should not be more than 80 characters.

Suppose the aim is to simulate nominal responses from the marginal baseline-category logit model
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vignettes/SimCorMultRes.Rmd:57:1: style: Lines should not be more than 80 characters.

Suppose the aim is to simulate nominal responses from the marginal baseline-category logit model
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vignettes/SimCorMultRes.Rmd:57:9: error: unexpected symbol

Suppose the aim is to simulate nominal responses from the marginal baseline-category logit model
        ^

Please sign in to comment.