Displaying 20 results from an estimated 176 matches for "cohortes".
2009 May 27
2
Factor level with no cases shows up in a plot
Consider this data structure (df1) ...
Group Year PctProf FullYr
1 Never RF 2004 87 88
2 Cohort 1 2004 83 84
3 Cohort 2 2004 84 86
4 Cohort 3 2004 87 87
5 Cohort 4 2004 73 74
6 Never RF 2005 85 86
7 Cohort 1 2005 81 82
8 Cohort 2 2005 81 81
9 Cohort 3 2005 78 79
10 Cohort 4 2005 72 74
11
2009 Apr 17
0
Mischief on legend when size=1 added to geom_line
Hi Arthur:
# Just move size outside 'aes' like this:
p <- ggplot(df1, aes(Year, PctProf, group = Group))
p + geom_line(aes(color = Group),size=1)
# to make the background white just use the black and white theme:
p <- ggplot(df1, aes(Year, PctProf, group = Group))
p + geom_line(aes(color = Group),size=1) + theme_bw()
Felipe D. Carrillo
Supervisory Fishery Biologist
Department
2018 Feb 16
0
analysis of covariance and constrained parameters
Consider an analysis of covariance involving age and cohort. The goal is
to assess whether the influence of cohort
depends upon the age. The simplest case involves data as follows
value Age Cohort
x1 ????? 1?????? 3
x2?????? 1?????? 4
x3?????? 1?????? 5
x4 ????? 2 ????? 3
x5 ????? 2 ????? 4
x6 ????? 2 ????? 5
etc.
Age is a factor. The numeric response variable is value and Cohort is a
2012 May 07
1
Can't find the error in a Binomial GLM I am doing, please help
Hi all,
I can't find the error in the binomial GLM I have done. I want to use that
because there are more than one explanatory variables (all categorical) and
a binary response variable.
This is how my data set looks like:
> str(data)
'data.frame': 1004 obs. of 5 variables:
$ site : int 0 0 0 0 0 0 0 0 0 0 ...
$ sex : Factor w/ 2 levels "0","1": NA NA NA
2012 May 04
2
Binomial GLM, chisq.test, or?
Hi,
I have a data set with 999 observations, for each of them I have data on
four variables:
site, colony, gender (quite a few NA values), and cohort.
This is how the data set looks like:
> str(dispersal)
'data.frame': 999 obs. of 4 variables:
$ site : Factor w/ 2 levels "1","2": 1 1 1 1 1 1 1 1 2 2 ...
$ gender: Factor w/ 2 levels "0","1":
2008 Jun 16
1
回复: cch() and coxph() for case-cohort
I tried to compare if cch() and coxph() can generate same result for
same case cohort data
Use the standard data in cch(): nwtco
Since in cch contains the cohort size=4028, while ccoh.data size =1154
after selection, but coxph does not contain info of cohort size=4028.
The rough estimate between coxph() and cch() is same, but the lower
and upper CI and P-value are a little different. Can we
2013 Nov 12
0
geom_abline does not seem to respect groups in facet_grid [ggplot2]
Just trying to understand how geom_abline works with facets in ggplot.
By way of example, I have a dataset of student test scores. These are in a data table dt with 4 columns:
student: unique student ID
cohort: grouping factor for students (A, B, . H)
subject: subject of the test (English, Math, Science)
score: the test score for that student in that subject
The goal is to compare
2011 Aug 06
1
help with predict for cr model using rms package
Dear list,
I'm currently trying to use the rms package to get predicted ordinal
responses from a conditional ratio model. As you will see below, my
model seems to fit well to the data, however, I'm having trouble
getting predicted mean (or fitted) ordinal response values using the
predict function. I have a feeling I'm missing something simple,
however I haven't been able to
2008 Jun 30
0
How to run coxph() with time dependent cohort sampling
Now that we have case cohort model , we have 1000 people and 50 cases
Let the first 10 cases occur at the same time
second 10 "
third 10 "
fourth 10 "
fifth 10 "
How easy is it to randomly sample 50 different
cohort controls for each group?
That is:
randomly sample 50 cohort
2012 Jun 04
1
Chi square value of anova(binomialglmnull, binomglmmod, test="Chisq")
Hi all,
I have done a backward stepwise selection on a full binomial GLM where the
response variable is gender.
At the end of the selection I have found one model with only one explanatory
variable (cohort, factor variable with 10 levels).
I want to test the significance of the variable "cohort" that, I believe, is
the same as the significance of this selected model:
>
2007 Aug 02
1
Xyplot - adding model lines to plotted points
Hello,
I have written code to plot an xyplot as follows:
library(lattice)
xyplot(len~ageJan1|as.factor(cohort),groups=sex,as.table=T,strip=strip.c
ustom(bg='white',fg='white'),data=dat,
xlab="Age (January 1st)",ylab="Length (cm)",main="Linear models for male
and female cod, by cohort",type='p',
2011 Jun 28
2
coxph() - unexpected result using Crawley's seedlings data (The R Book)
Hi,
I ran the example on pp. 799-800 from Machael Crawley's "The R Book" using package survival v. 2.36-5, R 2.13.0 and RStudio 0.94.83. The model is a Cox's Proportional Hazards model. The result was quite different compared to the R Book. I have compared my code to the code in the book but can not find any differences in the function call. My results are attached as well as a
2008 Jun 16
0
cch() and coxph() for case-cohort
--------- begin included message ---------
I tried to compare if cch() and coxph() can generate same result for
same case cohort data
Use the standard data in cch(): nwtco
Since in cch contains the cohort size=4028, while ccoh.data size =1154
after selection, but coxph does not contain info of cohort size=4028.
The rough estimate between coxph() and cch() is same, but the lower
and upper CI
2008 Jul 01
0
cohort sampling
> Now that we have case cohort model , we have 1000 people and 50 cases
> Let the first 10 cases occur at the same time
> second 10 "
> third 10 "
> fourth 10 "
> fifth 10 "
> How easy is it to randomly sample 50 different
> cohort controls for each group?
>That
2012 Nov 02
0
stepAIC and AIC question
I have a question about stepAIC and extractAIC and why they can
produce different answers.
Here's a stepAIC result (slightly edited - I removed the warning
about noninteger #successes):
stepAIC(glm(formula = (Morbid_70_79/Present_70_79) ~ 1 + Cohort +
Cohort2, family = binomial, data = ghs_70_79, subset =
ghs_70_full),direction = c("backward"))
Start: AIC=3151.41
2008 Jun 12
1
cch function and time dependent covariates
----- begin included message
In case cohort study, we can fit proportional hazard regression model to
case-cohort data. In R, the function is cch() in Survival package
Now I am working on case cohort analysis with time dependent covariates
using cch() of "Survival" R package. I wonder if cch() provide this utility
or not?
The cch() manual does not say if time dependent covariate is
2004 Sep 08
1
Case-Cohort Analysis
Hi All,
I am in the middle of doing an analysis of a Case-Cohort design. I had three questions about the analysis:
a) Does any one know of some public code for developing the patient risk sets (indexed by failure time) or is there a better way to organize the data?
b) I was planning to use the Barlow weighting method. Has this or any other weighting method (Prentice, Self-Prentice) been
2003 Dec 05
3
Odds ratios for categorical variable
Dear R-users:
How does one calculate in R the odds ratios for a CATEGORICAL predictor
variable that has 4 levels. I see r-help inquiries regarding odds ratios
for what looked like a continuous predictor variable. I was wondering how
to get the pairwise odds ratios for comparisons of levels of a categorical
predictor variable. I can't seem to get the correct output using:
>
2016 Jul 11
2
Esperanza de vida librería 'demography'
Buenos días,
Necesito calcular la vida media de cada uno de nuestros modelos de producto pero tengo un histórico incompleto (para los productos más nuevos tengo la vida completa de las cohortes, pero para los más antiguos tengo sólo la parte final de la vida de las cohortes). He decidido calcular la esperanza de vida dinámica con un modelo actuarial, concretamente la librería 'demography' y tengo varias dudas sobre su uso:
1- Todas las funciones permiten el uso por 'coh...
2002 May 23
1
case-cohort sampling
Hi.
I've a dataframe with about 46000 women with about 500 cases (cancers). I
want to define a case-cohort sampling scheme, matching by age and hospital
centre. Is there anyone who has already written a code for that? It should
be something similar to the stcacoh macro in Stata.
TIA,
Stefano
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list