Displaying 20 results from an estimated 8000 matches similar to: "some questions about longitudinal study with baseline"
2008 Sep 16
2
creating baseline variable from a longitudinal sequence
Dear R-help mailing list,
Kindly help me out with this problem:
I have a dataset that is in the format below,
ID time Y Age
1 0 195 23.1
1 2 204 23.3
1 4 202 23.5
2 0 170 22.0
2 3 234 22.2
3 0 208 24.4
3 2 194 24 .7
3 3 204 24.9
I wish to remove all the measurements at time point 0 and convert them to a baseline variable as follows;
ID time Y
2007 Jan 25
1
summary of the effects after logistic regression model
Dear all, my aim is to estimate the efficacy over time of a treatment for
headache prevention. Data consist of long sequences of repeated binary
outcomes (1 if the subject has at least 1 episode of headache , 0
otherwise) on subjects randomized to placebo or treatment.
I have fit a logistic regression model with Huber-White cluster sandwich
covariance estimator.
I have put in the model the
2011 Jan 18
0
analysis strategy - baseline and repeated measure
Hi, assume that I have a repeated measure dataset with 3 time points: baseline,
day 5 and day 10. There are 4 treatment groups (vehicle, treatment 1, treatment
2 and treatment 3). 20 subjects per treatment group. A simple straight-forward
way to analyze the data is to use mixed model:
model 1:
obj <- lmer(y ~ treatment * time +(time|subject)) where time is numeric with
value 0,5 and 10.
2013 Sep 13
1
Creating dummy vars with contrasts - why does the returned identity matrix contain all levels (and not n-1 levels) ?
Hello,
I have a problem with creating an identity matrix for glmnet by using the
contrasts function.
I have a factor with 4 levels.
When I create dummy variables I think there should be n-1 variables (in this
case 3) - so that the contrasts would be against the baseline level.
This is also what is written in the help file for 'contrasts'.
The problem is that the function
2018 Mar 05
0
data analysis for partial two-by-two factorial design
> On Mar 5, 2018, at 2:27 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote:
>
> David:
>
> I believe your response on SO is incorrect. This is a standard OFAT (one factor at a time) design, so that assuming additivity (no interactions), the effects of drugA and drugB can be determined via the model you rejected:
>> three groups, no drugA/no drugB, yes drugA/no drugB,
2018 Mar 05
2
data analysis for partial two-by-two factorial design
But of course the whole point of additivity is to decompose the combined
effect as the sum of individual effects.
"Mislead" is a subjective judgment, so no comment. The explanation I
provided is standard. I used it for decades when I taught in industry.
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into
2018 Mar 05
0
data analysis for partial two-by-two factorial design
> On Mar 5, 2018, at 3:04 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote:
>
> But of course the whole point of additivity is to decompose the combined effect as the sum of individual effects.
Agreed. Furthermore your encoding of the treatment assignments has the advantage that the default treatment contrast for A+B will have a statistical estimate associated with it. That was a
2010 Aug 20
1
xyplot plot with groups
Hi, I am a beginner of xyplot() (or lattice package). On one hand, I immediately
realized it's a very powerful utility. On the other hand, there are too many
things for me to learn. Still haven't figure out a generalization of the syntax
and usage under many different circumstances.
Let me give an example dataset:
2007 Sep 26
1
Repeated tests against baseline
I came across a post by Karl Knoblick regarding the modeling of longitudinal data (see https://stat.ethz.ch/pipermail/r-help/2007-May/132137.html). I am often asked by physicians to perform what Karl refers to in his post as option 1: to perform paired t-tests against baseline at each follow up time point (30 days, 90 days, 6 months, etc.). Unlike Karl's example, however, many of the trials
2012 Apr 27
2
Deleting observations from baseline that don't appear in follow up
Hello all,
I'm almost embarrassed to post this , it seems so easy. Suppose I have a
baseline and follow up survey but some people are missing in the follow up:
> baseline<-data.frame(id=c(3,5,7,9,12), data= runif(5))
> follow.up<-data.frame(id=c(3,7,9,12), data= runif(4))
> baseline
id data
1 3 0.66771988
2 5 0.28794744
3 7 0.01892821
4 9 0.64863175
5 12 0.86485882
2011 Jan 18
2
Baseline terms for lrm
Dear R-help and Prof. Harrell:
My question concerns the baseline state for continuous variable in lrm()
within the RMS package.
I have a model which can be reduced to:
lrm(FT ~ rcs(V1, c(0, 1,5))
The model makes perfect sense if the baseline state is where V1>=5 but
the model makes no sense if the baseline category is 0 (which I had
expected).
Can someone point me to a reference, or
2006 Aug 24
1
how to constrast with factorial experiment
Hello, R users,
I have two factors (treat, section) anova design experiment where
there are 3 replicates. The objective of the experiment is to test if
there is significant difference of yield between top (section 9 to 11)
and bottom (section 9 to 11) of the fruit tree under treatment. I
found that there are interaction between two factors. I wonder if I
can contrast means from levels of
2005 Jun 10
1
Estimate of baseline hazard in survival
Dear All,
I'm having just a little terminology problem, relating the language used in
the Hosmer and Lemeshow text on Applied Survival Analysis to that of the
help that comes with the survival package.
I am trying to back out the values for the baseline hazard, h_o(t_i), for
each event time or observation time.
Now survfit(fit)$surv gives me the value of the survival function,
S(t_i|X_i,B),
2008 Oct 15
2
Network meta-analysis, varConstPower in nlme
Dear Thomas Lumley, and R-help list members,
I have read your article "Network meta-analysis for indirect treatment
comparisons" (Statist Med, 2002) with great interest. I found it very
helpful that you included the R code to replicate your analysis;
however, I have had a problem replicating your example and wondered if
you are able to give me a hint. When I use the code from the
2007 Mar 14
1
How to transform matrices to ANOVA input datasets?
Hello, R experts,
I have a list called dataHP which has 30 elements (m1, m2, ..., m30).
Each element is a 7x6 matrix holding yield data from two factors
experimental design, with treatment in column, position in row. For
instance, the element 20 is:
dataHP[[20]]
col1 col2 col3 trt1 trt2 trt3
[1,] 22.0 20.3 29.7 63.3 78.5 76.4
[2,]
2009 Dec 16
1
Baseline survival estimate
Dear R-help,
I am trying to obtain the baseline survival estimate of a fitted Cox model
(S_0 (t)). I know that previous posts have said use 'basehaz' but this
gives the baseline hazard function and not the baseline survival estimate.
Is there a way to obtain the baseline survival estimate or do I have to use
the formula which does something like S(t) = exp[- the integral from 0 to t
of
2012 Jan 27
1
Confused with Student's sleep data description
I am confused whether Student's sleep data "show the effect of two
soporific drugs" or Control against Treatment (one drug). The reason
is the next:
> require(stats)
> data(sleep)
> attach(sleep)
> extra[group==1]
numeric(0)
> group
[1] Ctl Ctl Ctl Ctl Ctl Ctl Ctl Ctl Ctl Ctl Trt Trt Trt Trt Trt Trt Trt Trt Trt
[20] Trt
Levels: Ctl Trt
> sleep$group
[1] 1 1 1 1 1
2008 Jun 04
1
"& not meaningful for factors"
I am trying to define groupings from levels of factor variables and this the warning message that R give
"& not meaningful for factors".
The nature of my task is this. I have a variable stage which has the levels (1B, 2A, 2B) - these are the AJCC TNM stages of cancer, and another variable diameter with factor levels ("=< 4", "4 - 6.5, > 6.5; limit values are
2010 Dec 01
2
Lattice dotplots
Dear,
I have a dataset with 4 subjects (see ID in example), and 4 treatment (see
TRT in example) which are tested on 2 locations and in 3 blocs. By using
Lattice dotplot, I made a graph that shows the raw data per location and
per bloc. In that graph, I would like to have a reference line per bloc
that refers to the first treatment (T1). However, I can not find how to do
that.
I can make
2011 Apr 20
2
survexp with weights
Hello,
I probably have a syntax error in trying to generate an expected
survival curve from a weighted cox model, but I can't see it. I used
the help sample code to generate a weighted model, with the addition
of a "weights=albumin" argument (I only chose albumin because it had
no missing values, not because of any real relevance). Below are my
code with the resulting error