Displaying 20 results from an estimated 2000 matches similar to: "Subsetting data by date"
2008 Jul 30
2
Bizarre - R crashes on merge
Hi all,
I have a large data.frame, 1530 observation with 6 columns. I want to
merge a 7th column, a transformation of the response variable (hospital
admissions), namely
trans<-sqrt(copd$admissions+0.25)
trans<-data.frame(trans)
And now when I do
copd2<-merge(copd,trans)
(copd being my original data.frame), R either crashes or is taking an
extremely long time to do the computation. I
2008 Jul 22
4
Opening files from R terminal - appologies
Dear all,
I appologise for cluttering up the list with such a basic question,
however I have been unable to find the answer I want (possibly through
my poor usage of the R help system).
As I am visually impaired and using assistive technology, I think I
would prefer to use R from the terminal mode, i.e. by running rterm.exe
found in the bin directory.
I have managed to set my working
2008 Aug 18
2
Using lag
Dear all,
I am having difficulties using the seemingly-simple function lag.
I have a dataframe with several weather variables (maxitemp,
windspeed, rainfall etc), and the response variable (admissions). The
dataset is fairly large (1530 observations). I simply want to model the
response against a lag of a couple of the explanatory variables, say
maxitemp and rainfall. I would like to look at
2008 Jul 24
4
Just 2 more questions - for now!
Hi all,
Thanks for the help with my previous post.
I have just two more questions for the minute.
I think I said in a previous post that I like to use the terminal,
i.e. run rterm.exe. On exiting the terminal, I am asked if I want to
save the workspace. If I hit y (yes), the workspace is just saved as
.rdata in my working directory, does anyone know how I can name it
directly from the
2008 Aug 21
4
Very confused with class
Hi all,
I am very confused with class.
I am looking at some weather data which I want to use as explanatory
variables in an lm. R has treated these variables as factors (i.e. with
different levels), whereas I want them treated as discretely measured
continuous variables. So I need to reassign the class of these
variables, right?
Indeed, doing
class(southwest$pressure)
(pressure being air
2008 Jul 23
6
Using if, else statements
Hi all,
Again I have searched the net and so on, without finding an answer to this
surely simple problem. A short bit of code would be appreciated.
I have a object named `data' with the following column headings.
Date, maxitemp, minitemp, admissions, d.o.w.
Where d.o.w. is day of the week, written "Sun" "Mon" etc.
I just need to scale the Monday admissions by
2007 Jun 12
1
Route Regex Requirement not working properly
I''m trying to get my routes to work properly. Here''s how I''m defining
one of my routes:
map.downloads '':category/downloads'', :controller => ''downloads'', :action
=> ''list_downloads_for_category'', :requirements => {:category =>
DownloadableFileCategory.category_regex}
And here''s the method
2007 Dec 31
3
Survival analysis with no events in one treatment group
I'm trying to fit a Cox proportional hazards model to some hospital
admission data. About 25% of the patients have had at least one
admission, and of these, 40% have had two admissions within the 12
month period of the study. Each patients has had one of 4
treatments, and one of the treatment groups has had no admissions for
the period. I used:
2009 Mar 17
2
General help on sample size based on recurrent events
Hello,
I have a general help question that some of you might be able able to help.
I would like to design a study (a two group comparison) based on reduction on events(say hospital admissions). In a previous study hospital admission rate of 140 admissions per 72 patients (over a 4 month period) has been observed. That is rate is about 1.9. In order to see the admission rate reduction of 50% over
2008 Aug 29
0
Weighted Regression
Hello,
Firstly let me explain that the nature of what I want to do is actually
beyond my statistical knowledge, having only taken a second year
university stats course last year. Therefore I may have missed the
statistical essence of what I want to do as well as my lack of ability
to do it in R.
I am trying to fit some hospital admissions data to a series of
weather variables. Due to my lack of
2023 May 17
1
Synthesize low batt (LB) fron SNMP UPS which doesnot support this?
Hi Gene,
On 5/16/23 21:08, gene heskett wrote:
> Take an extra vitamin b1 and start hacking ;o)
yeah ;-)
>
> Seriously, if its that important, do as I did when my last wife was
> dying of COPD.
:( sorry to hear
> Leave your ups setup as is but for under $10k (USD),
> have an automatic home sized standby generator installed to run the
> important stuff,
no room for
2001 Oct 22
1
Samba as PDC for win2000
Hi
I am having the most basic of problems. I have setup a PDC with samba
2.2.2 and am trying to get my Win200) machine to join the domain. I followed the
following proceedure
http://ivy:901/swat/help/Samba-HOWTO-Collection.html#SAMBA-PDC
And when I go to the client W2000 box and change from the workgroup to
join the domain I get a popup which says
2023 May 16
1
Synthesize low batt (LB) fron SNMP UPS which doesnot support this?
On 5/16/23 14:09, Carsten Aulbert wrote:
> Hi Roger,
>
> On 5/16/23 17:00, Roger Price wrote:
>> Hello Carsten, That's what I did but for a much simpler setup. I live
>> in an area with a lot of lightning, and my shutdown criteria is to be
>> able to shut down repeatedly during an electrical storm.? The NOTIFY
>> and CMDSCRIPT and the upssched-cmd logic are
2008 Jul 23
0
Fw: Using if, else statements
Sorry in the previos replay I forgot monday' scale
so weight should be:
weight <- c(0.91,1,1,1,1,1.21,1.22)
names(weight) <- c("mon","tue","wed","thu","fri","sat","sun")
----- Original Message -----
From: "Gabriela Cendoya" <gcendoya at balcarce.inta.gov.ar>
To: "Robin Williams" <>
2004 Apr 16
0
Re: My details
This is the Department of Computer Science at the University of Illinois at Urbana-Champaign. Your inquiry has been received.
If you wish to reach another department or campus you must contact them directly.
We can not forward your message to other departments or campuses. Please do not send email
to bcicone@cs.uiuc.edu. This address is no longer valid for inquiries.
SPECIAL NOTES:
DEADLINE FOR
2008 Jul 24
4
Is there an equivalent * operator?
Hi all,
Is there an equivalent to the general * operator in R, where * can
represent any character?
I have a dataset, one column being date, date ranging between
April-September, 97-06. I would like to be able to acquire the data for
a specific month, say September, so that I can take average temperatures
for the month, etc. I thought I would be able to do something like
data.s1 <-
2008 Nov 10
0
Postdoc Positions Available at Leiden University The Netherlands
Two Postdoctoral fellows (fulltime)
Leiden University, Leiden, The Netherlands
Job description
________________________________________
TOP Institute Pharma (TI Pharma) has granted our proposal to set up a
mechanism-based PK-PD modelling platform. This platform focuses on the
transfer of knowledge from academia to the pharmaceutical industry and
is a collaborative effort of
2008 Sep 08
3
Saving functions
Hi,
Appologies for the simple nature of this question, I am unable to find
the answer in manuals (EG and introduciton to R).
I have written a function in a text editor and saved it with an .R
extension. It is saved in my working directory. How can I run it, do I
need to use source? If so, how do I supply the arguments to the
function? Or does it need to be saved in a particular directory?
2008 Aug 28
1
Renaming objects
Hi,
Is there any quick and easy way to rename a number of objects, without
having to rename each one individually and then remove the old one? And
if so, is there anything I can do to adjust the associated comments
accordingly?
Thanks for any help,
Robin Williams
Met Office summer intern - Health Forecasting
robin.williams@metoffice.gov.uk
[[alternative HTML version deleted]]
2008 Sep 05
1
Orthogonalization algorithms
Hi,
I have eight vectors that I would like to orthogonalize preferably
using R. The vectors are of considerable length, however due to their
nature I know they satisfy the conditions needed to apply the
Gram-Schmidt algorithm. Before I embark on some R coding, I wanted to
check that there is no facility / function already around that computes
the orthogonalized set of vectors? I have performed