Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mcglm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leg
mcglm
Commits
8a613d91
Commit
8a613d91
authored
9 years ago
by
Walmes Marques Zeviani
Browse files
Options
Downloads
Patches
Plain Diff
Rd files generated by build().
parent
c059866a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
data-raw/ahs.R
+1
-1
1 addition, 1 deletion
data-raw/ahs.R
man/ahs.Rd
+55
-21
55 additions, 21 deletions
man/ahs.Rd
man/plot.mcglm.Rd
+2
-1
2 additions, 1 deletion
man/plot.mcglm.Rd
with
58 additions
and
23 deletions
data-raw/ahs.R
+
1
−
1
View file @
8a613d91
...
...
@@ -9,7 +9,7 @@ str(ahs)
## save(ahs, file="../data/ahs.RData")
##----------------------------------------------------------------------
## Include in the @examples
## Include in the @examples
.
library
(
lattice
)
library
(
latticeExtra
)
...
...
This diff is collapsed.
Click to expand it.
man/ahs.Rd
+
55
−
21
View file @
8a613d91
...
...
@@ -22,41 +22,40 @@ The Australian health survey was used by Bonat and
\itemize{
\item \code{sex} - Factor
, two
levels
(0-Male; 1-F
emale
)
.
\item \code{sex} - Factor
with
levels
\code{male} and \code{f
emale
}
.
\item \code{age} - Respondent's age in years divided by 100.
\item \code{income} - Respondent's annual income in Australian
dollars divided by 1000.
\item \code{levyplus} -
Factor, two levels (1- i
f respondent is
covered by
private health insurance fund for private patients in
public
hospital
(
with doctor of choice
); 0 -
otherwise).
\item \code{levyplus} -
Coded factor. I
f respondent is
covered by
private health insurance fund for private patients in
public
hospital with doctor of choice
(1) or
otherwise
(0
).
\item \code{freepoor} -
Factor, two levels (1 - i
f respondent is
covered by
government because low income, recent immigrant,
unemployed; 0 -
otherwise).
\item \code{freepoor} -
Coded factor. I
f respondent is
covered by
government because low income, recent immigrant,
unemployed (1)
or
otherwise
(0
).
\item \code{freerepa} -
Factor, two levels (1 - i
f respondent is
covered free
by government because of old-age or disability
pension, or
because invalid veteran or family of deceased
veteran; 0 -
otherwise).
\item \code{freerepa} -
Coded factor. I
f respondent is
covered free
by government because of old-age or disability
pension, or
because invalid veteran or family of deceased
veteran (1) or
otherwise
(0
).
\item \code{illnes} - Number of illnesses in past 2 weeks, with 5 or
more week
s coded as 5.
illnesse
s coded as 5.
\item \code{actdays} - Number of days of reduced activity in the past
two weeks due to illness or injury.
\item \code{hscore} - Respondent's general health questionnaire score
using Goldberg's method
; h
igh score indicates poor health.
using Goldberg's method
. H
igh score indicates poor health.
\item \code{chcond1} - Factor, two levels (1 - if respondent has
chronic condition(s) but is not limited in activity; 0 -
otherwise).
\item \code{chcond2} - Factor, two levels (1 if respondent has
chronic condition(s) and is limited in activity; 0 - otherwise).
\item \code{chcond} - Factor with three levels. If respondent has
chronic condition(s) and is limited in activity (\code{limited}),
or if the respondent has chronic condition(s) but is not limited
in activity (\code{nonlimited}) or otherwise (\code{otherwise},
reference level).
\item \code{Ndoc} - Number of consultations with a doctor or
specialist (response variable).
...
...
@@ -74,9 +73,44 @@ The Australian health survey was used by Bonat and
\item \code{Nmed} - Total number of prescribed and non prescribed
medications used in the past two days.
\item \code{id} - Respondent's index.
}
}
\examples{
library(lattice)
library(latticeExtra)
data(ahs, package="mcglm")
str(ahs)
xt <- xtabs(~age+sex, data=ahs)
mosaicplot(xt)
xt <- xtabs(~age+chcond, data=ahs)
mosaicplot(xt)
useOuterStrips(
combineLimits(
xyplot(Ndoc+Nndoc+Nadm+Nhosp+Nmed~age|sex,
outer=TRUE, data=ahs,
jitter.x=TRUE, amount=0.01,
type=c("p", "a"),
scales=list(y=list(relation="free")),
ylab="Number or occurences",
xlab="Age (years/100)")
)
)
useOuterStrips(
combineLimits(
xyplot(Ndoc+Nndoc+Nadm+Nhosp+Nmed~income|sex,
outer=TRUE, data=ahs,
jitter.x=TRUE, amount=0.01,
type=c("p", "a"),
scales=list(y=list(relation="free")),
ylab="Number or occurences",
xlab="Age (years/100)")
)
)
}
\keyword{datasets}
This diff is collapsed.
Click to expand it.
man/plot.mcglm.Rd
+
2
−
1
View file @
8a613d91
...
...
@@ -2,7 +2,8 @@
% Please edit documentation in R/mc_S3_methods.R
\name{plot.mcglm}
\alias{plot.mcglm}
\title{Default Multivariate Covariance Generalized Linear models plotting}
\title{Default Multivariate Covariance Generalized Linear models
plotting}
\usage{
\method{plot}{mcglm}(x, type = "residuals", ...)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment