search for: extranam

Displaying 20 results from an estimated 91 matches for "extranam".

Did you mean: extranal
2006 Feb 12
1
lme, nlsList, nlsList.selfStart
...rying to fit the model with nlsList, I get: mymod3<-nlsList(Conc~Dose * exp(lKe+lKa-lCl) * (exp(-exp(lKe)*Tps)-exp(-exp(lKa)*Tps)) /(exp(lKa)-exp(lKe)), data=mydata, start= c(lKe=-2.77, lKa=-1.41, lCl=-1.13) ) Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : variable lengths differ Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : variable lengths differ Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : variable lengths differ Or specifying the groupin...
2007 Mar 07
3
possible bug in model.frame.default
...(after a rm(list=ls())): > dat=data.frame(y=rnorm(10),x1=runif(10),x2=runif(10)) > weights=1:10/(sum(1:10)) > form <- as.formula("y~x1+x2") # here is the error > lm(form,data=dat,weights=weights) Erreur dans model.frame(formula, rownames, variables, varnames, extras, extranames, : type (closure) incorrect pour la variable '(weights)' (sorry, error message is in French) As I said, these commands works using R.2.4.0 (same machine, same OS). Moreover, the following commands work: > temp=weights > lm(form,data=dat,weights=temp) This currently seems t...
2004 Feb 18
2
using names() as a variable in a formula
...ich doesn't. I want to be able to reference the column of the dataC table so I can run the variogram iteratively with a loop. > v<-variogram(A1~1,loc=~x+y, dataC) > v<-variogram(names(dataC[3])~1,loc=~x+y, dataC) Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : invalid variable type Where dataC looks like: x y A1 A2 A3 1 514030 4793587 0.0 7.9 0.1 2 517995 4792516 5.8 5.1 0.0 3 514232 4792210 0.0 6.5 0.0 I though initially that it might need some escape character if quotes are added, and tried the following, b...
2005 Feb 24
4
r: functions
...fit) } say i use arbitray number for xdata and ydata such that D = x1 x2 y 1 1 10 2 6 6 3 10 7 x<-D[,1:2] and y<-D[,3] if one uses these inputs and rund the program we get the following: >simple(xdata=x,ydata=y) Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : invalid variable type why does this happen! i can get results if i change the program as follows: simple2<-function(xdata,ydata) { ofit<-lm(as.matrix(ydata)~as.matrix(xdata)) list(ofit) } but then the variable names, if they exist, are not preserved. how can i preserve th...
2006 Oct 24
1
r error
...this function not work in the versions that I have downloaded. I have downloaded: R 2.4.0 and quantreg 4.0.1 and SparseM. Am I missing something? > xx <- x -mean(x) > fit1 <- summary(rq(y ~ xx, tau = 2:98/100)) Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : variable lengths differ (found for 'xx') > fit1 <- summary(rq(y ~ xx, tau = 2:98/100)) Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : variable lengths differ (found for 'xx') > traceback() 7: model.frame.def...
2004 Feb 15
1
manova() with a data frame
...work: > data(iris) > fit <- manova(~ Species, data=iris) Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) : incompatible dimensions > fit <- manova(iris[,1:4] ~ Species, data=iris) Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : invalid variable type > > YY <- iris[,1:4] > species <- iris[,5] > fit <- manova(YY ~ species) Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : invalid variable type It does work if I coerce YY to a matrix: > f...
2003 Feb 10
2
problems using lqs()
...s confusing me! Another small problem appears if I re-fit the first model using the formula and asking to return the x-matrix and the response: lqs(y ~ x1 + x2, method="lms", nsamp="exact", x.ret=T, y.ret=T) Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : variable lengths differ Does anyone know what's going on? Regards, with thanks in advance, Luca Scrucca +-----------------------------------------------------------------------+ | Dr. Luca Scrucca | | Dipartimento di Scienze Stati...
2003 Apr 21
3
To create a Panel and run a Pooled OLS
...bles, e.g., ID,y,x1,x2: Panel <- merge(crossA,crossB,by="ID") I have, thereafter, tried to run the following pooled OLS: OLS <- lm(Panel$y~Panel$x1+Panel$x2) and have received the following error message "Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : invalid variable type" I would be very grateful for help. At the moment, I believe that I have tried everything. Thanks in advance, Sophie
2003 Aug 15
2
Error in model.frame
...name("model.frame") mf$method<-mf$control<-NULL mfn<-mf mfn$na.action<-"I" mfn$subset<-NULL nrows<-NROW(eval(mfn,parent.frame())) etc. At the eval on the last line, I get Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : variable lengths differ This is puzzling for two reasons. First, I don't understand where the arguments given in the error message are coming from. They are not in my function definition or call, and they do not seem to be the arguments to model.frame either. Second, I don't kno...
2007 Feb 13
1
Missing variable in new dataframe for prediction
...f the 3rd variable required for my loop for (i in 4:5){ b<-gam(y~s(x0)+ s(x1)+ ns(Mydata[,i], 3), data=Mydata) newd <- data.frame(x0=(0:399)/30,x1=(0:399)/30,x2=(0:399)/30,x3=(0:399)/30) pred <- predict.gam(b,newd) } Erreur dans model.frame(formula, rownames, variables, varnames, extras, extranames, : type (list) incorrect pour la variable 'Mydata' De plus : Warning message: not all required variables have been supplied in newdata! in: predict.gam(b, newd) #Defining the name for the variable as in the gam function doesn't solve the problem newd <- data.frame(x...
2003 Dec 02
0
xtabs or model.frame (PR#5461)
...4, 16, 26, 10, 28) > H <- rep(c("yes", " no"), each=4) > S <- rep(rep(c("yes", " no"), each=2), 2) > A <- rep(c("yes", " no"), 4) > xtabs(Freq~H+S+A) Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : invalid variable type > Data3 <- data.frame(H, S, A, Freq) > xtabs(Freq~H+S+A, Data3) , , A = no S H no yes no 28 26 yes 4 2 , , A = yes S H no yes no 10 16 yes 5 9 ###################### The bug is generated in model.frame.default...
2003 Jul 04
1
specifying dataframe column names in loops
...taframe and 's' is the iterator) to specify each column works for things like 'max' and 'min'. However for functions like 'density' or locfit, error messages are generated: lf<-locfit(~age[s]) Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : invalid variable type Similary if I try to use the 'names' function. lf<-locfit(~names(age[s])) Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : invalid variable type So the question is how do I get functions like density or l...
2005 Mar 10
2
Question regarding mosaicplot
I tried this : > mosaicplot(stoc ~ q9r + segca,data=tmp2,color=T) : works fine. And now, this : > mosaicplot(stoc ~ q9r + segca, data=tmp2, color=T, main="Big title") Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : invalid variable type I'm probably stupid and missed something simple in the manual (and wouldn't like to be flamed if insinuating that, may be... a bug ? Oh no !). It can be done with : > mosaicplot(table(tmp2$stoc,tmp2$q9r,tmp2$segca),color=T,main="Big title"...
2003 Sep 03
2
problem with HoltWinters
...s for the next values. I've already built an object of class ts to serve as input to HoltWinters. But then I get an error; I've used HoltWinters a lot of times and this never hapened > data.HW<-HoltWinters(data.ts) Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : variable lengths differ This is the data > data.ts Jan Feb Mar Apr May Jun Jul Aug Sep 2001 1117001 1017287 1195142 1049729 1409147 1267002 1579907 1563127 1195597 2002 1228333 1062520 1080117 1171998 1383951 1141008 1604061 1446024 1276...
2004 Nov 10
2
cubic spline/smoother with nlme
...effects within nlme. So far the only smoother I have been able to get to run successfully in nlme is smooth(). I tried smooth.spline: fixed=list(lKa~1,lCL~smooth.spline(BSA, df=3)) the error I got was the following. Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : invalid variable type Can anyone suggest a cubic spline that would work within this context? Thank you for any help you can send, Suzette ================================= Suzette Blanchard, Ph.D. UCSD-PPRU
2006 Jun 25
2
Error in model.frame: invalid variable type
I'm getting the following error when trying to execute a glm() procedure: Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : invalid variable type for 'response' The commands I'm using to import the *.csv files, construct the data frame, and run the glm procedure are below: response <- read.csv("Response.csv", header = TRUE, sep = ",") seed <- read.csv("S...
2000 Jul 28
2
Using the nls package
...---------------------------------------------------------------------- > q$y <- eval( expression( 4 + x*(0+1i)), q ) > w <- nls( y ~ P1 + P2 * x, q, start=list( P1=1, P2=1 ), trace=T, control=nls.control( maxiter=10 )) Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : invalid variable type > traceback() [1] "model.frame.default(formula = ~y + x, data = q)" [2] "model.frame(formula = ~y + x, data = q)" [3] "eval(expr, envir, enclos)"...
2002 Jun 20
1
Possible bug with glm.nb and starting values (PR#1695)
...;Any other arguments for the glm() function except family" One such argument is start "starting values for the parameters in the linear predictor." However, when called with starting values glm.nb returns: Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : variable lengths differ So it looks like this is either a bug, the documentation is inaccurate, or I'm missing something (or some combination of the above). An example: ________________________________________________________________ library(MASS) y<-c(7,5,4,7,5,2,11,5,5,4,2,...
2004 Oct 11
3
logistic regression
...ins more than the first. Now to create a graph I write: > plot(sun,incidence) > min(sun) [1] 0 > max(sun) [1] 90 > xsun<-seq(0,90,1) >lines(xsun,predict(model2,type="response",data.frame(sun=xsun))) Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : variable lengths differ > So this is the message I receive everytime I try to draw the fitted values of my model. I know for sure that exactly the same command works in S-Plus (with the same data). How is ist possible to do this in R? Thank you in advance, Heike -- +++ GMX DS...
2007 Jun 04
3
Extracting lists in the dataframe $ format
...le[a]~tble[b]) + abline(lmm) + anova(lmm) + } > df[1] out 1 3 2 6 3 9 4 12 > df out pred1 pred2 1 3 1 2 2 6 2 4 3 9 3 6 4 12 4 8 > regression(df,1,3) Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : invalid type (list) for variable 'tble[a]' > [[alternative HTML version deleted]]