search for: birth

Displaying 20 results from an estimated 352 matches for "birth".

2007 Oct 26
1
finding birth position
Hi All, I have data on the sequence of births for families with completed fertility cycle (in a data frame); the relevant variables are called b1, b2, b3, b4, b5, b6 and record the birth of the first, second, ..., sixth child. So, b1=1 if the first birth is male, b1=2 if the first birth is female, and b1=NA if the family did not record any...
2010 Mar 13
2
Two questions, first about contingency tables, and second about table () and data.frame (), from a visually impaired user.
Hi all, I want to make a contingency table in R. I want to tabulate two variables, one as the independent and second as the dependent variable. The IV has two categories, namely, birth complications, and no birth complications. The frequency of birth complication category is fifty, and the frequency of no birth complication category is 34. The categories and frequencies of DV follows. Schizophrenic 28, depressed 26, normal 30. When I am trying to make a contingency table in R, us...
2007 Dec 06
3
using "eval(parse(text)) " , gsub(pattern, replacement, x) , to process "code" within a loop/custom function
...uld not figure this out, and think you can probably offer some helpful tips. I apologize if I missed something, which I'm sure I probably did. I have data for many "samples". (e.g. 1950, 1951, 1952, etc.) For each "sample", I have many data-frames. (e.g. temp.1952, births.1952, gdp.1952, etc.) (Because the data is rather "large" (and for other reasons), I have chosen to store the data as individual files, as opposed to a list of data frames.) I wish to write a function that enables me to "run" any of many custom "functions/processe...
2009 Nov 23
2
non-intuitive behaviour after type conversion
Deal list, I have a data frame (birth) with mixed variables (numeric and alphanumeric). One variable "t1stvisit" was originally coded as numeric with values 1,2, and 3. After attaching the data frame, this is what I see when I use str(t1stvisit) $ t1stvisit: int 1 1 1 1 1 1 1 1 2 2 ... This is as expected. I then...
2008 Jun 13
2
Rails 2.1: invalid date automatically convertion
Hi all, Rails 2.1 seems to converts the following parameters {''birth(1i)''=''1990'', ''birth(2i)''=>''2'', ''birth(3i)''=>''31''} into date ''1990-03-02'' automatically. Is it able to inhibit this convertion? -- makoto kuata --~--~---------~--~----~------...
2008 Apr 18
2
naive question regarding running parallel C code from R
...set up the parameters, format the output, and save the resulting objects periodically through the run. The basic layout is: R function sets up the run R for(c = 0; c < CYCLES; c++) call C function C for(i = 0; i < TIME; i++) immigration loop adds individuals to the recruit vector birth loop adds individuals to the recruit vector recruit vector is added to the community vector death loop removes excess individuals Return results to R, which processes and saves the objects Repeat A typical run has 20 cycles, each with 500 time steps, and takes about an hour. The immigr...
2008 Dec 13
4
Reuse of Cucumber Features
...rms throughout my application. There is one set of global rules specifying the formats in which dates may be entered, and how they are interpreted. I put that in one feature. In various other features, like ''Create new patient'', one can enter dates, like the patient''s birth date. I want to do something like ''and the date entry shall follow the normal rules'' but I''m not sure how to do that in an example driven way, without copying and pasting from other features. Does my question make sense? Any suggestions? Thanks. Steve -------------- n...
2011 Mar 19
3
Plotting graph problem!!
http://r.789695.n4.nabble.com/file/n3389613/Life_Expectancies_2008.csv Life_Expectancies_2008.csv I am trying to plot a histogram base on the file i uploaded above. I am facing a trouble in sorting out the frequency of the life expectancies. I wanted to plot a graph of life expectancies at birth versus frequency,but i have no idea how to change the locations into frequencies taking the range of life expectancies at birth from 40 to 90. I tried using table(Life.Expectancies.at.Birth) to show the frequencies of each number and I do not know how to continue. -- View this message in context:...
2009 Apr 23
1
Loess over split data
...e same for all columns) and I was hoping that someone here could help me fix my code so that I won't have to resort to using a for loop. (You'll find the upcoming lines of code in a single block near the end of the message.) Here's a small sample of my data : my.data=data.frame(birth.vec=c(274, 259, 288, 284, 276, 274, 284, 288, 273, 278), final.weight= c(2609.328, 2955.701, 4159.837, 4591.258, 5144.559, 2877.159, 4384.498, 3348.454, 3323.391, 2918.055)) ; "birth.vec" is in days and "final.weight" is in grams. Now, what I'm trying to do is to output...
2008 Nov 04
0
Spatstat - Birth Death Process Simulation
Hello, I would like to use the spatstat package to generate realizations from a spatial birth death process. The death rate is dependent on the pairwise interaction function. 1 - I'd like to know how to define my own interaction potential function 2 - I'm not sure which model to use for a birth death process (my parameters are the birth and death rates) Any help would be greatly app...
2011 Jun 24
3
Fwd: Extract element of a list based on an index value
> Dear list, > > I have some data on a geneaology, here is a subset: > warmerge[1:11,c(1,6,25)] > Warrior SibID birth.year > 1100 3793 2013 1926 > 4 2013 2024 1934 > 1094 3769 2024 1918 > 632 2747 2037 1928 > 176 2083 2039 1944 > 187 2085 2039 1949 > 192 2086 2039 NA > 495 2556 2039 1940 > 71 2...
2011 Feb 08
2
delete a row in dataframe w/o changing indexing
Hi All, I'm trying to delete a row from my dataframe "pop" without changing the indexing (column 0) as follows: >pop id birth size xloc yloc weight energy gonad consumed 1 1 36 13 34 43 0 18 0 0 2 2 36 10 39 38 0 18 0 0 3 3 36 10 37 35 0 18 0 0 4 4 36 10 31 25 0 18 0 0 5 5 36 17 34 43...
2011 Nov 03
2
query about counting rows of a dataframe
Dear R users, I have got the following data frame, called my_df: gender day_birth month_birth year_birth labour 1 F 22 10 2001 1 2 M 29 10 2001 2 3 M 1 11 2001 1 4 F 3...
2020 Oct 23
1
Extracting data and saving in excel
Hi all, I have a dataframe call "data", and have lots of rows. One of them is data$`birth` my data has been imported from an excel file in RSTUDIO I want to obtain in a function all rows (with the names) where data$`birth` is bigger than 1979/01/01 and extract in a excel file as an output (a sub-excel of the original). Can you guide with the functions I need to use? I have been many...
2010 Apr 21
2
calculating age from year of birth and date?
Hi, I have v1 (date of test) and v2 (year of birth). v1 v2 15.5.2008 88 18.6.2009 54 I want R to use only year in v1; and v2 see as 1988 and calculate age in v3. any ideas how to do that? -- ************************** Vlatka Matković Puljić 095/8618 171 [[alternative HTML version deleted]]
2010 Dec 31
3
survexp - example produces error
...t;Error in floor(temp) : Non-numeric argument to mathematical function" best regards, Heinz library(survival) ## Example from help page of survdiff ## Expected survival for heart transplant patients based on ## US mortality tables expect <- survexp(futime ~ ratetable(age=(accept.dt - birth.dt), sex=1,year=accept.dt,race="white"), jasa, cohort=FALSE, ratetable=survexp.usr) Error in floor(temp) : Non-numeric argument to mathematical function sessionInfo('survival') R version 2.12.1 Patched (2010-12-18 r53869) Plat...
2005 Jan 25
2
tapply and names
I have a data frame containing children, with variables 'year' = birth year, and 'm.id' = mother's id number. Let's assume that all the births of each mother is represented in the data frame. Now I want to create a subset of this data frame containing all children, whose mother's first birth was in the year 1816 or later. This seems to work:...
2009 Apr 22
1
converting histogram to barchart
Hi list, After a lot of tweaking i have managed to create a histogram with an overlaying density plot. The histogram shows a sample of birth weights of babies and the density plot shows birth weights from a much larger reference populaton. My data is divided in 0.1 Kg bins so in the code below binweigh=0.1. The trouble with the current graph is that it is not very clear since the density plot overlay the histogram and obfuscates it. My...
2016 Nov 03
6
CTDB and locking issues in 4.4.6 (Classic domain)
...: 2514 IO Block: 65536 regular file Device: 29h/41d Inode: 35820037 Links: 1 Access: (0774/-rwxrwxr--) Uid: ( 3535/ jh3) Gid: ( 513/Domain Users) Access: 2016-11-03 19:51:46.000000000 +0000 Modify: 2016-11-01 13:06:04.000000000 +0000 Change: 2016-11-01 13:06:04.000000000 +0000 Birth: - [root at zalma ~]# ssh zearing "stat testfile" root at zearing's password: ... Size: 1286700 Blocks: 2514 IO Block: 65536 regular file Device: 29h/41d Inode: 35820037 Links: 1 Access: (0774/-rwxrwxr--) Uid: ( 3535/ jh3) Gid: ( 513/Domain Users) Access:...
2012 Dec 04
4
partial analisys of a time series
Dear list members I want to analyze separately the months of a time series. In other words, I want to plot and fit models for each month separately. Taking the example of http://a-little-book-of-r-for-time-series.readthedocs.org/en/latest/src/timeseries.html births <- scan("http://robjhyndman.com/tsdldata/data/nybirths.dat") birthstimeseries <- ts(births, frequency=12, start=c(1946,1)) birthstimeseries plot.ts(birthstimeseries) birthstimeseriesHW <- HoltWinters(birthstimeseries) plot(birthstimeseriesHW) How to proceed the plotting and Hol...