Displaying 20 results from an estimated 70 matches for "ethnic".
Did you mean:
ethic
2012 Nov 26
1
Plotting an adjusted kaplan-meier curve
...e survfit of my coxph, I think it displays a curve for
every single individual factor in my coxph, whereas I would like it to only display the
adjusted curves for when Treatment==1 and Treatment==0. How can I do this?
A simplified example of my code with only one effect-modifier is:
simple.cox.ethnicity <- coxph(Surv(whenfailed,failed) ~ factor(Treatment) + factor(ethnicity)) #I've my data are attached already
survfit.simple.cox.ethnicity <- survfit(simple.cox.ethnicity,survmat) #survmat is a data.frame that contains Treatment and ethnicity
plot(survfit.simple.cox.ethnicity, col=c(&qu...
2018 Oct 16
2
Comprobar los nombres de columnas entre varios dataframes
Buenas tardes,
Quiero aplicar la función rbind y necesito tener los mismos nombres de
columnas. Como tengo unas 195 variables en cada dataframe, necesito
hacerlo de una forma rápida. Tengo 9 bases de datos y tengo que fusionar
todas. ¿Como puedo comprobar que los nombres de las variables son los
mismos? Y de lo contrario, ¿como detecto las diferencias?
He probado con
2011 Jun 27
1
Recoding several variables into one use the most recent data
Hi,
I have the following data management issue. I am trying to combine multiple
years of ethnicity data into one variable called ethnic. The data looks
similar to the following
id ethnic07 ethnic08 ethnic09 ethnic10
1 1 1 1 1
2 1 1 2 2
3 3 4 4...
2012 Nov 26
1
Plotting an adjusted survival curve
...ed to the standardized incidence ratio concept found in epidemiology.
To answer your technical question:
fit <- coxph(Surv(.........
mysurv <- survfit(fit, newdata= mydata)
This will give a set of predicted curves, one for each observation in mydata. If we
assume 2 treatments and 4 ethnicities, this means that there are 8 possible predicted
curves. You can certainly take the curves for "trt=1, white" and "trt=2, white", plot
them together on one graph, and call this your "adjusted" survival curves; the mydata data
set would have two observations. T...
2007 Oct 27
2
Current value of object.method in helper
...work!
select(object, method, selections, options, html_options)
end
Names of object and method are passed in. How do I get current value
of object? object[method] does not work because it is just a string
not a real object.
Say if have a model called Person which has a field called
"ethnicity".
There is an instance @person, and I will call
validation_select(''person'', ''ethnicity) in my view''.
Is there any way, I can get the current value of @person.ethnicity in
view helper?
Thanks
Glenn
--~--~---------~--~----~------------~-------~--~----~...
2012 Nov 29
1
instrumental variables regression using ivreg (AER) or tsls (sem)
...commands (reproducible example) from that
site:
# ------ begin R
library(AER)
library(lmtest)
data("CollegeDistance")
cd.d<-CollegeDistance
simple.ed.1s<- lm(education ~ distance,data=cd.d)
cd.d$ed.pred<- predict(simple.ed.1s)
simple.ed.2s<- lm(wage ~ urban + gender + ethnicity + unemp + ed.pred ,
data=cd.d)
# ------ end R
This yields the following summary:
summary(simple.ed.2s)
Call:
lm(formula = wage ~ urban + gender + ethnicity + unemp + ed.pred,
data = cd.d)
Residuals:
Min 1Q Median 3Q Max
-3.1692 -0.8294 0.1502 0.8482 3.9537
Co...
2010 Jun 28
2
Lattice and Beamer
...the beamer class for presentation in Latex. One thing I have not become very good at is properly sizing my visuals to look good in a presentation.
For instance, I have the following code that creates a nice plot (sorry, cannot provide reproducible data).
bwplot(testedgrade~person_measure|gender + ethnicity, pfile, layout=c(2,5),
main = 'Distribution of Person Measure by Grade\n Conditional on Gender and Ethnicity (Math)',
xlab = 'Grade')
Now inside my latex document using the beamer class for presentation I have the following
\begin{frame}
\frametitle{Distribution...
2007 Jul 03
1
Please help with legend command
Hi R-ers:
I'm drawing a plot and have used different line types (lty) for
different race/ethnicity groups. I want a legend that explains what line
types correspond to the different race/ethnicity groups. I used the
following code:
legend( 1992 , 42 , c("Hispanic" , "non-Hispanic white (NHW)" ,
"non-Hispanic black" , "AI/AN" , "Asian" ) , lt...
2019 Oct 25
2
Duda de como contar casos por Programa.
Hola,
Tengo un tabla de datos con pacientes asistidos, para los cuáles tengo
variables como dni, género, programa de atención etc. Hay pacientes que
atendieron en más de un programa por lo cuál se repiten en la tabla. Lo que
quiero es poder contar con una matriz que me permita identificar la
cantidad de pacientes que coinciden entre programas.
Va un ejemplo:
[image: image.png]
Intenté de
2011 Jun 05
1
Negating two identical characters with regular expressions
Hello all,
Let's say I have a character string
"Race-ethnicity-----coding information"
I want to extract all text before the multiple dashes, including the word
"ethnicity."
I wrote a handy function to extract the first matched text:
grepcut <- function(pattern,x){
start.and.length <- regexpr(pattern,x)
substring(x,start.and.length,s...
2002 Nov 26
1
Reshape by multiple variables
Dear list
I'm using the reshape command and want to reshape a wide data set to a
long one
e.g. I have the variables y1,y2,y3,age1,age2,age3,sex,ethnic
I want my new long data set to consist of the variables y (which has
been created from y1,y2,y3), age (which has been created from
age1,age2,age3), sex and ethnic
I have tried to use the command:
data1<-reshape(data,varying=list(c("y1","y2","y3"),c("age1&quo...
2003 Jan 15
1
can syslinux display ethnic characters?
Hi, I am working on a norwegian linux distro.
As far as I know syslinux can't display any
characters that is not in the us ascii table.
is there a way to load a different ascii table?
Tor H?kon Gjerde
2009 Jul 02
2
working with texts
WinXP, R-2.9.1
LS.,
I have been trying to solve a (for me) tricky issue. No matter what I've
tried, I just can't find a way to do this.
This is the issue:
I have a text file (ansi text) "titles.txt" with lines of text; here is
an example of such a file:
>>>>>
a brief history of polio vaccines
anti-vaccination movements and their interpretations
early warning
2018 May 02
0
I am leaving llvm
...(as in, total exclusion from paid
employment) I faced in the labor market. Often from people who had high
incomes. People don't know what it's like to live in that sort of fear, to
wonder if next year you'll be living on the street or as a prostitute, just
for being born to the wrong ethnic group.
There are 200 million "white" people in America and, what, twice that
number in Europe? How many "white" ethnic groups are there? I mean, in
some places Chinese, Korean and Japanese are now "white" ethnicities. What
kind of idiot thinks hundreds of millions o...
2010 Feb 28
6
A slight trap in read.table/read.csv.
I had occasion recently to read in a one-line *.csv file that
looked like:
"CandidateName","NSN","Ethnicity","dob","gender"
"Smith, Mary Jane",111222333,"E","2/25/1989","F"
That "F" (for female) in the last field got transformed to
FALSE. Apparently read.csv (and hence read.table) are inferring
that if the entries of a file a...
2011 Nov 05
0
ANESRAKE package: Inappropriate error message, given the data
...mespace (and not attached):
[1] cluster_1.14.1 grid_2.14.0 lattice_0.20-0
HERE ARE THE ARGUMENTS
> medufo <- read.csv("C:/Users/lenovo/Desktop/Medufo_weights/medufo.csv",
header = TRUE, row.names="ID")
> age <- c(25, 25, 28, 22)
> gender <- c(49, 51)
> ethnic <- c(58, 14, 5, 23)
> income <- c(1, 4, 7, 15, 18, 16, 19, 17, 1, 1,1)
> targets <- list(age, gender, ethnic, income)
> names(targets) <- c("age", "gender", "ethnic", "income")
> outsave <- anesrake(targets, medufo, caseid=1, verbos...
2008 Jan 07
1
recode() function results in logical output, not factor output
Dear R Users:
I have race-ethnicity groups identified in the factor variable Ethnic_G.
I need to collapse Ethnic_G into a new variable with only two factors, 1 (White, non-Hispanic) and 2 (Minority).
As seen in the code and output below, the recoded race-ethnicity variable is put into logical format, not factor format.
I'...
2011 Jun 01
1
How to write random effect in MCMCglmm
...t I have is a cluster data, and I want to run a HLM mixed
model with multi-level response. Here is my data set:
response:
- Level (num: 1, 2, 3, 4, 5 - 5 levels)
Covariates:
- Type (Factor: A, B, C - 3 levels)
- yr (num: 2006, 2007, ...)
- Male (num: 0=not Male, 1=Male - 2 levels)
- Ethnicity (Factor: A, B, H, ..., - 7 levels)
- ELL (num: 0, 1, - 2 levels)
- Disability (num: 0, 1, - 2levels)
- avgTransfers (num with missing values)
- sdTransfers (num with missing values)
- agec (num with missing values)
- PctELL (num)
- PctDisability (num)
- PctMale (num)
Rand...
2005 Oct 31
0
Problem using reshape with missing values in idvar
...cipant. Because
of the variable nature of follow up, many fields will be "NA" since
some participants may have only one study.
A sample is as follows (note that the ID appears consecutively for
each follow up, or in other words, all the ID are grouped chronologically)
ID DOB GENDER ETHNICITY TESTDATE TESTRESULT
1 1/1/1900 1 1 1/1/2005 100
1 1/1/1900 1 1 1/2/2005 110
2 8/1/1930 2 1 2/1/2005 80
3 12/1/1990 2 2 3/1/2005 200
3 12/1/1990 2 2 3/2/2005 205
3 12/1/1990 2 2 3/3/2005 220
My code is as follows:
df <- read.csv("df.csv") # Read .csv file into R
df.tt <- sequen...
2012 Jan 31
2
question on simple graph
I am having trouble generating a graph.
I want to know the % of respondents who answered that they "strongly
agree" or "agree" the "America owes R's ethnic group a better chance"
(BTTRCHNC) and I want to organize it by racial group (RACESHRT).
"BTTRCHNC" is organized ordinally from 1 through 5 with 1=Strongly
Agree, 5=Strongly Disagree
"RACESHRT" is ordinally organized from 1 through 5 where each number
represents a racial gr...