search for: race

Displaying 20 results from an estimated 4871 matches for "race".

2013 Sep 21
1
Translating recoding syntax from SPSS to R
Colleagues, I am in the process of learning R. I've been able to import my dataset (from Stata) and do some simple coding. I have now come to coding situation that requires some assistance. This is some code in SPSS that I would like to be able to execute in R: if (race eq 1 and usborn=0) confused=1 . if (race eq 2 and usborn=0) confused=1 . if (race eq 1 and usborn=1) confused=0 . if (race eq 2 and usborn=1) confused=0 . if (race eq 3 and usborn=1) confused=0 . if (race eq 3 and cohort=1) confused=0 . if (race eq 3 and cohort=2) confused=0 . variable labels confu...
2011 Oct 06
1
Urgent help needed for honours project - breaks between races in one year
Hi to anyone who is willing to help, I have a csv. file which has 1999 horses as the rows and the age(in years) of the horse at each race as columns. Ive read this file into R and called it 'horses'. Im trying to find the longest break between each race in the horse's first year of racing. I already have a numeric called 'age.first' which is the age at which each horse had its first race. I understand if i want to...
2012 Apr 04
0
[LLVMdev] Publication: Data Races vs. Data Race Bugs: Telling the Difference with Portend
Hello, We have a publication in ASPLOS 2012 that uses the LLVM infrastructure. Is it possible to add this to the publications web page: http://llvm.org/pubs/ ? Publication: Data Races vs. Data Race Bugs: Telling the Difference with Portend Link: http://dl.acm.org/citation.cfm?id=2150997 Abstract: Even though most data races are harmless, the harmful ones are at the heart of some of the worst concurrency bugs. Alas, spotting just the harmful data races in programs is like fin...
2008 Jan 22
2
Help - linear regression
Hi, I am trying a linear regression model where the dependent variable is the size of the heart corrected for the patient's height and weight. This is labelled as LAVI. The independent variables are race (european or non-eurpoean), age, sex (male or female) of the patient and whether they have diabetes and high blood pressure. sample size 2000 patients selected from a community. when I model model1<-lm(lavi~age+sex+race+diabetes+hypertension, data=tb1) and model2<-lm(lavi~age+sex+age*race...
2015 Oct 06
3
[PATCH 1/2] tests: Fix test-launch-race.
...script sets $LIBGUESTFS_CACHEDIR which overrides $TMPDIR, so it was simply reusing the existing appliance, and hence not testing anything. Fix this by clearing $LIBGUESTFS_CACHEDIR. Note the test now takes a lot longer to run since it does a full appliance rebuild. --- tests/protocol/test-launch-race.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/protocol/test-launch-race.pl b/tests/protocol/test-launch-race.pl index fadfdbf..6fef1a5 100755 --- a/tests/protocol/test-launch-race.pl +++ b/tests/protocol/test-launch-race.pl @@ -1,5 +1,5 @@ #!/usr/bin/env perl -#...
2007 Feb 19
1
random effect nested within fixed effects (binomial lmer)
I have a large dataset where each Subject answered seven similar Items, which are binary yes/no questions. So I've always used Subject and Item random effects in my models, fit with lmer(), e.g.: model<-lmer(Response~Race+Gender+...+(1|Subject_ID)+(1| Item_ID),data,binomial) But I recently realized something. Most of the variables that I've tested as fixed effects are properties of the subject (e.g. Race, Gender, etc.). Is it correct to be using a random effect Subject that is nested within (partially-cr...
2018 Nov 08
1
[nbdkit PATCH] nbd: Fix race during close
ThreadSanitizer [1] pointed out that in the nbd plugin, nbd_close() can attempt close() in the main thread while the worker thread is still attempting to start a read(). Normally, if the read() loses the race, it will get a harmless EBADF that exits the worker thread (which is what we want, as we are closing the connection anyway); but if another connection happens to start in that window, we could end up read()ing from the fd opened by the new connection, with disastrous results on the second connectio...
2020 Jun 23
2
Races in llvm-objcopy
Hi Jake, About a year ago in commit 5049c3422d26b2b68877307c41b35d7e6aae3235, you attempted to solve a race in llvm-objcopy. What was the race? I ask because unless "last change wins" is the result you want, then the race isn't solved. The problem is that `sys::fs::rename` is just a thin wrapper around POSIX semantics, and replacing an existing file is not an error. Dave
2012 Mar 19
5
[LLVMdev] recognizing DTORs and vptr updates in LLVM.
On Mon, Mar 19, 2012 at 4:30 PM, Chris Lattner <clattner at apple.com> wrote: > > On Mar 19, 2012, at 2:52 PM, Kostya Serebryany wrote: > > Hello, > > While instrumenting LLVM IR in ThreadSanitizer (race detector), I need > to distinguish between a store to vtable pointer (vptr) and any other > regular store. > This special treatment should be limited to class DTORs, so I should also > know when a function is a DTOR. > Rationale: need to distinguish benign and harmful races on vptr &...
2009 Aug 25
1
Clogit or LRM?
...een using the val.prob function from the Design library (Thanks Frank!!) to both evaluate and visualize my model. From the scores and graph, it appears as my model is very accurate in predicting probabilities correctly. Please see attachment "graph1.pdf" Since I'm scoring horse races, I assume that I need to "normalize" the predicted probabilities by race. (Described in Bentor.) I am calculating a conditional logit manually since there is a bug in the Survival library for this function. A val.prob function applied to my conditional logit score shows an interesti...
2008 May 28
1
manipulating multiply imputed data sets
...mputed data sets and would like to apply the same recoding routines to each. I could do this sort of thing pretty easily in Stata using MIM, but I've decided to go cold turkey on other stats packages as a incentive for learning more about R. Most of the recoding is for nominal variables, like race, religion, urbanicity, and the like. So, for example, to recode race for my first dataset, inmi1, I would do the following: miset1$white <- recode(miset1$RACE, '1=1; else=0; ') miset1$black <- recode(miset1$RACE, '2=1; else=0; ') miset1$asian <- recode(miset1$RACE, ...
2012 Nov 29
4
[PATCH] x86/hap: fix race condition between ENABLE_LOGDIRTY and track_dirty_vram hypercall
There is a race condition between XEN_DOMCTL_SHADOW_OP_ENABLE_LOGDIRTY and HVMOP_track_dirty_vram hypercall. Although HVMOP_track_dirty_vram is called many times from qemu-dm which is connected via VNC, XEN_DOMCTL_SHADOW_OP_ENABLE_LOGDIRTY is called only once from a migration process (e.g. xc_save, libxl-save-hel...
2009 Sep 17
1
Grouped Logistic (Or conditional Logistic.)
...ficients to maximize the liklihood of of a "True" label per group. An toy explanation is probably best. I've been looking at horse racing models as a fun field to learn about statistics and R. So, for this example, lets assume the following: 100 horses in our stable 10 horses per race 75 races this season (some horses race more than once.) The independent variables are things about a horse (average speed, number of past wins, etc.) The dependent variable is (Win, Lose) represented by (1,0) As mentioned above, an SVM or GLM will quickly work to estimate coefficients and proba...
2012 Mar 19
5
[LLVMdev] recognizing DTORs and vptr updates in LLVM.
Hello, While instrumenting LLVM IR in ThreadSanitizer (race detector), I need to distinguish between a store to vtable pointer (vptr) and any other regular store. This special treatment should be limited to class DTORs, so I should also know when a function is a DTOR. Rationale: need to distinguish benign and harmful races on vptr ( http://code.google.com/p...
2006 Mar 19
4
elemental race conditions question
What''s the standard way to prevent race conditions in controllers? Say user has many posts. Post controller has action add_post that receives user id, post controller find()s the user and while he is creating the post entry an administrator deletes that user in a separate session. We cannot assume the database checks foreign key...
2004 Oct 13
1
"Centered" dummy variables; non zero/one coding
...lts in a glm() fit returning coefficients specifying either absence or presence of the factor, I'd like to fit a glm() without intercept such that the estimated coefficients (standard errors) represent the "average" value in my data set for that variable. An example: a data set has Race specified with 4 levels. I can manually specify 4 dummy variables for a no-intercept model with each variable rather than having a value of zero or one, has a centered value based on its frequency of occurrence in the data set. Thus if 30% of the records in the data set have Race of Hispanic, I c...
2011 Mar 17
2
Incorrect degrees of freedom in SEM model using lavaan
....03, .03, 0, 0, 0, 0, 0, 6.75, - .08, 519.38, 0, 0, 0, 0, .36, .01, 2.74, .18, 0, 0, 0, .51, .0, -.31, .02, .2, .0, 0, -.17, .0, -1.6, -.04, .01, .25, 0, -.1, .02, -.03, .0, -.01, .01 , .02), nrow=7, byrow=TRUE, dimnames=list(c("Internet", "Stress3", "HHincome", "Race", "Age", "Gender", "Stress1"), c("Internet", "Stress3", "HHincome", "Race", "Age", "Gender", "Stress1"))) model = ' Internet ~ HHincome + Race + Age + Gender + Stress1 Stress3 ~ Internet...
2006 Oct 23
2
Help with "recode" and "factor" functions
...ave a data set with seven inputs. Four of which are categorical. For my midterm, my professor wants us to scale all the inputs. This means, I pressume, that I have to use 'recode' or 'factor' to transform the categorical data in numerical. For example, one input variable is 'race=(b,w,h,o)'. I just want to assign a numerical value to all 'b,w,h,o'. I thought 'recode' should do this, but it doesn't work. Here's the code I'm using for recode: recode(race, "b='1';w='2';h='3';o='4'") this is the erro...
2007 Nov 27
2
lme object manipulation
...532940 from the object, but I can't find it by attributes(lme_res2) or attributes(summary(lme_res2)). How can I pull it out (so that I can save it to another variable)? Thanks. Shin Linear mixed-effects model fit by REML Data: dat Log-restricted-likelihood: 22.3213 Fixed: express1 ~ race * thaps + race * tuni (Intercept) race thaps tuni race:thaps race:tuni 7.00034057 -0.02675202 -0.05687972 0.01265845 -0.03859781 -0.11248439 Random effects: Formula: ~1 | fam (Intercept) StdDev: 0.1131353 Formula: ~1 | twin %in% fam (Intercept) StdDev:...
2010 Oct 02
3
Non-Parametric Adventures in R
...umns where it makes sense, plots and X-squared tests. My data frame is named X since that's what Rweb names it. ---------------------------------------------------------------------------------------------------- 1) I was thinking I'd have to go through each nominal variable (i.e. table(X$race) ), but I think I have it figured out now. summary(X) is nice, but I need to recode nominal data with labels so the results are meaningful. ----------------------------------------------------------------------------------------------------- 2) I had an issue with multiple plots overwriting each...