search for: examp

Displaying 20 results from an estimated 71 matches for "examp".

Did you mean: exams
2017 Dec 13
3
inefficient for loop, is there a better way?
The code below is a small reproducible example of a much larger problem. While the script below works, it is really slow on the true dataset with many more rows and columns. I'm hoping to get the same result to examp, but with significant time savings. The example below is setting up a data.frame for an ensuing regression analysis. The...
2011 Apr 18
1
using "aggregate" when variable names contain spaces
Hello! my data set has many variables. Unfortuantely, many of those variables contain spaces in their names. I need advice on: how to refer to variable names in the formula for "aggregate". See example below: ### Generating example data set: mydate = rep(seq(as.Date("2008-12-01"), length = 3, by = "month"),4) value1=c(1,10,100,2,20,200,3,30,300,4,40,400) value2=c(1.1,10.1,100.1,2.1,20.1,200.1,3.1,30.1,300.1,4.1,40.1,400.1) example<-data.frame(mydate=mydate,value1=value1,...
2010 Aug 31
3
"mode" function
...ue but I have unable to find the answer for it either in the R-manual or by browsing the web. I would like to know if there is a "mode" function in R, such that from a vector or matrix the function returns the most common value. In other programs I use (such as Matlab) I can have for exampe a 3X3 matrix A, A=[1 2 3; 1 3 2; 3 3 2] and I can find the mode of the rows so that mode(A[1:3,:]) returns a 1X3 matrix [1 3 2]. Is this possible in R as well? If not, how would one go about this? Thank you very much, Bill [[alternative HTML version deleted]]
2005 Oct 14
2
events after sort
...rototype.js et al, i am currently creating a sortable list with: Sortable.create(''id'', { onChange: myFunc }); but what i really want is an event that occurs after the li''s have been reordered and settled into the new list order. how would i do that? i know i can do for exampe: Event.observe(''id'', ''mouseup'' , func , false); i''m sure there''s a very simple solution, it''s just escaping me, thanks for any tips. -brent -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath....
2010 Apr 11
2
[LLVMdev] call for suggestions
Hi, Dear LLVMers I just touch llvm source code for several days, and I didn't know the interfaces of the analysises and transformations of LLVM. For exampe, how to backtrace CFG, and whether exits a backtracking interator to do such work? For a novice, I also seek for suggestions about how to become familiar with LLVM interfaces as soon as possible. Now I have a plan to write a pass based on LLVM, and my first challenge is how to make the best use o...
2009 Jul 15
2
Problems with computing an aggregated score
...all, I have a problem with computing a new variable as an aggregated score of other variables. Say, I have 10 variables for 1,000 observations (people). Every variable may have values between 0 and 8. What I would like to do is computing the mean of the individual top 3 values for every person. Exampe: The values for the 10 variables (v1 to v10) for person A, B and C are as follows: A 0 1 0 2 5 8 3 0 4 0 B 6 4 3 0 0 0 0 5 0 0 C 0 0 8 0 0 8 0 0 0 0 So, I would like to compute a new variable for the mean of the individual top 3 values, which would result for person A, B and C in the following:...
2009 Jul 06
2
[LLVMdev] Address Space
...BSS section. My idea is to split the uninitialized global variables in two sections and to aggregate them depends on the uses of each variable at execution time (by profiling I will know what variable will be in each section). In addition, can I add more address spaces for heap and stack also? For exampe, can I split my stack in two segments, one to hold critical info like return address and frame pointer, and another to hold function arguments? How I can do it? Thanks in advance, Juan Carlos -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.or...
2010 Nov 09
2
Merging data frames one of which is NULL
Hello! I am running a loop. The result of each run of the loop is a data frame. I am merging all the data frames. For exampe: The dataframe from run 1: x<-data.frame(a=1,b=2,c=3) The dataframe from run 2: y<-data.frame(a=10,b=20,d=30) What I want to get is: merge(x,y,all.x=T,all.y=T) Then I want to merge it with the output of the 3rd run, etc. Unfortunately, I can't create the placeholder for the overall...
2009 May 31
1
how to sort data frame order by column?
I have a data frame, for exampe > dat <- data.frame(a=rnorm(5),b=rnorm(5),c=rnorm(5)) a b c 1 -0.1731141 0.002453991 0.1180976 2 1.2142024 -0.413897606 0.7617472 3 -0.9428484 -0.609312786 0.5132441 4 0.1343336 0.178208961 0.7509650 5 -0.1402286 -0.333476839 -0.4959459 How to make da...
2010 Oct 25
0
non-stationary ar part in css
...6.978443, 6.984755, 7.007225, 7.161198, 7.169790, 7.251534, 7.336429, 7.356600, 7.413271, 7.404165, 7.480869, 7.498686, 7.429809, 7.302747, 7.168251, 7.124798, 7.094881, 7.119132, 7.049250, 6.961049, 7.013442, 6.915243, 6.758036, 6.665078, 6.730523, 6.702005, 6.905522, 7.005191, 7.308986) model.examp<-arima(X,order=c(7,0,0),include.mean=T) # gives an error model.examp<-arima(X,order=c(7,0,0),include.mean=T,method="ML") # gives no error Any help on this would be most appreciated Many thanks fo the help best wishes Benedikt
2010 Oct 26
0
problem with arima() function
...84755, 7.007225, 7.161198, 7.169790, 7.251534, 7.336429, 7.356600, 7.413271, 7.404165, 7.480869, 7.498686, 7.429809, 7.302747, 7.168251, 7.124798, 7.094881, 7.119132, 7.049250, 6.961049, 7.013442, 6.915243, 6.758036, 6.665078, 6.730523, 6.702005, 6.905522, 7.005191, 7.308986) model.examp<-arima(X,order=c(7,0,0),include.mean=T) # gives an error model.examp<-arima(X,order=c(7,0,0),include.mean=T,method="ML") # gives no error Any help on this would be most appreciated Many thanks fo the help best wishes Benedikt
2006 Jan 29
0
Bug in wilcox.test
...in fall 2003. Line 86 of wilcox.test.R achieved.alpha<-2*psignrank(trunc(qu),n) It should be achieved.alpha<-2*psignrank(trunc(qu)-1,n) If you don't see why, decode the cookbook instructions p. 56 in Hollander and Wolfe (2nd ed.) or see http://www.stat.umn.edu/geyer/5601/examp/signrank.html#conf or just do a sanity check: does this to the right thing when the confidence interval is the range of the data, case qu = 1? No. Of course, this error isn't very visible, because wilcox.test still prints the ASKED FOR confidence level instead of the ACTUAL ACHIEVED confiden...
2006 May 26
3
Docs for print or in the distribution zip?
Hi, Are there any plans to "export" the documentation from time to time(e.g. at releases) from the WIKI in an "offline" form to be usable as printed, and/or to be distributed with into scriptaculous-js-1.x.x.zip ? It is very uncomfortable that the ZIP distribution contains practically no documentation :(. Most of the WIKIs have such export function (many of them even export
2015 Apr 09
1
gmail-migration: archived mails in \ALL
...t find the documentation for the -a and the -F Flag. I'd like to migrate ONLY archived mails from an existing gmail-Account. So I'd have to import all Mails from the \ALL-Folder that does NOT have any virtual folder flags set. I tried to use this command: doveadm -D -o imapc_user=user at example.com -o pop3c_user=user at exampe.com -o imapc_password=secret -o pop3c_password=secret -o imapc_host=imap.googlemail.com -v backup -m '[Gmail]/Tutti i messaggi' -F '-$GmailHaveLabels' -x \Flagged -x \Junk -x \Trash -x \Important -R -u user at example.com imapc: But it looks like...
2008 Feb 06
3
counting row repetitions without loop
Hi, I have a data frame consisting of coordinates on a 10*10 grid, i.e. > example x y 1 4 5 2 6 7 3 6 6 4 7 5 5 5 7 6 6 7 7 4 5 8 6 7 9 7 6 10 5 6 What I would like to do is return an 10*10 matrix consisting of counts at each position, so in the above example I would have a matrix where, for example, cell [4,5] contains 2 and [6,7] contains 3...
2010 Sep 21
6
Iterate HashWithIndifferentAccess
How do I iterate a HashWithIndifferentAccess? I need to set the order using a sortable_element. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send
2010 Apr 12
0
[LLVMdev] call for suggestions
On Sun, 2010-04-11 at 10:54 +0800, lucefe wrote: > Hi, Dear LLVMers > > I just touch llvm source code for several days, and I didn't know the > interfaces of the analysises and transformations of LLVM. For exampe, > how to backtrace CFG, and whether exits a backtracking interator to do > such work? > > For a novice, I also seek for suggestions about how to become familiar > with LLVM interfaces as soon as possible. Now I have a plan to write a > pass based on LLVM, and my first challeng...
2015 Oct 09
2
git clone --recursive
...yslinux'... remote: Counting objects: 50546, done. remote: Total 50546 (delta 0), reused 0 (delta 0) Receiving objects: 100% (50546/50546), 22.10 MiB | 4.47 MiB/s, done. Resolving deltas: 100% (37690/37690), done. $ cd syslinux $ git config --list user.name=Geert Stappers user.email=stappers at examp.le core.repositoryformatversion=0 core.filemode=true core.bare=false core.logallrefupdates=true remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* remote.origin.url=git://repo.or.cz/syslinux.git branch.master.remote=origin branch.master.merge=refs/heads/master $ cd .. $ rm -rf syslinux/ $ git...
2005 May 25
1
The error while using R2WinBUGS
...riate in this kind of model due to some reasons(according to the manual of WinBUGS14), and WinBUGS cannot calculate it, but this is allowed in WinBUGS. If I just ran it in WinBUGS, that would be fine, because my goal is to get the summay not DIC, but I need to run it in R, and R must have DIC. (the example as follow). I am wondering what I can do to fix it in R? for exampe: the school example: the output in R: > print(schools.sim) Inference for Bugs model at "c:/schools/schools.bug" 3 chains, each with 1000 iterations (first 500 discarded) n.sims = 1500 iterations saved mean sd 2.5%...
2009 Jul 06
0
[LLVMdev] Address Space
...will know what variable will be in each > section). This can be done with the existing section markings for globals; address spaces are intended for situations where the spaces actually have distinct properties. > In addition, can I add more address spaces for heap and stack also? For > exampe, can I split my stack in two segments, one to hold critical info like > return address and frame pointer, and another to hold function arguments? > How I can do it? You don't need address spaces for that; it's just a matter of using different heap allocation functions and a custom c...