Displaying 20 results from an estimated 400 matches similar to: "Haw I get best lambda in box-cox"
2005 May 11
1
Erro loading library from apache
Hello,
I'm having a error message when I try to load the som library from a
cgi. When a run my script via web the following error appears in the
apache log:
Error: package som was built for i686-pc-linux-gnu, referer: https:// ....
I call the library function setting the path to the library directory:
>library(som, lib.loc="/usr/local/lib/R/library/")
The script runs fine
2004 May 14
1
Problem with logtrans, from library MASS
Greetings all!
This problem occurs using R 1.8.1 on Windows XP. I downloaded the
binaries for R and all packages, including the VR bundle, in December 2003.
The data consists of NZ$ prices and attributes for 643 cars.
> summary(price)
Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
14290 35800 48990 65400 79000 285000 2
> library(MASS)
> boxcox(price
2004 Jul 27
1
Integration with "adapt"
Hi all,
I need to calculate a multidimensional integration on R. I am using the
command "adapt" (from library adapt), although sometimes I get the
following error message:
Ifail=2, lenwrk was too small. -- fix adapt() !
Check the returned relerr! in: adapt(3, linf, lsup, functn = Integrando1)
I guess it happens because the domain of integration is too small,
although I tried a
2004 Aug 31
1
Problem (bug?) with vector indices
Hi all,
I found a problem on R that looks like a bug to me. I am working with R
for windows verson 1.9.0, but the problem also happens on the linux
version 1.9.0. I hope that the problem is on my reasoning, and I would be
grateful if someone could explain me why this happens.
There goes the example:
> x<-seq(-2,2,0.001)
> y<-rep(0,length(x))
> for (i in x){y[1000*i+2001]<-i^2}
2007 May 07
1
Simple question about function with glm
Dear all,
I coded a function called u.glm
u.glm <- function (x,ahi,age,bmiz,gender)
{
library(nortest)
lil.rslt <- lillie.test(x)
if (lil.rslt$p.value >0.05)
{
cat("Logtrans=0, lillie=",lil.rslt$p.value,"\n")
xmodel<-glm(x~ahi+age+bmiz+as.factor(gender))
summary(xmodel)
confint(xmodel)
}
else
{
cat("Logtrans=1,
2001 Feb 26
1
trying to find the function banking()
Colleagues
----------------------------------
System info:
R version rw1020 on NT
ESS using emacs ver. 20.4
----------------------------------
Can anyone please tell me where to find the function "banking()"
containing Cleveland's solution to optimising graph aspect ratio? It is
mentioned in Venables and Riply 1994, pg. 112, Ex. 3.7, q. 3.5.
I have not found it (or perhaps
2004 Jul 01
2
Bug in SOM package (PR#7038)
Bug in "SOM" package in R.
This simple code withot for loop runs:-------simple.r--------
library(som)
A <- as.matrix(read.table("C:/code/h.txt", sep="\t", header=TRUE,
row.names=1))
print(som(A,1,2)$visual)
print(som(A,1,3)$visual)
----------------------------------------
The same code if inserted in for loop generates "Assertion failure" in
2002 Oct 21
4
mixed effect-models
Hello,
?
I believe that in R, it is not possible to analyze mixed effect-models
when the distribucion is not gaussian (p.e. binomial or poisson), isn't?
?
Somebody can suggest me alternative?
?
thanks
?
xavi
?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info",
2006 May 09
1
Rmpi instlation problem (PR#8846)
Ive tryed this:
R CMD INSTALL Rmpi_0.5-2.tar.gz
But occurred this error:
gcc -shared -L/usr/local/lib64 -o Rmpi.so conversion.o internal.o RegQuery.o
Rmpi.o -lmpi -llam -lutil -lpthread -L/usr/local/lib64/R/lib -lR
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin
/ld: /usr/local/lib/libmpi.a(infoset.o): relocation R_X86_64_32 can not be
used when making a shared
2006 Feb 27
2
about"Riply's K function"and "envelope"
hi!
I did Riply's K function and envelope in the package "SPATSTAT". When the
species number is less, it can work well and it is quickly. But when the
species number is more(example:2000), it told me"memory limit". So I change
"memory limit". But the speed is very slow. I took 13 hours to run the
programe.
Perhaps there are other methods that can do it. Or just
2010 Apr 13
0
exract Shrinkage intensity lambda and lambda.var
does anyone know how to extract Shrinkage intensity lambda and lambda.var
values after run cov.shrink(x)?
thanks,
KZ
[[alternative HTML version deleted]]
2019 Oct 30
0
[PATCH] iommu/virtio: Remove unused variable
On Fri, Oct 25, 2019 at 01:13:40PM -0300, Cristiane Naves wrote:
> Remove the variable of return. Issue found by
> coccicheck(scripts/coccinelle/misc/returnvar.cocci)
>
> Signed-off-by: Cristiane Naves <cristianenavescardoso09 at gmail.com>
> ---
> drivers/iommu/virtio-iommu.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
Applied for v5.5, thanks.
2018 Aug 05
2
MASS::boxcox "object not found"
Hi there,
I wrote a function that wraps MASS::boxcox as:
bc <- function(vec) {
lam <- boxcox(lm(vec ~ 1))
lam <- lam$x[which.max(lam$y)]
(vec^lam - 1)/lam
}
When I invoke it as:
> x <- runif(20)
> bc(x)
Error in eval(predvars, data, env) : object 'vec' not found
I have googled, and rewrote the above function as:
bc <- function(vec) {
dat <<-
2018 Aug 05
2
MASS::boxcox "object not found"
Hi there,
I wrote a function that wraps MASS::boxcox as:
bc <- function(vec) {
lam <- boxcox(lm(vec ~ 1))
lam <- lam$x[which.max(lam$y)]
(vec^lam - 1)/lam
}
When I invoke it as:
> x <- runif(20)
> bc(x)
Error in eval(predvars, data, env) : object 'vec' not found
I have googled, and rewrote the above function as:
bc <- function(vec) {
dat <<-
2023 Jul 08
1
Getting an error calling MASS::boxcox in a function
Thanks John.
?boxcox says:
*************************
Arguments
object
a formula or fitted model object. Currently only lm and aov objects are handled.
*************************
I read that as saying that
boxcox(lm(z+1 ~ 1),...)
should run without error. But it didn't. And perhaps here's why:
BoxCoxLambda <- function(z){
b <- MASS:::boxcox.lm(lm(z+1 ~ 1), lambda = seq(-5, 5,
2010 Nov 13
7
wine: could not exec the wine loader
hhbuur at linux-ezva:~> wine /media/MIPro90-DAN/setup.exe
wine: could not exec the wine loader
hhbuur at linux-ezva:~> wine /usr/bin/winemine.exe
wine: could not exec the wine loader
hi thes is my problem i do not get in contact whit my wine no mater wot i do a there som help to get whit wine loader. wot can prevent wine loader from start op. :?
2023 Jul 08
1
Getting an error calling MASS::boxcox in a function
Dear Ron and Bert,
First (and without considering why one would want to do this, e.g.,
adding a start of 1 to the data), the following works for me:
------ snip ------
> library(MASS)
> BoxCoxLambda <- function(z){
+ b <- boxcox(z + 1 ~ 1,
+ lambda = seq(-5, 5, length.out = 101),
+ plotit = FALSE)
+ b$x[which.max(b$y)]
+ }
> mrow <- 500
2023 Jul 08
1
Getting an error calling MASS::boxcox in a function
Hi Bert,
On 2023-07-08 3:42 p.m., Bert Gunter wrote:
> Caution: This email may have originated from outside the organization. Please exercise additional caution with any links and attachments.
>
>
> Thanks John.
>
> ?boxcox says:
>
> *************************
> Arguments
>
> object
>
> a formula or fitted model object. Currently only lm and aov objects
2007 Sep 23
0
glmpath: how to choose best lambda
Hi all,
I am using glampath package for L1 regularized logistic regression. I have
read the article " L1 regularization path algorithm for GLM" by park and
Hastie (2006). One thing I can't understand that how to find best lambda for
my prediction. I want to use that lambda for the prediction not the entire
set.
thanks.
--
View this message in context:
2012 Feb 10
1
Choosing glmnet lambda values via caret
Usually when using raw glmnet I let the implementation choose the
lambdas. However when training via caret::train the lambda values are
predetermined. Is there any way to have caret defer the lambda
choices to caret::train and thus choose the optimal lambda
dynamically?
--
Yang Zhang
http://yz.mit.edu/