similar to: Creating a model.matrix with a logical data matrix

Displaying 20 results from an estimated 40000 matches similar to: "Creating a model.matrix with a logical data matrix"

2009 Apr 21
2
Question on binomial data
Hi, We have an experiment with pass/fail outcome, and a continuous parameter which may contribute to the outcome. First, we've analyzed it by: p=c(F,T,F,F,F,T,T,T,T,T,T,T,F,T,T,T,T); w=c(53,67,59,59,53,89,72,56,65,63,62,58,59,72,61,68,63); l<-glm(p~w,family=binomial) summary(l) Which turned out to be non significant. Then, we thought of comparing the parameters of the two groups
2019 Dec 26
2
RFC: Refactor SubclassData
I've tested it on MSVC, gcc, clang and icc. The solution in clang (in Decl.h) is not ideal (as you have said yourself). The solution I offer, is using a union of fields of class BitField (this is a new class that implements a bitfield of a specific type requested). With this, the definition, of the required bitfields in the subclass data, remains in the hands of the actual class needing them.
2007 Nov 15
1
Why is model.matrix creating 2 columns for boolean?
I have a data frame "reading" that includes a logical variable "OLT" along with response variable "Reading" and predictor "True" (BOTH are numeric variables; it's "True" as in the true value). When I suppress the intercept, model.matrix gives me OLTTRUE and OLTFALSE columns. Why? Can I do anything to prevent it? > r <-
2007 May 08
5
mongrel_cluster 1.0.1.1 does not create /var/run/mongrel_cluster
Hi everyone, I am going crazy over here! :) I just want to be able to use --clean with my mongrel_rails cluster::start command. I''ve upgraded to mongrel_cluster 1.0.1.1 and mongrel_rails 1.0.1. my config file is in /etc/mongrel_rails/config.yml and contains: --- log_file: log/mongrel.log port: 8000 pid_file: /var/run/mongrel_cluster/mongrel.pid servers: 2 address: 127.0.0.1 environment:
2020 Apr 28
2
Backward compatibility of LLVM IR - ll/bc files
On Mon, Apr 27, 2020 at 6:42 AM Robinson, Paul via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Older releases are still available for download at releases.llvm.org; I > believe the 3.0 release was supposed to be able to read 2.x bitcode, so you > should be able to upgrade the bitcode with 3.0 tools and proceed from > there. I **think** everything since 3.0 is still readable
2020 Apr 27
3
Backward compatibility of LLVM IR - ll/bc files
I admit I didn't know about that, but that is because I am handling a lot of *old* bugs, older than LLVM version 3.0. Version 3.0 has been released in Dec 1st 2011, and there are still many bugs open from before that point. The current BC Reader can't parse files produced by LLVM version 2.9 and below (I've checked). So, I wonder if there is anyone in favor, against (, or just
2019 Nov 21
4
How to trigger builds in Phabricator?
Hi everyone, In the reviewing system, after a patch is approved, what should be the following step? I assume I'll have to make sure the patch hasn't broken anything, before pushing it, so I'll wan't to run a full build+tests, probably in a remote sterile environment (like a jenkins server). Do we have an integration system like this? Or should I just trust the build+tests on my
2020 Apr 27
2
Backward compatibility of LLVM IR - ll/bc files
Quite often I get to work on an old bug, where an old ll/bc file is attached as a testcase. These files, in most cases (if not all), need to be converted somehow to the latest format, for the trunk version to be able to parse it without an error. So a few questions arise: 1. Is there a standard way to convert an old ll/bc to the latest? If not, what is the common approach for these cases? 2.
2019 Dec 27
2
RFC: Refactor SubclassData
Ehud, can you elaborate on which classes you're trying to change. I know some of the classes already use methods like getSubclassDataFromInstruction() to hide bits from the subclasses. They could probably shift the data too. ~Craig On Fri, Dec 27, 2019 at 9:35 AM Bruno Ricci via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Hi, > > On 26/12/2019 20:53, Ehud Katz via
2008 Jul 19
1
replicate matrix blocks different numbers of times into new matrix
Hi, I am trying to replicate blocks of a matrix (defined by factors) into another matrix, but an unequal, consecutive number of times for each factor. I need to find an elegant and fast way to do this, so loops will not work. An example of what I am trying to do is the following: # the data - first column entries are both data and the two factors x<-matrix(c(1,2,3,4),2,2) > x [,1]
2001 Aug 12
1
Creating a Model Matrix - keeping NAs
I am wanting to create a model matrix and keep the NAs. stratmat <- model.matrix(myformula,mydata) Is there any way to do this? model.matrix doesn't have na.action as a parameter. Elsewhere I have made use of na.keep <- function(x){x}. Many thanks, Rachel Cunliffe -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read
2007 Feb 18
3
Modifying traffic shaping rates according to the amount of active users
Hi, I''m trying to divide my bandwidth between different services, but I''d like to take into account the number of active users. For example, l want divide my bandwidth between HTTP and SMTP and guarantee HTTP 80% of the bandwidth. However, I have many users on my system (tens of thousands) and if only 1% of my active users are using HTTP (and the other 99% SMTP), I''d
2007 Mar 15
1
expm() within the Matrix package
Hi Could anybody give me a bit of advice on some code I'm having trouble with? I've been trying to calculate the loglikelihood of a function iterated over a data of time values and I seem to be experiencing difficulty when I use the function expm(). Here's an example of what I am trying to do y<-c(5,10) #vector of 2 survival times p<-Matrix(c(1,0),1,2) #1x2 matrix
2004 Jun 25
2
Can one send CLID NAME over PRI?
Is it possible to send CLID NAME on a PRI? The numbers we send out are being received by telco and propagated, but the names we send out are not showing up. Is this a feature in PRI? Do we need to set PRI_NET instead of PRI_CPE? Is this just not possible? Is this a telco config issue? Thanks for your help... I've read voip-info, and various other sources, and search engines, and google...
2019 Dec 24
2
RFC: Refactor SubclassData
Hello devs, Recently I've been working on a bug that can probably be fixed with the addition of a simple flag to a class descendant of `llvm::Value`. Without increasing the size of the class, I can just add this flag to `llvm::Value::SubclassData`. But this is not an easy task! This is because the offsetes/sizes of the data stored in the `SubclassData`, are hardcoded literals/enums. If you
2020 Jul 21
0
trivial typo in ?Matrix::sparse.model.matrix.Rd
On 2020-07-21 09:00, Martin Maechler wrote: >>>>>> "AS" == Abby Spurdle >>>>>> on Wed, 22 Jul 2020 00:28:12 +1200 writes: > >> "No documentation for ?sparse.model.matrix? in > >> specified packages and libraries", but it's there after > >> "library(Ecfun)". I find that interesting,
2003 Dec 08
1
matrix coercion, logical -> character
Anyone know whether this is intentional, and by which rationale? (R-devel on RedHat, but hardly new) > l <- data.frame(a=rpois(10,1)>0,b=rpois(10,1)>0) > apply(l,1,which) Error in FUN(newX[, i], ...) : argument to "which" is not logical > lapply(l,mode) $a [1] "logical" $b [1] "logical" > mode(as.matrix(l)) [1] "character" --
2006 Jan 17
1
data.matrix returns mode logical for zero rows (PR#8496)
Full_Name: Jonathan Swinton Version: 2.2.1 OS: Windows Submission from: (NULL) (193.132.159.169) #The first line of description for data.matrix says that it will # 'Return the matrix obtained by converting all the variables in a # data frame to numeric mode and then binding them together as the # columns of a matrix.' #However when called with a data.frame with zero rows,
2020 Aug 22
1
M[cbind()] <- assignment with Matrix object loses attributes
Thanks for taking a look! Hmm, really? In `R Under development (unstable) (2020-08-14 r79020)`, doing the indexed assignment with a regular matrix (as opposed to a Matrix) appears to preserve attributes. m1 <- matrix(1:9,3,3) attr(m1,"junk") <- 12 stopifnot(isTRUE(attr(m1,"junk")==12)) ## OK m1[cbind(1:2,2:3)] <- 1
2020 Apr 14
2
[RFC] Removing Waymarking from Use.
Yes please. On Tue, Apr 14, 2020, 5:02 AM Tyker1 at outlook.com via llvm-dev < llvm-dev at lists.llvm.org> wrote: > a bit of time has passed and there to my knowledge still no strong > arguments against removing it. > is everyone OK to proceed with the removal ? > > Gauthier > ------------------------------ > *From:* Chris Lattner <clattner at nondot.org> >