similar to: why use profile likelihood for Box Cox transformation?

Displaying 20 results from an estimated 2000 matches similar to: "why use profile likelihood for Box Cox transformation?"

2003 Oct 21
4
select text using only the keyboard
I am using R 1.6.1 on Windows. I usually write/edit code in the R console, and when I get it working right, copy and paste it to a text file for later use. In Splus for Windows, this could be done easily using just the keyboard, with up-arrow, shift-end or shift-home, ctrl-c, etc. But in R, the shift key doesn't select text. The only way I can select text in R is with the mouse. Does
2006 Feb 09
3
about Cox-Box transformation
Dear R-users, I am using R version 1.8.0-1 under Suse 8.2. I need to use the boxcox command because I want to apply a Cox-Box transformation to a vector of rainfall values. Within the libraries, the MASS library is present, but I don't know whether this means that is automatically installed or not. The command doesn't work. What do I have to do in order to make it working? Is just a
2005 Jan 25
1
Box-Cox / data transformation question
Dear R users, Is it reasonable to transform data (measurements of plant height) to the power of 1/4? I?ve used boxcox(response~A*B) and lambda was close to 0.25. Regards, Christoph
2003 Nov 20
3
nls, nlrq, and box-cox transformation
Dear r-help members I posted this message already yesterday, but don't know whether it reached you since I joined the group only yesterday. I would like to estimate the boxcox transformed model (y^t - 1)/t ~ b0 + b1 * x. Unfortunately, R returns with an error message when I try to perform this with the call nls( I((y^t - 1)/t) ~ I(b0 + b1*x), start = c(t=1,b0=0,b1=0), data = mydataframe)
2009 May 19
4
nlrwr package. Error when fitting the optimal Box-Cox transformation with two variables
Dear all: I'm trying to fit the optimal Box-Cox transformation related to nls (see the code below) for the demand of money data in Green (3th Edition) but in the last step R gives the next error message. Error en `[.data.frame`(eval(object$data), , as.character(formula(object)[[2]])[2]) : undefined columns selected. ?Any idea to solve the problem? Thanks in advance,
2005 Jul 13
1
Boxcox transformation / homogeneity of variances
Dear r-helpers, Prior to analysis of variance, I ran the Boxcox function (MASS library) to find the best power transformation of my data. However, reading the Boxcox help file, I cannot figure out if this function (through its associated log-likelihood function) corrects for * normality only * or if it also induces * homogeneity of variances *. I found in Biometry (Sokal and Rohlf, p. 419)
2006 Jul 29
1
boxcox transformation
I've got a vector of data (hours to drive from a to b) y. After a qqplot I know, that they don't fit the normal probability. I would like to transform these data with the boxcox transformation (MASS), that they fit the model. When I try ybx<-boxcox(y~1,0) qqnorm(ybx) the plot is different from library (TeachingDemos) ybct<-bct(y,0) // qqnorm(ybct) How can I transform
2007 Jun 18
3
Inverse BoxCox transformation
Hi, I can't seem to find a function in R that will reverse a BoxCox transformation. Can somebody help me locate one please? Thanks in advance. Best wishes, Des [[alternative HTML version deleted]]
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
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,
2018 Aug 06
0
[R] MASS::boxcox "object not found"
Hmm, this looks like a buglet/infelicity in update.lm rather than MASS::boxcox per se. Moving to R-devel. I think the story is that update.lm eventually does eval(call, parent.frame()) where the call is extracted from the lm object, but call$formula is unevaluated, and does not contain environment information like formula(obj) would do. Then when the call is evaluated and parent.frame()
2006 Aug 23
2
Rename folder bug dovecot-1.0RC6 ?
Dear All can someone confirm this bug please ? I am using Thunderbird 1.07, TB 1.5.0.4, Horde/IMP webmail as test clients, all running on FC4. Server is 1.0RC6 on CentOS 4 with maildir-sep set to ';' To reproduce: In your favourite mail client: 1. Create a top-level mail folder "atest" 2. Rename "atest" to "atest-extra" (basically
2007 Oct 16
1
simulation
I am trying to write a function that will simulate observed counts X and Y as below, I want the function to be able give many replicates, can somebody advise? thanks Oarabile #alpha,n sdx and sdy are constant, and N is a vector of length n. unstructured<-function(n,N,alpha,sdx,sdy){ Vx<-rnorm(n,mean=0,sd=sdx) Vy<-rnorm(n,mean=0,sd=sdy) thetax<-exp(alpha+Vx) thetay<-exp(alpha+Vy)
1999 Jul 31
1
NT service problem
Hi ! I hope this is the correct place to ask questions ... I'm having the following problem : A "service" on an NT 4 server cannot connect to a samba share on my linux machine. The specific versions are given below. From the NT machine I have no problem as the administrator to login to samba server and view the target share. The supplier's service however cannot
2008 Oct 22
2
dovecot 1.0 to 1.1 upgrade and filesystem separators
Dear All I have a test system where I am trying out 1.1.4 On the old 1.0rc6 (!) system I had edited: src/lib-storage/index/maildir/mail-storage.h to change: #define MAILDIR_FS_SEP ';' #define MAILDIR_FS_SEP_S ";" so I can get some mail folder hierarchy and '.'s in folder names - this all worked perfectly. Under 1.1.4 the MAILDIR_FS_SEP lines are no longer present.
2010 Feb 17
0
boxcox shift parameter estimation
Hello, I am implementing the BoxCox transformation for multiple regression using the function boxcox() from library MASS (this seems to be the best one). To avoid negative values in the variable to be transformed however, one must specify a shift parameter. However different choices for the value of the shift parameter result in different estimates for the exponent (lambda) and in different
1997 Dec 19
1
R-beta: a bug in the lm function ?
I ran a function called BoxCox, taken from the book by Venables and Ripley, for checking the need for power transformation. This function works fine using the version 0.50 of R, but gives an error message with version 0.60. The lm function in version 0.60 is different from that in version 0.50. Is there a bug in the new lm function? Kung-Sik Chan >
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
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