Displaying 20 results from an estimated 100 matches similar to: "help with lasso2 package"
2007 Jul 25
1
question on using "gl1ce" from "lasso2" package
Hi,
I tried several settings by using the "family=gaussian"
in "gl1ce", but none of them works.
For the case "glm" can work.
Here is the error message I got:
> glm(Petal.Width~Sepal.Length+Sepal.Width+Petal.Length
,data=iris,family=gaussian())
> gl1ce(Petal.Width~Sepal.Length+Sepal.Width+Petal.Length
,data=iris,family=gaussian())
Error in eval(expr, envir,
2003 Dec 04
2
predict.gl1ce question
Hi,
I'm using gl1ce with family=binomial like so:
>yy
succ fail
[1,] 76 23
[2,] 32 67
[3,] 56 43
...
[24,] 81 18
>xx
c1219 c643
X1 0.04545455 0.64274145
X2 0.17723669 0.90392792
...
X24 0.80629054 0.12239320
>test.gl1ce <- gl1ce(yy ~ xx, family = binomial(link=logit), bound =
0.5 )
or
>omit <- c(2,3)
>test.gl1ce
2007 May 18
0
Cross-validation for logistic regression with lasso2
Hello, I am trying to shrink the coefficients of a logistic regression for a
sparse dataset, I am using the lasso (lasso2) and I am trying to determine
the shrinkinage factor by cross-validation. I would like please some of the
experts here to tell me whether i'm doing it correctly or not. Below is my
dataset and the functions I use
w=
a b c d e P A
0 0 0 0 0 1 879
1 0 0 0 0 1 3
0 1 0 0 0 7 7
2004 May 11
1
How to use c routines in the exiting package?
Hi all,
I want to know some details about the c routine “lasso” in the functions
of “gl1ce()” . However, I have following troubles. First, I can not
find the routine in the local directories of this function (or package).
Second, if I found the routine, could I call it just like this way, say,
fit <- .C("lasso", …,PACKAGE = "lasso2") in my own functions. My system
is
2005 Nov 04
1
small bug in gl1ce, package lasso2 (PR#8280)
Full_Name: Grant Izmirlian
Version: 2.2.0
OS: SuSe Linux version 9.2
Submission from: (NULL) (156.40.34.177)
Sorry about the last submission, my bug-fix had an error in it because ifelse
doesn't vectorize. I'll repost with the correct bug-fix.
-------------------------------------------------------------------------------
The option exists to include all parameters, including the
2011 Sep 19
1
Constrained regressions (suggestions welcome)
All,
Could anyone recommend a package that allows the user to constrain the
coefficients from a multiple regression equation?
I tried using the gl1ce function in lasso2, but couldn't get it to
work. I created a contrived example to illustrate my starting point.
data(cars)
fmla <- formula(dist ~ speed)
gl1c.E <- gl1ce(fmla, data = cars)
gl1c.E
gl1c.E <- gl1ce(fmla, data =
2006 May 09
1
Question about match.fun()
Dear all,
I was recently contacted by a user about an alledged problem/bug in
the latest version of lasso2. After some investigation, we found out
that it was a user error which boils down to the following:
> x <- matrix(rnorm(200), ncol=2)
> var <- "fred"
> apply(x, 2, var)
Error in get(x, envir, mode, inherits) : variable "fred" of mode "function"
2013 Jun 27
1
[LLVMdev] [MSan] false positive from Memory Sanitizer?
In the example below, the Memory Sanitizier (from clang 3.3) reports an error:
#include <math.h>
int main() {
double x;
(void) modf(0, &x);
if (x) { // Boom
return 1;
}
return 0;
}
I see that modf() is not implemented by compiler-rt. Is it possible
to make the Memory Sanitizer assume that all un-instrumented functions
initialize any pointers arguments?
2012 Feb 18
0
Re: [Qemu-devel] [PATCH] build: add needed missing libraries libm and librt
Am 18.02.2012 09:24, schrieb Blue Swirl:
> On Wed, Feb 8, 2012 at 17:06, Roger Pau Monne <roger.pau@entel.upc.edu> wrote:
>> libm is used in cutils.c, but the library was not specified
>> when linking some binaries, throwing the following error:
>>
>> cutils.o: In function `strtosz_suffix_unit':
>> /home/royger/xen-clean/tools/qemu-xen-dir/cutils.c:354:
2009 Apr 02
2
all subsets for glm
Dear R-users,
For the purpose of model selection I am looking for a way to
exhaustively (and efficiently) search for best subsets of predictor
variables for a logistic regression model.
I am looking for something like leaps() but that works with glm.
Any feedback highly appreciated.
--
Harald von Waldow <hvwaldow at chem.ethz.ch>
Safety and Environmental Technology Group
Institute for
2009 Mar 12
3
Error compiling rgl package
Hi,
I receive the following error while I try to install rgl package:
CC -xtarget=native64 -I/opt/R-2.8.1/lib/R/include
-I/opt/SUNWhpc/HPC8.1/sun/include -DHAVE_PNG_H -I/usr/include/libpng12
-DHAVE_FREETYPE -Iext/ftgl -I/usr/sfw/include/freetype2
-I/usr/sfw/include -Iext -I/opt/SUNWhpc/HPC8.1/sun/include
-I/usr/sfw/include -I/opt/csw/include -KPIC -O -c Background.cpp -o
Background.o
2010 Apr 21
1
Best subset of models for glm.nb()
Dear List,
I am looking for a function that will find the best subset of negative binomial models. I have a large data set with 15 variables that I am interested in. I want an easy way to run all possible models and find a subset of the "best" models that I can then look at in more detail. I have found two functions that seem to provide what I am looking for, but am not sure which
2012 Feb 20
0
[PATCH 1/2] build: check if libm is needed in configure
Remove the hardcoded use of libm and instead rely on configure to
check for it. It is needed at least for qemu-ga and qemu-system.
Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu>
---
Makefile.target | 4 ----
configure | 14 ++++++++++++++
2 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index a111521..1bfd419 100644
---
2007 Aug 28
1
The l1ce function in lasso2: The bound and absolute.t parameters.
Dear all,
I am quite puzzled about the bound and absolute.t arguments to the l1ce function in the lasso2 package. (The l1ce function estimates the regression parameter b in a regression model y=Xb+e subject to the constraint that |b|<t for some value t).
The doc says:
bound numeric, either a single number or a vector: the constraint(s) that is/are put onto the L1 norm of the parameters.
2018 Feb 05
0
Cross-compiling libc++ to linux-armv7hf gives undefined symbols in cmath / math.h
Hello,
I am trying to cross-compile libc++ from my x86_64 linux system to armv7hf.
We have our own gcc compiler that we build with crosstools-ng (based on gcc
6.3.0) and I set my environment like this:
CC=armv7a-plex-linux-gnueabihf-gcc
CXX=armv7a-plex-linux-gnueabihf-g++
CFLAGS=-fPIC -DPIC -mfloat-abi=hard -march=armv7-a -Os -mfpu=vfpv3-d16
--sysroot=<path>
CXXFLAGS=-fPIC -DPIC
2008 Jul 21
0
[LLVMdev] Extending vector operations
On Jul 21, 2008, at 1:21 PM, Stefanus Du Toit wrote:
> Hi,
>
> We would like to extend the vector operations in llvm a bit. We're
> hoping to get some feedback on the right way to go, or some starting
> points. I had previously had some discussion on this list about a
> subset of the changes we have in mind.
>
> All of these changes are intended to make
2018 Feb 06
0
libc++ cross-compile linux-armv7 and math function problems
At first glance, it looks like long double functions (such as fabsl and friends) are missing from your sysroot's <math.h>. Does your target support long double at all?
-Dimitry
> On 6 Feb 2018, at 09:51, Tobias Hieta via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Hello,
>
> I am trying to cross-compile libc++ from my x86_64 linux system to armv7hf. We have
2018 Feb 06
1
libc++ cross-compile linux-armv7 and math function problems
Hello Dimitry and thanks for your answer.
I am pretty sure it does indeed support long double. It's configured with
vfpv3-d16 - but I noticed that c++config.h in gcc has _GLIBCXX__HAS_FABSL
and friends are undefined. I think I need to look deeper at the
configuration of our toolchain.
long double support is required in libc++ then I gather?
-- Tobias
On Tue, Feb 6, 2018 at 11:47 AM,
2018 Feb 06
2
libc++ cross-compile linux-armv7 and math function problems
Hello,
I am trying to cross-compile libc++ from my x86_64 linux system to armv7hf.
We have our own gcc compiler that we build with crosstools-ng (based on gcc
6.3.0) and I set my environment like this:
CC=armv7a-plex-linux-gnueabihf-gcc
CXX=armv7a-plex-linux-gnueabihf-g++
CFLAGS=-fPIC -DPIC -mfloat-abi=hard -march=armv7-a -Os -mfpu=vfpv3-d16
--sysroot=<path>
CXXFLAGS=-fPIC -DPIC
2005 Dec 20
3
CVS compilation and EVC++ 4.0
Hi all,
I'd like you to know i'm not able to build Speex library anymore from CVS
without modfing the code in mdf.c.
This is due to the fact that EVC++ compiler doesn't like memory allocations
in this form:
spx_word16_t w[N];
where N is not a constant.
I know this is not an error for gcc compiler and ANSI standard but it is in
VS2005 and EVC++ 4.0
If someone knows how to compile