search for: lmout

Displaying 3 results from an estimated 3 matches for "lmout".

Did you mean: amout
2009 Jul 13
2
Problems in plotting with abline
Dear R-users, I am using R(a package igraph) to calculate certain topological features of networks. When I try to draw a plot between these features I get an error. Following is the code I am using : *> plot(met_eco_deg,met_eco_bet) > lmout<-lm(met_eco_bet ~ met_eco_deg) > abline(lmout) Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) : plot.new has not been called yet* *met_eco_deg* and *met_eco_bet* are the two objects generated from igraph package. I don't get any error when I just use the plot functio...
2006 Mar 30
2
'loop FOR' for make plots
Hello How to create plots dynamically with results of several analysis ? I got many outputs from lm fuction like: mp1.lm mp2.lm mp3.lm mp4.lm mp5.lm ... I'd like to make experimental versus predicted response plots of all analysis in a 'for loop': for( i in 1:10){ x11() plot( mp*i*$experimental_response, fitted( mp*i* ) ); abline(0,1) } I tried: paste( 'mp', i,
2008 May 30
2
scoping problem when calling lm(precomputed formula, weights) from function (PR#11540)
I've run into a scoping problem in R. I'm calling a function that * creates a formula * calculates a weight vector * calls lm with that formula and weights This fails. Here's a simplified reproduce example: # f works, g doesn't, h is a workaround rm(w) data <- data.frame(y=runif(20), x=runif(20), z=runif(20)) f <- function(k){ w <- data$z^k coef(lm(y~x, data