Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GOSe-6mo-imputation-paper
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Kevin Kunzmann
GOSe-6mo-imputation-paper
Commits
2350ad89
Commit
2350ad89
authored
Feb 08, 2019
by
Kevin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed msm-age
parent
90809689
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
models/msm_age/fit.R
models/msm_age/fit.R
+9
-6
No files found.
models/msm_age/fit.R
View file @
2350ad89
...
...
@@ -31,11 +31,14 @@ df_gose <- readRDS(inputfile) %>%
# translate to msm formatting
tmp
<-
df_gose
%>%
group_by
(
gupi
)
%>%
summarize_all
(
first
)
%>%
mutate
(
Outcomes.DerivedCompositeGOSEDaysPostInjury
=
config
$
t_out_msm
+
.5
,
# needed to offset
Outcomes.DerivedCompositeGOSE
=
99
rbind
(
df_gose
%>%
group_by
(
gupi
)
%>%
summarize_all
(
first
)
%>%
mutate
(
Outcomes.DerivedCompositeGOSEDaysPostInjury
=
config
$
t_out_msm
+
.5
,
# needed to offset
Outcomes.DerivedCompositeGOSE
=
99
)
)
%>%
arrange
(
gupi
,
Outcomes.DerivedCompositeGOSEDaysPostInjury
)
%>%
mutate
(
...
...
@@ -71,7 +74,7 @@ fit <- msm(
subject
=
tmp
$
gupi
,
data
=
tmp
,
obstype
=
tmp
$
obstype
,
covariates
=
~
a
ge
,
covariates
=
~
Subject.A
ge
,
gen.inits
=
TRUE
,
qmatrix
=
Q
,
censor
=
99
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment