search for: period

Displaying 20 results from an estimated 9297 matches for "period".

2012 Jun 12
3
Mapping one vector to another
Hi, I'm new here, I'd like to map a set of values in a data frame to another set of values in another frame (think a c++ map<>, a python dict or a hash lookup) Specifically, I have a data frame of information about trading periods in the NZ electricity market. For each period I have information about each bus (or node) in the network. I'd like add a "column" to the data frame containing the island that the bus is on. I'm afraid my success at searching for an answer is restricted by not knowing what this...
2006 May 24
1
Regression line limited by the range of values
...quot;segments", and draw one line from min(x),min(y) to max(x),max(y) but with real data with a bunch of "na.rm" and "na.action"s this becomes very long and bulky. For a regression with two data swarms and two trend lines it becomes this long mess: <>plot(TCgonad[Period=="1"], ABelly[Period=="1"],xlim=c(0,20),ylim=c(130,160), col=?blue?) points(TCgonad[Period=="2"], ABelly[Period=="2"],col=?red?) segments( min(TCgonad[Period=="1"],na.rm=T), min(fitted(lm(ABelly[Period=="1"]~TCgonad[Period=="1&quot...
2010 Jun 09
3
Extracting Elements By Date
Dear R Gurus, Thanks for any help in advance! Date.frame: Returns.names X id ticker date_ adjClose totret RankStk 258060 258060 13645T10 CP 2001-06-29 18.125 1877.758 My data frame is in the above format. I would like to filter by period, per id (every 125 days) each consisting of 250 days, I.e. 1-250, 126-375, etc. One important thing to note is that not all ID's have the same number of dates. x<-unique(Returns.names$date_) gives me the ordered list of all the dates, so for each period i want it would be x[((n-1)*125+1):...
2006 Jul 31
0
Three questions about a model for possibly periodic data with varying amplitude
Hi dear R community, I have up to 12 measures of a protein for each of 6 patients, taken every two or three days. The pattern of the protein looks periodic, but the height of the peaks is highly variable. It's something like this: patient <- data.frame( day = c(1, 3, 5, 8, 10, 12, 15, 17, 19, 22, 24, 26), protein = c(5, 3, 10, 7, 2, 8, 25, 12, 7, 20, 10, 5) ) plot(patient$day, patient$protein, type="b") My goal is two-fold:...
2013 Jan 12
4
nesting in CoxPH with survival package
Hello all, I am trying to understand how to specify nested factors when using coxph(), and if it is appropriate to nest these factors in my situation. In the simplest form, I am testing two different temperatures, with each temperature being performed twice in different experimental periods (e.g. Temp5 performed in Period A and C, Temp4 performed in Period B and D) I am trying to see if survival time is affected by the treatment temperature. To do this I am using temperature and experimental period nested within temperature as factors. > LOEtempmod.5days=coxph(LOE.stable.5days~T...
2008 Mar 27
6
help! - spectral analysis - spec.pgram
Can someone explain me this spec.pgram effect? Code: period.6<-c(0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10 ,0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10,0,0,0,0,0,10) period.5<-c(0,0,0,0,0,10,0,0,0,0,10,0,0,0,0,0,0,10,0,0,0,0,10,0,0,0,0,0,0,10 ,0,0,0,0,10,0,0,0,0,0,0,10,0,0,0,0,10,0,0,0,0,0,0,10,0,0,0,0,10,0) par(mfr...
2011 Mar 21
3
Replacing Period in String
Dear R Users, I am working with gsub for the first time. I am trying to remove some characters from a string. I have hit the problem where the period is the shorthand for 'everything' in the R language when what I want to remove is the actual periods. In the example below, I simply want to remove the periods as I have removed the comma, but instead the complete string is wiped out. I would appreciate it if someone could let me know how...
2003 Jan 29
3
Analyzing an unbalanced AB/BA cross-over design
...the type III SS ! # Example 3.1 from S. Senn (1993). Cross-over Trials in Clinical Research outcome<-c(310,310,370,410,250,380,330,270,260,300,390,210,350,365,370,310,380,290,260,90,385,400,410,320,340,220) subject<-as.factor(c(1,4,6,7,10,11,14,1,4,6,7,10,11,14,2,3,5,9,12,13,2,3,5,9,12,13)) period<-as.factor(c(1,1,1,1,1,1,1,2,2,2,2,2,2,2,1,1,1,1,1,1,2,2,2,2,2,2)) treatment<-as.factor(c('F','F','F','F','F','F','F','S','S','S','S','S','S','S','S','S','S'...
2006 Aug 15
1
A model for possibly periodic data with varying amplitude [repost, much edited]
Hi dear R community, I have up to 12 measures of a protein for each of 6 patients, taken every two or three days. The pattern of the protein looks periodic, but the height of the peaks is highly variable. I'm testing for periodicity using a Monte Carlo simulation envelope approach applied to a cumulative periodogram. Now I want to predict the location of the peaks in time. Of course, the peaks might be occurring on unmeasured days. Sadly, an...
2011 May 07
4
how to calculate the mean of a group in a table
Hi its me again I don't mean to get on your nerves, but the use of R proofs to be a bit more complicated than envisaged. I would like to calculate the mean of a group of values, here "wage_accepted". The group is determined by the stage and period, so in the end there should be a column with the values of the wages in period 1 stage1, period 1 stage 2, period 2 stage1... Unfortunately, I haven't much of a clue on how to program this. Could you tell me how the function should roughly look like ? if-else, loops included or not ? in the end...
2001 Jan 29
0
FreeBSD Security Advisory: FreeBSD-SA-01:12.periodic
-----BEGIN PGP SIGNED MESSAGE----- ============================================================================= FreeBSD-SA-01:12 Security Advisory FreeBSD, Inc. Topic: periodic uses insecure temporary files Category: core Module: periodic Announced: 2001-01-29 Credits: dynamo <dynamo@ime.net> Affects: FreeBSD 4.1-STABLE after 2000-09-20, 4.1.1-RELEASE, and 4.1.1-STABLE prior to the correction date. No FreeBSD 3.x versions are...
2009 Jan 02
4
Setting Periodic-Announce filename in the dialplan
I'm wondering if there's a way to set which periodic-announce file is played from my dialplan, much like setting the monitor-filename. Something like this: exten => s,n, Set(PERIODIC_ANNOUNCE=foo) This would be a great feature if it doesn't already exist. Or perhaps there's a better way to do this. Thanks for your time. -- Regards...
2018 Mar 13
2
Understanding TS objects
...arterly data and I typically create a TS object via something like... data.ts <- ts(mydata, start = 2002, frequency = 4) this create a matric as opposed to a vector object as I receive a univariate error when I try to decompose the data using the STL function data.stl <- stl(data.ts, "periodic") Error in stl(data.ts, "periodic") : only univariate series are allowed ok so is.vector(data.ts) [1] FALSE so to convert to a vector I'll use data.ts <- as.vector(data.ts) but then I lose the frequency as the periods as the data becomes frequency = 1 data.ts <- stl &...
2011 Dec 13
1
nut and eaton 3s over usb, lot of logs
...but in user.log is lot of lines like these at below (two lines are generated in every second or two) it starts with "klogd: [? ?34.519386] drivers/usb/core/file.c: removing 96 minor" ant then Dec 12 13:48:22 my-server klogd: [11313.651271] uhci_hcd 0000:00:1d.1: reserve dev 2 ep81-INT, period 16, phase 8, 118 us Dec 12 13:48:23 my-server klogd: [11313.903430] uhci_hcd 0000:00:1d.1: release dev 2 ep81-INT, period 16, phase 8, 118 us Dec 12 13:48:23 my-server klogd: [11313.903684] uhci_hcd 0000:00:1d.1: reserve dev 2 ep81-INT, period 16, phase 8, 118 us Dec 12 13:48:23 my-server klogd: [1...
2007 Dec 14
1
flagging glm models with warnings
...m.nb from the MASS package and the negbin function from the AOD package, but both still cause some models to experience errors and warnings. Examples of my 2 largest models, run from the 2 different functions negBin.glm1 <- glm.nb(Count ~ offset(log(Tow.Area)) + Basin + Bathy + Hypoxia + Period + Depth + Basin*Depth + Bathy*Depth + Hypoxia*Depth + Period*Depth + Basin*Period + Bathy*Period + Hypoxia*Period + Hypoxia:Period:Depth + Bathy:Period:Depth + Basin:Period:Depth, control=glm.control(maxit=1000), method="glm.fit", start=coefficients(hypoxia.g...
2006 Mar 07
8
[PATCH] xm,xend: flesh out xm sched-sedf
...tch -Displays[1] current parameters for running domains ala xm list -Allow users to set[2] one or more parameters[3] without having to provide values for parameters they do not wish to change -Adds additional testing of sched-sedf via new xm-test testcases. With this patch applied, test 02_sedf_period_lower_neg.py exposes a bug[4]. I''ll follow up this email with a patch for the bug. 1. root@bebop:~ # xm sched-sedf Name ID Period Slice Latency ExtraTime Weight Domain-0 0 20000000 15000000 0 1 0 2. root@bebop:~ # xm sched-sedf 0 --extratime...
2013 Mar 15
2
Help finding first value in a BY group
I have a large Excel file with SKU numbers (stock keeping units) and forecasts which can be mimicked with the following: Period <- c(1, 2, 3, 1, 2, 3, 4, 1, 2) SKU <- c("A1","A1","A1","X4","X4","X4","X4","K2","K2") Forecast <- c(99, 103, 128, 63, 69, 72, 75, 207, 201) PeriodSKUForecast <- data.frame(Period, SKU, Forecast) P...
2002 Oct 25
0
Age-period-cohort model
Dear R-list, I think it's really a newbie question but ... I try to model age-period-cohort models with polynoms in each effect. I have for each level of age and period some cases -k- and persons-years -py-. Models are A_xP_y: log(k_age,period/py_age,period)=f(polynom(x),age)+f(polynom(y),period). For exemple I try to adjust an A2P3 : log(k/py)=a1.age+a2.age*age+p1.period+p2.period...
2011 Oct 04
3
The use of period in function names and variable names
Hi, I am looking for some guidance on whether I can use the period(.) in function names and variable names. For example: my.function.name <- function(my.data.variable, my.radius, my.another.var, my.value = 10) { } Will this pose any problems regarding older and current version of R. -- SmartG [[alternative HTML version deleted]]
2012 Jun 20
7
[PATCH] xl: fix sedf parameters checking
...bian.guest.osstest.cfg libxl: error: libxl.c:3619:sched_sedf_domain_set: setting domain sched sedf: Invalid argument libxl: error: libxl_create.c:710:domcreate_bootloader_done: cannot (re-)build domain: -3 Parsing config from /etc/xen/debian.guest.osstest.cfg This is due to the fact the values for period, slice, weight and extratime should be consistent among each others, and if not all are explicitly specified, someone has to make that happen. That was right the purpose of the change in question, but it was failing at achieving so. This commit fixes things by forcing unspecified parameters to sen...