Displaying 20 results from an estimated 36 matches for "tracts".
Did you mean:
tracks
2010 Jun 21
2
Return value associated with a factor
I am using the code below to extract census tract information.
save.tract$state, save.tract$county and save.tract$tract are returned as
factors. In the last three statements, I need to save the actual value of
the factor, but, instead, the code is yielding the position of the factor.
How do I instead return the value of the factor?
By way of example, for Lon=-82.49574 and Lat=29.71495, the code
2010 Mar 14
2
code rows depending on the value of other rows in multilevel dataframe
I have a multilevel dataframe (df):
ID Date Segment Slice Tract Lesion
1 CSPP005 12/4/2007 1 1 LCST 0
2 CSPP005 12/4/2007 1 1 LPC 2
3 CSPP005 12/4/2007 1 1 RPC 3
4 CSPP005 12/4/2007 1 1 RCST 1
5 CSPP005 12/4/2007 1 1 LGM 0
6 CSPP005 12/4/2007 1 1
2010 Nov 02
1
Using data( ) in a loop
I'm trying to generate 50+ graphs using the UScensus2000tract data. I
need to access the data for just about all of the states, so I was
hoping to create a simple loop that will take the relevant state from my
data and load the associated census data from the UScensus2000tract
package. Below is a sample of what I'm trying to do. Any suggestions
are much appreciated.
2018 Mar 19
1
Labelling a fortified GADM map plotted with ggplot and geom_map
I am having trouble getting data labels to display over the provinces in a GADM map of Canada.
Specifically, I need the variable "Number" from the data set "by_province", grouped by "region", to appear on the corresponding regions of the map.
The data set "by_province" looks like this:
long lat order hole piece region
2012 Aug 15
1
Obtaining census tract data from addresses
Hello,
I have a bunch of street addresses that I want to obtain the census
tract data for. Is there any way I can do this in R?
Thank you,
--
Michael Leitson
Michael.Leitson at gmail.com
2023 Oct 14
2
Create new data frame with conditional sums
Well, here's one way to do it:
(dat is your example data frame)
Cutoff <- seq(0, .15, .01)
Pop <- with(dat, sapply(Cutoff, \(p)sum(Totpop[Pct >= p])))
I think there must be a more efficient way to do it with cumsum(), though.
Cheers,
Bert
On Sat, Oct 14, 2023 at 12:53?AM Jason Stout, M.D. <jason.stout at duke.edu> wrote:
>
> This seems like it should be simple but I
2012 Sep 14
1
USCensus2000 package
Does anyone know the appropriate R code to obtain census tracts (tract
and block level) from addresses by using Zack Almquist's USCensus2000
package?
Thank you,
--
Michael Leitson
Michael.Leitson at gmail.com
2003 Mar 24
1
negative binomial regression
I would like to know if it is possible to perform negative binomial
regression with rate data (incidence density) using the glm.nb (in
MASS) function.
I used the poisson regression glm call to assess the count of injuries
across census tracts. The glm request was adjusted to handle the data
as rates using the offset parameter since the population of census
tracts can vary by a factor of three.
eg. Call:
glm(formula = inj ~ lp + rdm, family = poisson(), data = ww,
offset = log(pop))
Deviance Residuals:
Min 1Q M...
2023 Oct 13
1
Create new data frame with conditional sums
This seems like it should be simple but I can't get it to work properly. I'm starting with a data frame like this:
Tract Pct Totpop
1 0.05 4000
2 0.03 3500
3 0.01 4500
4 0.12 4100
5 0.21 3900
6 0.04 4250
7 0.07 5100
8 0.09
2007 Jan 15
3
Registry entries
Can anyone point me at a good doc on farting about with the registry?
Or do you feel like giving me the fool's guide?
I have large tracts of registry entries to stuff in, and adding them via
Edit/new in regedit is an absolute PITA and unworkably slow.
I have files from exported from a win98 registry (via windoze regedit)
with the correct info.
I need to add because programs are not finding installed packages.
TIA,
--
Declan Mor...
2013 Jan 29
1
points rejected as lying outside the specified window
Hello,
I am using the following code to create ppp files from csv data and map shape files, but I am getting some errors which I have been unable to fix by searching them online:
library(spatstat)
library(maps)
library(maptools)
NYC2<-readShapePoly("nybb.shp") # this is a map of the NYC boroughs without waterways and no census tract divisions (but it does include lines separating
2011 Nov 07
2
help with programming
...lection and BIC criterions, to the Boston housing
> data.
>
The Boston housing data contains 506 observations, and is publicly
available in the R package mlbench (dataset “BostonHousing”).
The response variable Y is the median value of owner-occupied homes
(MEDV) in each of the 506 census tracts in the Boston Standard Metropolitan
Statistical Areas, and there are thirteen predictor variables.
We are interested in the relationship between MEDV and the other
predictor variables.
> Setup your parametric model and use rank-based regression methodology to
> select and estimate the pa...
2004 Aug 06
1
Query r/e multiple decoder reset...
Hello! I should have asked this earlier, but... :)
We're returning to voice processing in our app now, in which we're trying
to achieve n-way full duplex voice in a 3d environment. Since Speex is a
single voice stream CODEC, we've been looking at having each client upload
its stream to the servers, which multiplex several spatially nearby active
channels back down to the
2023 Oct 15
2
Create new data frame with conditional sums
Under the hood, sapply() is also a loop (at the interpreted level). As
is lapply(), etc.
-- Bert
On Sun, Oct 15, 2023 at 2:34?AM Jason Stout, M.D. <jason.stout at duke.edu> wrote:
>
> That's very helpful and instructive, thank you!
>
> Jason Stout, MD, MHS
> Box 102359-DUMC
> Durham, NC 27710
> FAX 919-681-7494
> ________________________________
> From: John
2023 Oct 14
1
Create new data frame with conditional sums
That's very helpful and instructive, thank you!
Jason Stout, MD, MHS
Box 102359-DUMC
Durham, NC 27710
FAX 919-681-7494
________________________________
From: John Fox <jfox at mcmaster.ca>
Sent: Saturday, October 14, 2023 10:13 AM
To: Jason Stout, M.D. <jason.stout at duke.edu>
Cc: r-help at r-project.org <r-help at r-project.org>
Subject: Re: [R] Create new data frame with
2005 Jan 13
0
autocorrelation and levinson-durbin
> 3) a more general question:
> i have not been able to find any reason why
> 10 lpcs are used. i suppose 10 lpcs are
> enough for prediction and using more coeffs
> would not have made too much difference.
> and 10 is even, good for lpc->lsf. had read
> somewhere "historically", during the analog
> era, this number is used. or maybe 10 is analagous
> to
2006 Mar 30
1
Random Coefficients using coxme
Hello, I was hoping someone could answer a question for me that may
either be statistical or script related. I don't come from a statistics
background, so I am not positive if I am using the correct nomenclature
or even the correct procedure. Is it possible to model "random
coefficients" in a mixed effects cox-regression using coxme from the
Kinship package? For example, using
2002 Nov 21
0
Re: RArcInfo question(basic=T, newbie=T, annoying=T)
...Steve,
I'll post your question also to the R-help mailing list since I think
this can help to other RArcInfo users.
As I mentioned in the last release of the package, I have a tutorial
nearly finished. I hope to release it in the next days.
> I have downloaded an .e00 file of 2000 Census Tracts for the southern US
> State of Georgia, and I'm wondering which steps I need to go through to use
> RArcInfo on the data. If I can get to a plot today I'll be happy.
I've looked for the data you mentioned and I have downlowaded from
http://www.census.gov . It's a nice set o...
2023 Oct 16
1
Create new data frame with conditional sums
Dear Jason,
The code could look something like:
dummyData = data.frame(Tract=seq(1, 10, by=1),
?? ?Pct = c(0.05,0.03,0.01,0.12,0.21,0.04,0.07,0.09,0.06,0.03),
?? ?Totpop = c(4000,3500,4500,4100,3900,4250,5100,4700,4950,4800))
# Define the cutoffs
# - allow for duplicate entries;
by = 0.03; # by = 0.01;
cutoffs <- seq(0, 0.20, by = by)
# Create a new column with cutoffs
dummyData$Cutoff
2023 Oct 16
1
Create new data frame with conditional sums
If one makes the reasonable assumption that Pct is much larger than
Cutoff, sorting Cutoff is the expensive part e.g O(nlog2(n) for
Quicksort (n = length Cutoff). I believe looping is O(n^2). Jeff's
approach using findInterval may be faster. Of course implementation
details matter.
-- Bert
On Mon, Oct 16, 2023 at 4:41?AM Leonard Mada <leo.mada at syonic.eu> wrote:
>
> Dear