Displaying 11 results from an estimated 11 matches for "timeperiod".
2010 Jun 22
3
lapply and boxplots with variable names
...riable, I want to produce a boxplot and include the
name of the variable (ie, column name) on each plot.
I have included a sample dataset below. Can someone tell me where I am
going wrong?
Thank you for your help,
Shawn Morrison
# Generate a sample dataset
var1 = rnorm(1000)
var2 = rnorm(1000)
TimePeriod = rep((LETTERS[1:4]), 250)
my.data = as.data.frame(cbind(var1, var2, TimePeriod)); summary(my.data)
attach(my.data)
# Create box plots for var1 and var2 using TimePeriod on the x-axis
lapply(my.data[,1:2], function(y) {
boxplot(y~TimePeriod,
main = y
data =...
2012 Dec 08
3
Mean-Centering Question
Hello,
I'm trying to create a custom function that "mean-centers" data and can be
applied across many columns.
Here is an example dataset, which is similar to my dataset:
*Location,TimePeriod,Units,AveragePrice*
Los Angeles,5/1/11,61,5.42
Los Angeles,5/8/11,49,4.69
Los Angeles,5/15/11,40,5.05
New York,5/1/11,259,6.4
New York,5/8/11,187,5.3
New York,5/15/11,177,5.7
Paris,5/1/11,672,6.26
Paris,5/8/11,514,5.3
Paris,5/15/11,455,5.2
I want to mean-center the "Units" and "Aver...
2009 Aug 19
1
dovecot/sieve current date
...cript every day. But to my
disappointement variables set in an included script do not exist in the
original script...
In fact what I want to achieve is that some actions like forwarding or
vacation messages are performed from a certain date untill another date.
Which would allow a user to define a timeperiod in which the autoreply
or forward should be done and automatically stop without updating the
sieve script again. Comparing start and stopdate is cake, but just
getting today's date seems to be a hassle, any ideas?
regards, bart
2012 Apr 26
1
looking for an add-in for daily data analysis
...nd beta
estimation (Dimson, 1979; Scholes & Williams, 1977). I looked for add-ins
which do address this topic, but i couldn't find any.
I have to calculated daily returns from the daily colsing stock prices.
Afterwards I want to estimate the alphas and betas of the market model for a
given timeperiod. Then I calculate abnormal returns and CAR's and assess
their significance (event study methodology with the market model).
Does someone have any idea on how I should handle these problems or a link
for an appropriate package? For implementing these statistics on my own, I
knowledge in R is n...
2011 Jun 29
1
median time period
Hello List
I'm trying to calculate the median period (in months) of a set of time intervals (between two interventions).
I have been playing with the lubridate package to create the intervals but I can't think of the right approach to get the median timeperiod.
Toy code:
library(lubridate)
test <- c('08-04-22', '08-07-28', '09-03-02', '09-03-03', '09-01-30', '09-03-09', '10-02-24', '10-03-05')
test <- ymd(test)
intervals <- as.period(test[5:8] - test[1:4])
intervals
[1] 9 months...
2007 Aug 20
1
Q: combine 2 data frames with missing values
Een ingesloten tekst met niet-gespecificeerde tekenset is
van het bericht gescrubt ...
Naam: niet beschikbaar
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070820/920567a6/attachment.pl
2004 Jun 01
15
Feedback needed! FindMe/FollowMe Feature Spec.
Hello all,
I'm going to tackle learning C this week, and start writing my first *
add-on/contribution; assuming it's actually worthy of contributing once
it's done.. I think I've chosen a hefty project for my first go round
here...
I'd like to get some feedback from everyone on a FindMe/FollowMe spec
I've put together. Before you read on, let me say, I don't want
2010 Jul 27
0
360-day calendar-netcdf
...his, as
I am using the output of different climate models which are different in
for example time calendar and grid coordinates.
To analyze monthly means I have been using the function /chron/ for 365
day calendar time series. Originally the time is in numbers
(1,2....,14600). This is for the timeperiod: 1961-2000.
library(chron)
syntime <- var.get.nc(nc, "time")
time =chron(syntime, origin=c(month=1, day=1, year=1961))
jan <- months(time)=="Jan"
feb <- months(time)=="Feb"
mar <- months(time)=="Mar"
apr <- months(time)=="Apr"
may...
2010 Nov 05
1
Nagios installation problem
...fg check gave the all clear:
Reading configuration data...
Read main config file okay...
Processing object config file '/etc/nagios/objects/commands.cfg'...
Processing object config file '/etc/nagios/objects/contacts.cfg'...
Processing object config file '/etc/nagios/objects/timeperiods.cfg'...
Processing object config file '/etc/nagios/objects/templates.cfg'...
Processing object config file '/etc/nagios/objects/localhost.cfg'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 8 services.
Ch...
2007 Aug 21
2
Partial comparison in string vector
...nows how to use sql, in R, i d be delited if he or
she could explain it to me, more understandible then the manuals i find on
the web.
Here is what io would want sql to do .
My data is in columns, one column holds all the case numbers, one the
messured values, one all the testtypes and one the timeperiod and then one
column for the lab's that preformed the test. is is stored in a txt file.
So it is a long 5 column data table.
Now is it possible to make a cross table holding the case nr's, and
timeperiod in 2 column's, and then have a different column for every test?
so if there are 4...
2011 Jun 30
0
help with interpreting what nnet() output gives:
...ntent-Type: text/plain; charset=utf-8
Hello List
I'm trying to calculate the median period (in months) of a set of time intervals (between two interventions).
I have been playing with the lubridate package to create the intervals but I can't think of the right approach to get the median timeperiod.
Toy code:
library(lubridate)
test <- c('08-04-22', '08-07-28', '09-03-02', '09-03-03', '09-01-30', '09-03-09', '10-02-24', '10-03-05')
test <- ymd(test)
intervals <- as.period(test[5:8] - test[1:4])
intervals
[1] 9 months...