search for: step

Displaying 20 results from an estimated 34473 matches for "step".

Did you mean: ptep
2011 Dec 28
2
Gale-Shapley Algorithm for R
...was allready implemented (I couldn't find any on R topic), and if there is models and manners to make it more efficiently, add errors check, options, etc. At Berkeley's http://mathsite.math.berkeley.edu/smp/smp.html MathSite there is a very straighfoward example of the algorithm and its steps. My implementation follow the principle: 1. All men (or women) seeks for their best partner. 2. If there is no tie in a column (or row), stop. 3. If there is a tie, removes the worst-partners-tied and seek again the second-best (till n-best) alternative. The function is working right up to 6x...
2020 May 22
2
[PATCH] Optimized assembler version of md5_process() for x86-64
...;ebx' + # C is 'ecx' + # D is 'edx' + + cmp %rdi, %rsi # cmp end with ptr + je 1f # jmp if ptr == end + + # BEGIN of loop over 16-word blocks +2: # save old values of A, B, C, D + mov %eax, %r8d + mov %ebx, %r9d + mov %ecx, %r14d + mov %edx, %r15d + mov 0*4(%rsi), %r10d /* (NEXT STEP) X[0] */ + mov %edx, %r11d /* (NEXT STEP) z' = %edx */ + xor %ecx, %r11d /* y ^ ... */ + lea -680876936(%eax,%r10d),%eax /* Const + dst + ... */ + and %ebx, %r11d /* x & ... */ + xor %edx, %r11d /* z ^ ... */ + mov 1*4(%rsi),%r10d /* (NEXT STEP) X[1] */ + add %r11d, %eax /* dst += ... */ +...
2006 Jul 02
2
Problems implementing a N:M table that contains actual data
...o, has_many, has_and_belong_..., etc... However I''m stillnot sure if what I''m trying to do will work *well* with ActiveRecord. So enough talk, here''s what i''m trying to do. +-------+ +-------------+ +-----+ |clients|----------|clients_steps|-------------|steps| +-------+ +-------------+ +-----+ |id | |client_id | |step_id | |completed_at | +-------------+ |...
2009 Oct 01
1
Problems getting scanner to work from xsane (from Gnome Menu or GIMP)
..._Pro_L7700?ip=192.168.1.253' server1.wendellfreelibrary.org% scanimage -T scanimage: scanning image of size 638x1125 pixels at 24 bits/pixel scanimage: acquiring RGB frame, 8 bits/sample scanimage: reading one scanline, 1914 bytes... PASS scanimage: reading one byte... PASS scanimage: stepped read, 2 bytes... PASS scanimage: stepped read, 4 bytes... PASS scanimage: stepped read, 8 bytes... PASS scanimage: stepped read, 16 bytes... PASS scanimage: stepped read, 32 bytes... PASS scanimage: stepped read, 64 bytes... PASS scanimage: stepped read, 128 bytes... PASS...
2009 Jan 17
3
[Cucumber] Struggling with "multiple step definitions"
Hey gang, I find myself struggling with multiple step definitions in cucumber all the time. I regularly test the contents of my flash[:notice] in steps, since I think that''s part of the behaviour of the app. So, while implementing a new feature, I ran into the following error: /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.15/bin/../li...
2008 Feb 21
2
jpeg() creating empty files with qplot() in a loop
Hello all, I'm stuck with a strange issue with writing jpegs of plots to a folder in a loop. This works: for (step in 1:length(steps)) { jpeg(filename=paste("frame_",sprintf("%05d",step),".jpg",sep="")) plot(steps[[step]]) dev.off() } But if I use qplot to generate the plot (which is my aim): for (step in 1:length(steps)) { jpeg(filename=paste("frame_",...
2008 May 13
1
R help: problems with step function
Dear List Members, I have encountered two problems when using the step function to select models. To better illustrate the problems, attached is an R image which includes the objects needed to run the code attached. lm.data.frame have factor variables with 3 levels. The following run shows the first problem. AICs (* and **) are different. I noticed that the Df for rs...
2017 Oct 24
0
Issue of reproducibility with gam and lm.wfit in different versions of R
...witched to R 3.3.2. * Comparing results from environments 1, 2, and 3 shows that changing the version of the gam package did not change the results under R 3.3.0. * Comparing results from environments 3 and 4 shows that changing the version of R altered the values of the AIC and the output of the step.gam call (changed to a NULL object) * Comparing results from environments 4 and 5 shows that reverting to an older version of the gam package in R 3.3.2 still produced altered AIC values and the NULL output from step.gam call Further investigations into these differences seem to show that the lm...
2011 Dec 03
2
Help! Big problem when using "browser()" to do R debugging?
Hi all, Could you please help me? I am having the following weird problem when debugging R programs using "browser()": In my function, I've inserted a "browser()" in front of Step 1. My function has 3 steps and at the end of each step, it will print out the message "Step i is done"... However, after I hit <ENTER> when the program stopped before Step 1 and entered into the debugging mode, it not only executed the next line(i.e. the Step 1), but also all the (...
2001 Nov 05
1
stepwise algorithm step() on coxph() (PR#1159)
Full_Name: Jerome Asselin Version: 1.3.1 OS: MacOS 9.2 Submission from: (NULL) (142.103.173.46) The step() function attempts to calculate the deviance of fitted models even if does not really need it. As a consequence, the step() function gives an error when it is used with coxph(). (There is currently no method to calculate the deviance of coxph() fits.) The code below gives an example of how the dev...
2010 Sep 19
2
working with eval and environments
...to the lm function not evaluating to "train" in the parent environment but I can't seem to figure out how to do this. fitmodel <- function(trial,data) { wrap.lm <- function(formula,data,...) { cat("in wrap lm",NROW(data),"\n"); lm(formula,data,...) } wrap.step <- function(object,scope,...) { cat("in wrap step",NROW(train),"\n"); step(object,scope,...) } train <- data[1:trial at n,] null <- as.formula("y ~ 1") full <- as.formula("y ~ 1 + x1 + x2") cat("in fit",NROW(train),"\n"...
2012 Jun 14
2
Using Sub
Hi, I have been trying to get the sub function to work but can't for the life of me figure it out. I tried looking at ?sub but I think there is something that I am just not understanding. Example failed attempts > sub("\\","/","G:\Compensation Audits_Reports\Step Audit\Steps off Step.accdb") Error: '\C' is an unrecognized escape in character string starting "G:\C" > sub("\\","/","G:\Compensation Audits_Reports\Step Audit\Steps off Step.accdb",fixed=TRUE) Error: '\C' is an unrecognized escape i...
2008 Mar 20
5
sharing story steps
Hi, How can I have a common set of steps that all my stories share? i.e. My stories often start out looking like this: Given a user Joe Given a user Jordan then: Given("a user $username") do |username| @users ||= {} @user_sessions ||= {} @users[username] = create_user(:username => username) @user_sessions[usernam...
2010 Nov 03
2
memory allocation problem
Hi R users I am trying to run a non linear parameter optimization using the function optim() and I have problems regarding memory allocation. My data are in a dataframe with 9 columns. There are 656100 rows. >head(org_results) comb.id p H1 H2 Range Rep no.steps dist aver.hab.amount 1 1 0.1 0 0 1 100 0 0.2528321 0.1393901 2 1 0.1 0 0 1 100 0 0.4605934 0.1011841 3 1 0.1 0 0 1 100 4 3.4273670 0.10...
2008 May 14
0
Problems with step function
Dear List Members, I have encountered two problems when using the step function to select models. To better illustrate the problems, an R image (step.add1.test.RData) which includes the objects needed to run the code (step.add1.test.R) can be found at www.biostat.wisc.edu/~pwang/r-help/<http://www.biostat.wisc.edu/%7Epwang/r-help/> lm.data.frame have factor var...
2008 Jan 28
3
CentOS 4.4 and RHEL4 Update 3 Step-by-Step Text Mode Installation Screen Shots
Dear All, I need CentOS 4.4 and RHEL4 Update 3 Step-by-Step Text Mode Installation Screen Shots. Please send me the following Installation Screen Shots Details or link Regards -S.Balaji
2005 Oct 12
1
step.gam and number of tested smooth functions
Hi, I'm working with step.gam in gam package. I'm interested both in spline and lowess functions and when I define all the models that I'm interested in I get something like that: > gam.object.ALC<-gam(X143S~ALC,data=dane,family=binomial) > step.gam.ALC<-step.gam(gam.object.ALC,scope=list("ALC&quot...
2008 Mar 02
0
coxpath() in package glmpath
...p page of coxpath(), but I have difficult time understanding the output. Therefore, I would greatly appreciate if anyone can help me understand how to use the function. > data(lung.data) > attach(lung.data) > fit.a <- coxpath(lung.data) > print(fit.a) Call: coxpath(data = lung.data) Step 1 : karno Step 2 : celltype Step 5 : trt Step 6 : prior Step 7 : age Step 8 : diagtime > summary(fit.a) Call: coxpath(data = lung.data) Df Log.p.lik AIC BIC Step 1 0 -505.8840 1011.7679 1011.7679 Step 2 1 -486.0691 974.1382 977.0581 Step 5 2 -484.8520 973.7040 97...
2009 Feb 15
1
Issue with step(): Fails to look for object$model
Hi, I'm playing around with stepwise regression, using the step function, and believe I have found a bug (or at least, a strong case for improvement): > ex <- data.frame(y=rnorm(100),x=rnorm(100)) > l <- lm(y ~ x, data=ex) > step(l) [output is correct] > rm(ex) > step(l) Start: AIC=11.79 y ~ x Df S...
2009 Jan 26
2
heatmap with levelplot
Hi there, I'd like to create a heatmap from my matrix with a) a defined color range (lets say from yellow to red) b) using striking colors above and below a certain threshold (above = "green", below = "blue") Example matrix (there should be a few outliers generated...) + simple levelplot without outliers marked: library(lattice) my.mat <- matrix(rnorm(800), nrow =