Skip to content

Commit

Permalink
Fixed documentation so that R CMD check succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
melff committed May 11, 2020
1 parent b7bacc4 commit e6d0674
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion pkg/R/mblogit.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#' of \code{model.matrix.default}.
#' @param control a list of parameters for the fitting process.
#' See \code{\link{mclogit.control}}
#' @param \dots arguments to be passed to \code{mclogit.control}
#' @param \dots arguments to be passed to \code{mclogit.control} or \code{mmclogit.control}
#'
#' @return \code{mblogit} returns an object of class "mblogit", which has almost the
#' same structure as an object of class "\link[stats]{glm}". The difference are
Expand Down
15 changes: 7 additions & 8 deletions pkg/man/mblogit.Rd

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

8 changes: 5 additions & 3 deletions pkg/man/mclogit.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ mclogit(formula, data=parent.frame(), random=NULL,
subset, weights = NULL, offset=NULL, na.action = getOption("na.action"),
model = TRUE, x = FALSE, y = TRUE, contrasts=NULL,
start=NULL,
control=mclogit.control(\dots), \dots)
control=if(length(random))
mmclogit.control(\dots)
else mclogit.control(\dots), \dots)
}
\arguments{
\item{formula}{a model formula: a symbolic description of the
Expand Down Expand Up @@ -96,7 +98,7 @@ mclogit(formula, data=parent.frame(), random=NULL,
See \code{\link{mclogit.control}} }

\item{\dots}{
arguments to be passed to \code{mclogit.control}
arguments to be passed to \code{mclogit.control} or \code{mmclogit.control}
}

}
Expand Down Expand Up @@ -142,4 +144,4 @@ summary(mclogit(
data=within(electors,party.time<-interaction(party,time))))
}
\keyword{models}
\keyword{regression}
\keyword{regression}
5 changes: 2 additions & 3 deletions pkg/man/mclogit.fit.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,15 @@
\usage{
mclogit.fit(y, s, w, X, start = NULL, offset = NULL, control = mclogit.control())

mmclogit.fitPQL(y, s, w, X, Z, G, groups, start,
offset = NULL, control = mclogit.control())
mmclogit.fitPQL(y, s, w, X, Z, groups, start,
offset = NULL, control = mmclogit.control())
}
\arguments{
\item{y}{a response vector. Should be binary.}
\item{s}{a vector identifying individuals or covariate strata}
\item{w}{a vector with observation weights.}
\item{X}{a model matrix; required.}
\item{Z}{the random effects design matrix.}
\item{G}{a list of design matrices for the (co-)variance parameters.}
\item{groups}{a list of grouping factors.}
\item{start}{an optional numerical vector of starting values
for the coefficients.
Expand Down
6 changes: 6 additions & 0 deletions pkg/man/mclogit_control.Rd
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
\name{mclogit.control}
\alias{mclogit.control}
\alias{mmclogit.control}

\title{Control Parameters for the Fitting Process}
\description{
Expand All @@ -9,6 +10,9 @@
\usage{
mclogit.control(epsilon = 1e-08,
maxit = 25, trace=TRUE)
mmclogit.control(epsilon = 1e-08,
maxit = 25, trace=TRUE,
trace.inner=FALSE)
}
\arguments{
\item{epsilon}{positive convergence tolerance \eqn{\epsilon};
Expand All @@ -17,6 +21,8 @@ mclogit.control(epsilon = 1e-08,
\item{maxit}{integer giving the maximal number of IWLS or PQL iterations.}
\item{trace}{logical indicating if output should be produced for each
iteration.}
\item{trace.inner}{logical indicating if output should be produced for each
inner iteration of the PQL method.}
}
\value{
A list.
Expand Down

0 comments on commit e6d0674

Please sign in to comment.