search for: star

Displaying 20 results from an estimated 1865 matches for "star".

Did you mean: start
2006 Nov 22
3
Controller Isolation
...eed to make the create! method return the mocked object as well as raise RecordInvalid exception. Is this at all possible? I use the rescue statement in my controller methods and not @ object.new_record? or @object.valid? to check whether to redirect or render. -- controller -- def create @star = Star.create!(params[:star]) redirect_to star_path(@star) rescue ActiveRecord::RecordInvalid render :action => ''new'' end -- spec -- @star = mock(''star'') Star.should_receive(:create!).with({ ''name'' => nil }).and_return(@st...
2009 Jan 07
1
proto question
Dear R Users, I have a couple of proto objects like: wedge <- proto(expr={ start.year <- 2008 end.year <- 2050 }) star.rating <- wedge$proto( star = c(4, 5, 8, 10), gain = c(0, .3, .5, .7), cost = c(0, 2100, 4000, 7500), star.rating <- function(., year) 6.0, setup = function(.){ .$cost.for.star <- approxfun(.$...
2010 Dec 31
1
Star Sonata - wine client error:25: write: Bad file descript
Hi, I was planning to take a look at a little game I found called Star Sonata. I'm very new to Linux and I am running Ubuntu 10.10 with Wine 1.2.1. I looked up the game on winehq (http://appdb.winehq.org/objectManager.php?sClass=version&iId=13183) and it is listed as Gold and runs. The install ran fine, but when I tried to run the game it crashes on startup wi...
2010 Dec 24
3
selection of outputs from the function
...lt;- X%*%solve(t(X)%*%X)%*%t(X) Y.cap <- P%*%Y e <- Y-Y.cap var.cap<-(t(e)%*%e)/(nrow(X)-ncol(X)-1) ei <- Y[i,]-X[i,]%*%B.cap pi <- P[i,i] var.cap.i <- (((nrow(X)-ncol(X)-1)*var.cap)/(nrow(X)-ncol(X)-2))-(ei^2/((nrow(X)-ncol(X)-2)*(1-pi))) ti <- ei/(sqrt(var.cap)*sqrt(1-pi)) ti.star <- ei/(sqrt(var.cap.i)*sqrt(1-pi)) X.star <- cbind(X,Y) pi.star <- pi+(ei^2/(t(e)%*%e)) LDi <- nrow(X)*log(((nrow(X))/(nrow(X)-1))*(((nrow(X)-ncol(X)-2))/ (ti.star^2+nrow(X)-ncol(X)-2)))+((ti.star^2*(nrow(X)-1))/((1-pi)*(nrow(X)-ncol(X)-2)))-1 CVRi <- (((nrow(X)-ncol(X)-1-ti^2)/(...
2009 Jun 11
1
Help on drawing stars and radars in R (update)
Hi I don't know if you can help. I am a 2nd year Bsc Cosmetic Science student and in R I need some help in drawing stars. The problem that I have is I want to recreate a radar diagram similar to the one in excel. I have put in these commands in a script window: stars(shampoo1[, 1:6], locations = c(0,0), radius = TRUE, key.loc=c(0,0), main = "Ranked Results for the Sensory Evaluation of the Shampoo"...
2006 Nov 15
3
Star rating system - IE display problems
Has anyone out there implemented a star rating system as described by Dave Naffis? http://www.naffis.com/blog/articles/2006/08/31/rails-ajax-star-rating-system He really has an excellent HOWTO to set this up. Unfortunately I see problems in IE. The overlayed, filled-in rating stars are not overlaying over top of the blank stars. The...
2009 Jun 06
1
stars (as fourfold plots) in plot (symbols don't work)
Hi! I have a dataset with three columns -the first two refer to x and y coordinates, the last one are odds ratios. I'd like to plot the data with x and y coordinates and the odds ratio shown as a fourfold plot, which I prefer to do using the stars function. Unfortunately the stars option in symbols is not as cool as the stars function on its own, and now i can't figure out how to do it! here's an example code: #data test<-cbind(c(1,2,3,4), c(1,2,3,4), c(2,4,8,16)) #this is what I want the star symbol to look like stars(cbind(1...
2015 Nov 17
2
Small request of a feature improvement in the next version of R
...to this issue and was wondering if it could be fixed in the next version of R. Sorry if it was raised in a previous thread: So when I try the following I get an error: > m <- list() > m[["A3V6HVSALQ835D"]][['profiles']] <- 3 > m[["A3V6HVSALQ835D"]][['stars']] <- c(1, 23) Error in m[["A3V6HVSALQ835D"]][["stars"]] <- c(1, 23) : more elements supplied than there are to replace As does the following: > m <- list() > m[["A3V6HVSALQ835D"]][['profiles']] <- c() > m[["A3V6HVSALQ835D&...
2006 Mar 07
10
Star Rating Component?
Hi, I''m looking for a star rating component for RoR, a bit like Votio (http://redalt.com/downloads/ - find the votio heading) or the star rating used on Amazon. I don''t really need the AJAX capabilities, just the ability to bind the results to a hidden drop down, or radio inputs. Multiple raters per page is als...
2003 Aug 07
1
graph for selected lines in stars()
Dear listers, The following command (derived from the example in the ?stars help page) works : data(mtcars) stars(mtcars[, 1:7]) But the following gives an error: stars(mtcars[1, 1:7]) Error in s.y[i, ] : incorrect number of dimensions I was expecting to have the star graph for the first line (Mazda Rx4) The following give an incorrect graph for the first two cars : s...
2010 Aug 28
1
star models
Hi, I am traying to implement an STAR model, but I have some problems. I am following the instruction of the model, that they are in: http://bm2.genes.nig.ac.jp/RGM2/R_current/library/tsDyn/man/star.html that they are from: http://bm2.genes.nig.ac.jp/RGM2/pkg.php?p=tsDyn The model is: star(x, m=2, noRegimes, d = 1, steps = d, ser...
2006 May 04
3
number that starts with star on PAP2
We have some extensions in our dialplan that start with a star. We can dial them from Zap phones and SIP phones, but not from phones connected to a PAP2. After the user presses star follwed by two digits (our extensions are dialed with star followed by three digits) he hears a fast-busy that comes from the PAP2, not from Asterisk. This also...
2005 Mar 05
1
Problem with plotting size/location on variation of star/segment plot
Dear R gurus, I'm running into a problem with some modified segment plots I've coded using stars(). What I am trying to do is superimpose two series of data along with radial axes markers in a 2x2 graphics frame. This is working fine now, except for the hitch: my plots overfill the frame and are not centered within it (on my runs they always end up looking like they've been budged up an...
2013 Feb 07
5
Regression stars
Today's GNU R tutorial in http://how-to.linuxcareer.com/a-quick-gnu-r-tutorial-to-statistical-models-and-graphics points out how bad statistical practice is being further perpetuated, by virtue of "significance stars" still being the default in printed output from lm models. ----- Frank Harrell Department of Biostatistics, Vanderbilt University -- View this message in context: http://r.789695.n4.nabble.com/Regression-stars-tp4657795.html Sent from the R devel mailing list archive at Nabble.com.
2019 Mar 27
1
default for 'signif.stars'
...ith drawing "bright lines" concerning P values. This is the position of a US society, but my sense is that the statistical community worldwide is pretty much on the same page. Meanwhile, functions such as 'print.summary.lm' and 'print.anova' have an argument 'signif.stars' that really does involve drawing bright lines when it is set to TRUE. And the default setting for the "show.signif.stars" option is TRUE. Isn't it time to at least make "show.signif.stars" default to FALSE? And, indeed, to consider deprecating those 'signif.stars...
2010 Mar 31
1
Weird R behaviour?
...ec <- 3710 >n.gd <- 2650 >n.neo <- 2120 >n.pcos <- 53000 >unit.met <- 94 >cost.met <- 94*n.pcos >effect <- seq(0,1,.01) >gross.save <- ((n.preec*effect*c.preec) + (n.gd*effect*c.gd) + (n.neo*effect*c.neo)) >save.nhs <- gross.save - cost.met >e.star <- .4 >s.star <- save.nhs[which(effect==e.star)]/1000000 Now, R should return > which(effect==e.star) = 41 and therefore compute the variable s.star. All well and trivial; but if you try and set >e.star <- .7 R returns >which(effect==e.star) = integer(0) so apparently there...
2012 Nov 24
2
Building factors across two columns, is this possible?
I am trying to make it so two columns with similar data use the same internal numbers for same factors, here is the example: > read.csv("test.csv",header =FALSE,sep=",") V1 V2 V3 1 sun moon stars 2 stars moon sun 3 cat dog catdog 4 dog moon sun 5 bird plane superman 6 1000 dog 2000 > data <- read.csv("test.csv",header =FALSE,sep=",") > str(data) 'data.frame': 6 obs. of 3 variables: $ V1: Factor w/ 6 levels "1000",...
2007 Aug 13
0
ldap passwd sync on 3.0.25a
I have an strange issue with ldap passwd sync = only on FreeBSD 6.1 with Samba 3.0.25a + OpenLDAP 2.3.37 I have the OpenLDAP smbk5pwd overlay which successfuly synchronizes LM and NT passwords: $ ldappasswd -D 'cn=sambamgr,ou=managers,o=stars' -w sambapass -s secret1 'uid=lacoste,ou=Users,ou=Accounts,o=stars' Result: Success (0) My OpenLDAP auditlog file confirms that smbk5pwd is working: # modify 1187006837 o=stars cn=sambamgr,ou=Managers,o=stars dn: uid=lacoste,ou=Users,ou=Accounts,o=stars changetype: modify replace: u...
2005 May 23
7
Cisco 7960 & v7.4
I have recently upgraded my firmware from v6.3 to v7.4. Now when the phone is booted or rebooted, the initial screen "Initializing Vlan" takes forever to initialize before it initializes IP. Any ideas/Thoughts? (Trying not to Revert back to v6.3). -C -------------- next part -------------- An HTML attachment was scrubbed... URL:
2019 Mar 28
0
default for 'signif.stars'
Hi Martin, I take your point - but I'd argue that significance stars are a clumsy solution to the very real problem that you outline, and their inclusion as a default sends a signal about their appropriateness that I would prefer R not to endorse. My preference (to the extent that it matters) would be to see the significance stars be an option but not a default on...