search for: glg

Displaying 2 results from an estimated 2 matches for "glg".

Did you mean: alg
2009 Jan 04
1
Lattice xyplot help please.
...u can help me about my xyplot question. I would like to add text (p-value) in a 4 panels xyplot. I thought panel = function{} should work but I am not sure where I did it wrong. The error message from the following code is "Argument subscripts is missing with no default values" xyplot(GLG ~ PD | factor(TRT) , groups = GLG_ind,strip = strip.custom(style =4),ref = T, as.table=TRUE,data = splitPD, subscripts = TRUE,cex = 2, panel = function(x, y, pvalue,subscripts,...){ panel.xyplot(x,y,...); panel.abline(h = 51.95); grid.text(paste("p-value =", pvalue[subscripts]...
2003 Feb 13
2
Function update problem
Dear all, I am trying an automatic model selection for a multiple linear regression using function lm and update. But, I meet a problem when using update. The problem is the function update can not update when variables as a vector(for example,x is a matrix with 100 regression variables). The code is as below: > model<-lm(y~x1,singular.ok=T,na.action=na.omit) > for(i in 1:100){