search for: dnew

Displaying 12 results from an estimated 12 matches for "dnew".

Did you mean: dne
2013 Feb 01
29
cumulative sum by group and under some criteria
Thank you very much for your reply. Your code work well with this example. I modified a little to fit my real data, I got an error massage. Error in split.default(x = seq_len(nrow(x)), f = f, drop = drop, ...) : Group length is 0 but data length > 0 On Thu, Jan 31, 2013 at 12:21 PM, arun kirshna [via R] < ml-node+s789695n4657196h87@n4.nabble.com> wrote: > Hi, > Try this: >
2008 Nov 26
1
multiple imputation with fit.mult.impute in Hmisc - how to replace NA with imputed value?
...008 0.454 1.676 1.462 0.071 0.002 1.029 285 286 287 288 289 418 419 420 421 422 700 0.055 0.384 0.947 0.002 0.002 0.008 0.759 0.066 0.009 0.002 0.002 ------------------------------------------------------------------ So far, this is working great. Now, make a copy of d: > dnew <- d And then fill in the NA values in P01 with the values in r For example: > for (i in 1:length(r)){ dnew$P01[r[i,1]] <- r[i,2] } This doesn't work, because each 'piece' of r is two numbers: > r[1] 2 0.002 > r[1,1] Error in r[1, 1] : incorrect number of...
2010 May 25
1
Assigning NA to a rows of a dataframe/datamatrix
...1,NA,NA), 'y2'=c(1,2,1,1,1,2,1), 'y3'=c(1,NA,1,NA,NA,2,1), 'y4'=c(NA,2,NA,1,1,2,NA), 'a'=c(1,1,1,1,1,1,2) ) where the last variable counts the number of missing values in a row. Now, i want to set rows where a>1 to NA and arrive at something like the following;   dnew<-data.frame(  'y1'=c(1,2,1,2,1,NA,NA), 'y2'=c(1,2,1,1,1,2,NA), 'y3'=c(1,NA,1,NA,NA,2,NA), 'y4'=c(NA,2,NA,1,1,2,NA), 'a'=c(1,1,1,1,1,1,4) ) Please, how do I go about this. Many thanks!   John   [[alternative HTML version deleted]]
2011 Apr 27
6
INN removed from CentOS 6
I use inn to make internal company announcements and discussions available to remote offices. I note inn is removed form RHEL 6. What replaces inn? http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Technical_Notes/apc.html Will inn be available from elsewhere? Will I have to compile it? Should I modify my scripts to create and install html files for a web server? That would
2001 Apr 15
2
data manipulation in R
Dear List: I have a data manipulation problem that I was unable to solve in R. I did it in SQL, and it may be that the solution in R is to do it in SQL, but I wondered if people could imagine a vector-based solution. Imagine a list A[i] of observers who observe some set of events B[j]. Each observer i may observe one or more events, and each event j may have been observed by one or more
2018 Mar 11
0
Empirical density estimation
...t; plot based on empirical PDF, that also contains original points. > > Any idea would be helpful. Thanks, > Christofer, something like the following may get you what you want: ## get the kernel density estimate dens <- density(Dat) ## estimate the density at your original points dnew <- approx(dens$x,dens$y,xout=Dat) ## plot kernel density estimate plot(dx) ## add your original values with the estimated density points(dnew, pch=1, cex=0.5, col="red") Hope this is helpful, Dan -- Daniel Nordlund Port Townsend, WA USA > On Mon, Mar 12, 2018 at 3:49 AM, Be...
2012 Nov 28
2
Error message R2Jags
...) / sqrt(mu[i]) #estimate residuals (= observed - expected / sqrt(variance)) #Discrepancy measures (used for checking overdispersion) YNew[i] ~ dpois(mu[i]) #New data PResNew[i] <- (YNew[i] - mu[i]) / sqrt(mu[i]) D[i] <- pow(PRes[i], 2) DNew[i] <- pow(PResNew[i], 2) } # Add up discrepancy measures fit <- sum(D[1:N]) fit.new <- sum(DNew[1:N]) for (i in 1:6) { b[i] ~ dnorm(0.0, 0.01) # b[i] ~ dunif(-20, +20) } } ",fill =...
2012 Feb 05
4
nested if else statements
I have a vector of 2,1,0 I want to change to 0,1,2 respectively (the data is allele dosages) I have tried multiple nested if/else statements and looked at the ?if help and cannot work out what is wrong, other people have posted code which is identical and they state works. Any help would be greatly appreciated. > A[1:20] [1] 1 1 0 0 1 0 1 0 1 0 0 0 1 1 0 1 1 1 0 0 > B <-
2018 Mar 11
2
Empirical density estimation
But for my reporting purpose, I need to generate a bell curve like plot based on empirical PDF, that also contains original points. Any idea would be helpful. Thanks, On Mon, Mar 12, 2018 at 3:49 AM, Bert Gunter <bgunter.4567 at gmail.com> wrote: > You need to re-read ?density and perhaps think again -- or do some study -- > about how a (kernel) density estimate works. The points at
2002 May 13
0
FreeBSD Security Notice FreeBSD-SN-02:02
...Fixed: radiusd-cistron Not fixed: all others Digest Calculation buffer overflow and/or insufficient validation of attribute lengths. <URL:http://www.security.nnov.ru/advisories> +------------------------------------------------------------------------+ Port name: dnews Affected: versions < dnews-5.5h2 Status: Fixed ``Security fault.'' <URL:http://netwinsite.com/cgi/dnewsweb.cgi?cmd=article&group=netwin.dnews&item=7223&utag=> +------------------------------------------------------------------------+ Port name: ether...
2009 Mar 09
5
Help
...288 289 418 419 420 421 422 700 > > 0.055 0.384 0.947 0.002 0.002 0.008 0.759 0.066 0.009 0.002 0.002 > > > > ------------------------------------------------------------------ > > So far, this is working great. > > Now, make a copy of d: > > > dnew <- d > > > > And then fill in the NA values in P01 with the values in r > > > > For example: > > > for (i in 1:length(r)){ > > dnew$P01[r[i,1]] <- r[i,2] > > } > > This doesn't work, because each 'piece' of r is two numbers...
2009 Aug 10
12
v2.0 configuration parsing
I'm trying to figure out how exactly v2.0 should be parsing configuration files. The most annoying part is if it should always just "use whatever comes first in config" or try some kind of a "use most specific rule". The "most specific" kind of makes more sense initially, but then you start wondering how to handle e.g.: 1) User logs in to imap from 192.168.0.1.