search for: pol2

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

Did you mean: col2
2010 Jun 07
1
fit data with y = x^-1
...fit this with a linear model fit1 = lm(y ~ I(x)) Getting plot out of this model I applied library(polynom) pol1 = polynomial(fit1$coefficients) f1 = as.function(pol1) plot(x,y) lines(x, f1(x), col = 2) Clearly, this model appears insufficient. Therefore I intended to aplly fit2 = lm(y ~ I(1/x)) pol2 = polynomial(fit2$coefficients) f2 = as.function(pol2) lines(x, f2(x), col = 3) as this would be much more pleasant. However, the second model does not work at all. Does anyone know about how to correctly fit an x^-1-polynomial to my data cloud? Many thanks in advance, behelfsadresse [[alt...
2010 Oct 15
1
Problem using BRugs
...all other y[j]s. Could you help me figure out the problem and hopefully get the code to work? Many thanks for your help. --- Maomao ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ data<-list("y","cap2","pol2","cap1","pol1","g","wo","wd","ww","mu","tau") inits<-function() {list(beta=beta0, rho_o=rho_o_0, rho_d=rho_d_0, rho_w=rho_w_0)} parameters<-c("beta", "rho_o", "rho_d", "rh...
2012 Jul 02
1
apply with multiple conditions
...o each row so that I can then split the dataframe according to those bins. chrom chromStart chromEnd name cumsum bin chr1 10089 10309 ZBTB33 10089 1 chr1 10132 10536 TAF7_(SQ-8) 20221 1 chr1 10133 10362 Pol2-4H8 30354 1 chr1 10148 10418 MafF_(M8194) 40502 1 chr1 10382 10578 ZBTB33 50884 1 chr1 16132 16352 CTCF 67016 1 -- View this message in context: http://r.789695.n4.nabble.com/apply-with-multiple-condi...