Displaying 20 results from an estimated 800 matches similar to: "Trouble with contrasts"
2009 Jan 28
3
initial value in 'vmmin' is not finite
Dear r helpers
I run the following code for nested logit and got a message that
Error in optim(c(0, 0, 0, 0, 0.1, -2, -0.2), fr, hessian = TRUE, method = "BFGS") : initial value in 'vmmin' is not finite
What does this mean? and how can I correct it?
Thank you
June
> yogurt = read.table("yogurtnp.csv", header=F,sep=",")> attach(yogurt)>
2009 Mar 02
1
initial gradient and vmmin not finite
Dear Rhelpers
I have the problem with initial values, could you please tell me how to solve it?
Thank you
June
> p = summary(maxLik(fr,start=c(0,0,0,1,0,-25,-0.2)))
Error in maxRoutine(fn = logLik, grad = grad, hess = hess, start = start, :
NA in the initial gradient
> p = summary(maxLik(fr,start=c(0,0,0,1,0,-25,-0.2),method="BFGS"))
Error in optim(start, func, gr =
2010 Aug 13
1
decision tree finetune
My decision tree grows only with one split and based on what I see in
E-Miner it should split on more variables. How can I adjust splitting
criteria in R?
Also is there way to indicate that some variables are binary, like variable
Info_G is binary so in the results would be nice to see "2) Info_G=0"
instead of "2) Info_G<0.5".
Thank you in advance!
And thanks for Eric who
2013 Jan 17
0
[LLVMdev] Migrate Project Build system to LLVM BitCode
Hi Ahmad,
If the Makefile contains only this command, then it is not worth spending time on GoldPlugin. If you are building a large project, then it will be simpler to use GoldPlugin.
The steps you are using seem right. You can possibly combine the last two steps (3&4) using only 1 clang command.
clang -g -O2 -o .libs/mergedexe .libs/mergedbc.bc -pthread -Wl,--export-dynamic
2013 Jan 17
4
[LLVMdev] Migrate Project Build system to LLVM BitCode
Hi All,
I am migrating a build system of an existing project from 'Object files' based executable generation to 'LLVM Bitcode' files based exe generation and applying OPT pass to LLVM Bitcode. I found out the following 4 step procedure. Please let me know if this is the right procedure or is there any other easy way of doing it. I need to modify 'Makefile' accordingly. I
2009 Dec 02
0
[Fwd: Re: Adding and Multiplying two Unevaluated Expressions]
-------- Original-Nachricht --------
Betreff: Re: [R] Adding and Multiplying two Unevaluated Expressions
Datum: Tue, 01 Dec 2009 23:49:39 +0100
Von: Benjamin M?ller <ben_mueller.bm at web.de>
An: Rolf Turner <r.turner at auckland.ac.nz>
Referenzen: <20091201144125.316310 at gmx.net>
<8E40E49F-E8FC-4FBD-8CC5-93789FFB0E53 at auckland.ac.nz>
This works fine for your
2013 Jan 17
0
[LLVMdev] Migrate Project Build system to LLVM BitCode
Hi Ahmad,
On 17/01/13 14:56, Hassan, Ahmad wrote:
> Hi All,
>
> I am migrating a build system of an existing project from ‘Object files’ based
> executable generation to ‘LLVM Bitcode’ files based exe generation and applying
> OPT pass to LLVM Bitcode. I found out the following 4 step procedure. Please let
> me know if this is the right procedure or is there any other easy way
2013 Jan 17
1
[LLVMdev] Migrate Project Build system to LLVM BitCode
Hi Duncan,
> 4.gcc -g -O2 -o .libs/mergedexe .libs/mergedbc.s -pthread
> -Wl,--export-dynamic .libs/lib1.a -lssl -lcrypto -ldl -pthread .libs/lib2.so
>if you pass -O4 rather than -O2 to clang I think it will in essence do this all
>for you already. It might even do the link time optimization for you at -O2
>even, I'm not sure.
No, if I use clang for producing
2001 Jul 30
0
Remote controlling R via sockets
Many thanks to the R core team for their work on R connections. I was delighted to discover that it is now possible to remote-control R-1.3.0 via a socket connection - something which Brian Ripley noted was not yet possible with R-1.2.0 back in January 2001 in the first R News newsletter. How? Just substitute source() for readLines() in last few lines of the example for a socket connection given
2015 Mar 03
0
Feature request: copy attributes in gzcon
The `gzcon` function both modifies and copies a connection object:
# compressed text
con1 <- url("http://www.stats.ox.ac.uk/pub/datasets/csb/ch12.dat.gz")
con2 <- gzcon(con1)
# almost indistinguishable
con1==con2
identical(summary(con2), summary(con1))
# both support gzip
readLines(con1, n = 3)
readLines(con2, n = 3)
# opening one opens both
isOpen(con2)
2003 Dec 12
0
Synchronizing to multiple locations on a single destination serve r
Hi all.
This has been bugging me for quite some time and I haven't found a solution
yet. I was wondering
if anyone has any experience with similar scenarios or/and can tell me how
this process can be
optimized.
We use rsync to synchronize JAR libraries on our remote server. The catch
here is, that the
libraries must go in multiple locations (and not all the locations have all
the
2016 Oct 30
0
closeAllConnections() can really mess things up
This is what I get on R 3.3.1 on Linux:
> con1 <- textConnection("foo1", open = "w")
> print(con1)
description class mode text
"foo1" "textConnection" "w" "text"
opened can read can write
"opened"
2020 Jun 29
0
A warning in gzcon but not in gzfile
Hi all,
I used `gzfile` and `gzcon` to read a compressed file but I found that
`gzcon` gave me a different result than `gzfile`. It seems like the `gzcon`
does not handle the data correctly. I have posted an example below. In the
example, a portion of a compressed file is downloaded from Google Cloud as
a raw vector, and the data is saved into a temp file. If I use ` gzfile` to
read the file, it
2016 Apr 18
2
lists and rownames
I'm doing some string manipulation on a vector of file names, and noticed
something curious. When I strsplit the vector, I get a list of
character vectors.
The list is numbered, as lists are. When I cast that list as a data
frame with 'as.data.frame()', the resulting columns have names derived
from the original filenames.
Example code is below. My question is, where are these names
2005 Sep 26
2
constrOptim (PR#8158)
Full_Name: Haobo Ren
Version: 2.1.1
OS: Windows 2000
Submission from: (NULL) (192.11.226.116)
When running constrOptim, there is error message
Error: subscript out of bounds
2006 Apr 28
0
trouble with make/VPATH
I've got a tough to track down problem that seems to be samba related.
I've got a directory structure like this:
topdir/
lib1/src
lib1/include
lib2/src
lib2/include
etc.
Each src directory has a makefile in it. VPATH is set to ../include.
I'm running cygwin bash and make. In some directories, make can't find
files in ../include. In other directories, make finds
2009 Aug 21
2
Lightweight 'package' idea.
I'm often wanting to develop functions whilst manipulating data. But I
don't want to end up with a .RData full of functions and data. It
might be that I have functions that are re-usable but not worth
sticking in a package.
So I've tried to come up with a paradigm for function development
that more closely follows the way Matlab and Python do it (partly
inspired by a confused Matlab
2005 Oct 19
1
Socks under R
Hi
when I use
con1 <- socketConnection(...)
in R and want to send text from another application written in Delphi to
R, do I just have to send the text or do I have to implement more
control characters and so on?
Is
con1 <- socketConnection(port=6011, server=TRUE)
writeLines("plot(rnorm(100))", con1)
just sending the text in "plot(rnorm(100))" to the socket or is
2007 Dec 08
1
FW: R memory management
Hi,
I'm using R to collect data for a number of exchanges through a socket
connection and constantly running into memory problems even though task I
believe is not that memory consuming. I guess there is a miscommunication
between R and WinXP about freeing up memory.
So this is the code:
for (x in 1:length(exchanges.to.get)) {
tickers<-sqlQuery(channel,paste("SELECT Symbol
2012 Aug 27
1
Querying sqlite through RODBC causes R to crash
Dear R-SIG-Debian,
while trying to query data from an SQLite database through RODBC on
Debian testing, R crashes with the following message:
library(RODBC)
con3 <- odbcConnect("test3")
# 'test3' being an ODBC datasource configured with SQLite3 driver,
# but the same happens with SQLite driver
sqlQuery(con3, "select * from test") # 'test' being any table