search for: spread

Displaying 20 results from an estimated 2503 matches for "spread".

2009 Aug 05
1
writing a simulation
...'ve put across my problems with a smaller example in the attachment along >> with the questions. >> >> Please help. >> > > See Simpson reply to Q1 > > ##Question2: How can I easily identify which out of the 9 states does ad > fall into with Level =5.04 and spread=0.25? > ##OUTPUT > ad > X6 > Level 5.04 > spread 0.25 > state state8 > > But spread for state7 was -0.34????? > > Had it been 0.24, then this should work (some of the time.) > > subset(mydat4, Level == 5.4 & spread==0.25) > [1] Level spread chan...
2009 Aug 04
2
Caculate first difference from a dataframe; write a simulation
Dear R Users I'm writing my first simulation in R. I've put across my problems with a smaller example in the attachment along with the questions. Please help. Best regards Meenu -------------- next part -------------- mydat<-read.table(textConnection("Level spread change State 4.57 1.6 BlF NA 4.45 2.04 BrS NA 3.07 2.49 BlS NA 3.26 -0.26 BlF NA 2.80 0.22 BrF NA 3.22 2.5 BrS NA 4.2 -0.34 BlF NA 3.80 0.35 BrS NA 4.28 1.78 BrF NA 5.4 -0.34 BrF NA 4.89 0.24 BlF NA"), header=TRUE,as.is=TRUE) mydat3<-data.frame(mydat) q<-quantile(mydat3[[1]],c(0,0.25,0...
2008 Mar 23
3
"spreading out" a numeric vector
...nning into a problem in positions where the values to plot are too close together to print the text without overlap. The simplest way I can think of to solve this (although there may be other ways?) is to create a new numeric vector whose values are as close as possible to the original vector, but spread out to a given minimum difference. For example, take the following vector: > x <- c(1,2,seq(2.1,2.3,0.1),3,4) > x [1] 1.0 2.0 2.1 2.2 2.3 3.0 4.0 > However, suppose I don't want to plot any of these points with less than 0.5 between them. The problem could be solved by a functio...
2008 Aug 27
2
r function for calculating extreme spread in group
I'm trying to figure out how to write a r function that will calculate the extreme spread of a group of points given their (x,y) coordinates. Extreme Spread is the maximal Euclidean distance between two points in a group ex.spread = max{ sqrt [ (xi-xj)^2 - (yi-yj)^2 ] } for i not equal to j I have 60 levels to apply this to. There is the combination function in the dprep package...
2009 Jan 16
6
reading data from Excel Spread sheet
Hi all, I tried to read data from Excel spread sheet with using read.csv(file.choose()) and read.delim(file.choose()) but its showing " *ÐÏ.à.*." and also i tried with read.table(file.choose()) then its showing " * V1 1 ÐÏ\021ࡱ* " can any...
2010 Mar 23
2
Creating pdfs using qplot in qqplot2
I am trying to create plots within a for loop and output them to a pdf. Here is a working example using plot: gg <- data.frame(datadate=1:4, spread=5:8) pdf() for (i in 1:3) { plot(gg$datadate, gg$spread, main=i) } dev.off() I am trying to learn more about ggplot2 so I try a slight modification and it doesn't work. Anyone know how to do this using qplot in ggplot2? gg <-...
2006 Feb 02
0
crossvalidation in svm regression in e1071 gives incorre ct results (PR#8554)
...#39;s bug reporting system for contributed packages. 2. This is _not_ a bug in svm() in `e1071'. I believe you forgot to take sqrt. 3. You really should use the `tot.MSE' component rather than the mean of the `MSE' component, but this is only a very small difference. So, instead of spread[i] <- mean(mysvm$MSE), you should have spread[i] <- sqrt(mysvm$tot.MSE). I get: > spread <- rep(0,20) > for (i in 1:20) { + spread[i] <- svm(y ~ x,data, cross=10)$tot.MSE + } > summary(sqrt(spread[i])) Min. 1st Qu. Median Mean 3rd Qu. Max. 0.2679 0.2679 0.26...
2008 Nov 13
1
Error in Quantile function
...plicated function that has no problems with determining the confidence intervals using the quantile command. This is outside the bootstrap portion of the code that is working fine it is just determining everything for the more complicated model, not even sure what the error is telling me. > spread <- expntl.dr(plot_k_list,pdose) > exp_CIs <- quantile(spread,probs=c(0.01,0.05,0.95,0.99)) Error in order(list(bootdataframe.age = c(1.56064428047387e-09, 1.63862234892065e-09, : unimplemented type 'list' in 'orderVector1' > I am not sure if this is problem wit...
2006 Jun 01
5
Content Management System
I am looking for a good CMS based on Rails that has at least these attributes: 1. Ease of use ( as it will be used by people who are not html literate) 2. Very easy/flexible to change layout. So far I have looked at http://rcms.oopen.de/Home/ (have not installed it yet) http://adminpages.flowdev.de http://demo.radiantcms.org/admin/pages http://www.eribium.org/eribium/ MuraveyWeb does not seem
2008 Feb 13
1
Modelling disease spread
I was at a lecture the other day and I saw a presentation of very neat (short) animation modeling epidemic disease spread over a map region. When I ask what software they used they mentioned SAS. Do you know if there are equivalent resources in R to model the spread of disease with animation output? My search in R-help and google didn't lead to any document (though I found a couple of documents for SAS). However m...
2001 Aug 07
3
Troubles with Farpoint Spread controls
Hi all. The environment we are working on is a Red Hat Linux 6.2, with XFree 4.0 and KDE 2.1. The wine has been compiled using egcs-1.1.2. Wine itself is latest snapshot (20010731). The application we're trying to run crashes when tries to display a dialog box using Spread controls (from Farpoint). The crash occurs during a WM_PAINT. By exploring the builind of the window, the control it is showing is a scrollbar (lpszClass="SPR32D30ScrlBar"). A very strange behaviour is that the window does not appear to be linked in the parent/sibling structure. I...
2009 Jun 09
1
Using ADF.Test
Hi, I am quite new to R and would appreciate some guidance, if possible. I have imported a csv file: spread <- read.csv("Spread.csv") I get the following error when I try to run adf.test: > adf.test(spread,alternative = c("stationary", "explosive"),0) Error in embed(y, k) : 'x' is not a vector or matrix Why is this? -- View this message in context: http://ww...
2007 Apr 04
1
command to see if a process is being spread among multiple cpus
What command can I use to check if a specific process is being spreaded among multiple cpus? -- ------------------------------------------------------------ Erick Perez ------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachmen...
2007 May 29
2
map entire spread sheet to Active record model
Hello I want konw that how can make a spread sheet itself as a active record model so that I build applicationd and top of that model --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to ruby...
2012 Jul 20
1
fitting Ornstein-Uhlenbeck process by MAXIMUM LIKELYHOOD
...by MAXIMUM LIKELYHOOD method. i found these formulas on http://www.sitmo.com/article/calibrating-the-ornstein-uhlenbeck-model/ this is the mean-reverting process http://r.789695.n4.nabble.com/file/n4637271/process.txt process.txt and this is the script that i am using....... ouFit.ML=function(spread) { n=length(spread) delta=n/n Sx=sum(spread[1:n-1]) Sy=sum(spread[2:n]) Sxx=(Sx)^2 Syy=(Sy)^2 Sxy=Sx*Sy mu = (Sy*Sxx - Sx*Sxy) / ( n*(Sxx - Sxy) - (Sx^2 - Sx*Sy) ) lambda = -log( (Sxy - mu*Sx - mu*Sy + n*mu^2) / (Sxx -2*mu*Sx + n*mu^2) )/delta a = exp(-lambda*delta) sigmah2...
2005 Feb 25
1
Samba users spreading spam (or automated replies)
Hi Some of the samba users are spreading spam or automated replies. Is there any possible way to stop them? I've got the following two messages after my first post which are either spam or automated nonsense replies: Message 1: From: Jim Crippen <jcrippen@eliteint.com> To: Behrang Saeedzadeh <behrangsa@gmail.com> Dat...
2017 Jul 11
2
dplyr help
...Sent: 10 July 2017 03:52 PM To: r-help at r-project.org; Mangalani Peter Makananisa; r-help at r-project.org Cc: Vito Ricci (vito_ricci at yahoo.com) Subject: Re: [R] dplyr help I am pretty sure that this is not a question about dplyr... it is a question about tidyr. Look at the help file ?tidyr::spread. If I understand your question (I may not, because you gave no example of input/output data), the answer is no, the column names come from the column named by the key parameter and the values that fill those columns come from the column named by the value parameter. Modify your data frame to cont...
2017 Jul 10
0
dplyr help
I am pretty sure that this is not a question about dplyr... it is a question about tidyr. Look at the help file ?tidyr::spread. If I understand your question (I may not, because you gave no example of input/output data), the answer is no, the column names come from the column named by the key parameter and the values that fill those columns come from the column named by the value parameter. Modify your data frame to cont...
2017 Jul 10
4
dplyr help
HI all, Is it possible to use one column spread on multiple columns values. example spread( Key_col, value1:value7) spreading Key_col to variable value1, value2, ....... Value7 Please advise, Kind regards Mangalani Peter Makananisa (5786) South African Revenue Service (SARS) - HO +2782 456 4669 / +2712 422 7357 Please Note: This email and...
2008 Jul 18
3
"Spreading risk" in a matrix
...a map of invasive species risk (1 = infested; 0 = uninfested). It started as a matrix of probabilities (developed in ArcMap) that I converted to binary with this R code: binary.matrix<-matrix(rbinom(length(prob.matrix),prob=prob.matrix,size=1),nrow=nrow(prob.matrix)) Now, I would like to "spread" the risk for year 2 of the invasion. I'd like to do this by location, so, for every cell that is currently a 1, next year it's immediate neighbors (above, below, to the right and left) would also become ones. Here is a function I came up with to attempt this (clearly, my function writ...