similar to: how to handle missing values

Displaying 20 results from an estimated 7000 matches similar to: "how to handle missing values"

2007 Aug 27
2
validate (package Design): error message "subscript out of bounds"
Dear R users I use Windows XP, R2.5.1 (I have read the posting guide, I have contacted the package maintainer first, it is not homework). In a research project on renal cell carcinoma we want to compute Harrell's c index, with optimism correction, for a multivariate Cox regression and also for some univariate Cox models. For some of these univariate models I have encountered an error
2004 Mar 18
2
Install R on Mac OS.X
I am running R 1.8.1 flawlessly on my mac with OS.X.3 My friend is running 1.6.1 but it is impossible for him to make 1.8.1 work. I do not understand why it should work better in my computer. I do, however, have X.11 installed, he doesnt, could that be an issue and if it is, does it suffice to install X.11 after RAqua has been installed? Tor A Strand, MD PhD Centre for International Health
2007 Mar 23
3
distribution graph
I am looking for a way to produce a "distribution graph" as in the example: (http://cecsweb.dartmouth.edu/release1.1/datatools/dgraph.php?year=2003&geotype=STD_HRR&event=A01_DIS&eventtype=UTIL Anybody who can help? Christian von Plessen Department of Pulmonary Medicine Haukeland university hospital Bergen Norway
2006 Jul 20
5
How can I make has_many prevent a delete that would lead to orphans?
e.g. class Asset < ActiveRecord::Base validates_presence_of :asset_number, :make, :model, :location, :name, :serial_number validates_numericality_of :asset_number validates_uniqueness_of :asset_number belongs_to :user belongs_to :location belongs_to :asset_type, :foreign_key => ''type_id'' end class Location < ActiveRecord::Base validates_presence_of :name
2012 Oct 18
3
svyplot and svysmooth with hexbin
Hi all- So sorry to bother you all with something pretty basic. I am trying to add the lines method output from svysmooth to a svyplot with style="grayhex". However, the line either appears in the wrong place or if I am running in R Studio it causes the system to crash. I know this is something to do with Lattice graphics, but for the life of me I can not figure out how. Dr. Lumley
2006 Jul 25
4
Sorting by two fields
I have a list of TimeSheet objects from an ealier AR query, which I can sort by the full name of the user like so: @time_sheet_entries.sort! { |a,b| a.user.full_name <=> b.user.full_name } I can sort by the started time like so: @time_sheet_entries.sort! { |a,b| a.start_time <=> b.start_time } My question is how do I do a sort so that the list is sorted primarily by user.full_name
2010 Jun 03
3
[LLVMdev] Generating Floating point constants
Le 3 juin 2010 à 16:00, Martin Guy a écrit : > [off list] > >> 0.8f get converted in 0x3FE99999A0000000 by LLVM > > single precision > >> http://babbage.cs.qc.edu/IEEE-754/Decimal.html gives: >> >> 0x3FE999999999999A instead and this value cannot be read back by "llc"... > > double precision > > M Well For float 0.8 :
2009 Nov 18
2
Composing Data from THREE models with Aggregation
Hello! I''m looking for assistance EXTENDING an example from the Agile Web Development With Rails book: Composing Data with Aggregation (page 324). I''m trying to map three columns to a single Ruby object. However, unlike the example in the Agile Web Development book, the three columns I want to map into one object come from THREE DIFFERENT models. I want to map the following
2005 Jan 29
4
format question
how can I get a float to always print two decimal places? Thanks, Jamie
2012 Jul 20
1
conditional subset and reorder dataframe rows
Hi List I have a dataframe (~1,200,000 rows deep) and I'd like to conditionally reorder groups of rows in this dataframe. I would like to reorder any rows where the Chr.Strand column contains a '-' but reorder within subsets delineated by the Probe.Set.Name column. # toy example #### library(plyr) negStrandGene <- data.frame(Probe.Set.Name =
2012 Feb 13
2
finding and describing missing data runs in a time series
Hi - I am trying to find and describe missing data in a time series. For instance, in the library openair, there is a data frame called "mydata": library(openair) head(mydata) date ws wd nox no2 o3 pm10 so2 co pm25 1 1998-01-01 00:00:00 0.60 280 285 39 1 29 4.7225 3.3725 NA 2 1998-01-01 01:00:00 2.16 230 NA NA NA 37 NA NA NA 3 1998-01-01 02:00:00
2012 Nov 29
1
[mgcv][gam] Manually defining my own knots?
Dear List, I'm using GAMs in a multiple imputation project, and I want to be able to combine the parameter estimates and covariance matrices from each completed dataset's fitted model in the end. In order to do this, I need the knots to be uniform for each model with partially-imputed data. I want to specify these knots based on the quantiles of the unique values of the non-missing
2010 Feb 24
1
build, data and vignettes
Based on some testing it seems to me that if I have a package with a dataset in /data a Sweave vignette in inst/doc (but no associated pdf file) the vignette loads the data in /data through data(dataset) and I do a R CMD build R will try to build the pdf version of the vignette, but will be unable to find the dataset in data because the package is not yet installed. However, if I do
2006 Jul 21
5
Reports in Rails
Hi, In my rails application I want to include a reporting mechanism that will allow the users of application to view statistics of various operations graphically. Does rails provide inbuilt reporting capabilities? what are different appraoches I can follow to achieve reporting in rails? On googling I found following as some of the options, 1.Gruff Graphs for Ruby 2.SVG 3. using Apache FOP.
2011 Nov 10
2
ggplot2 - regression statistics how to display on plot
Hello - So I am trying to use ggplot2 to show a linear regression between two variables, but I want to also show the fit of the line on the graph as well. I am using ggplot2 for other graphics in what I am working on, so even though this would be a fairly easy thing to do in Excel, I would prefer to do it in R to keep my look and feel, and I think ggplot2 is just cooler. Here is a sample
2008 Jul 08
2
list genes w/n a genomic fragment
Hi, is there any package/function in Bioconductor that can do this: if given the chromosome positions of a fragment, find out all genes within, and with the information about which strand is the sense strand. And vice versa. Thanks a lot. ----- Appreciate your time & attention! -- View this message in context: http://www.nabble.com/list-genes-w-n-a-genomic-fragment-tp18331452p18331452.html
2004 Jun 13
0
Abbreviated citation of R?
Dear R users, This is more a suggestion than a question. Short version: A possibility for a short, 'inline', way to cite R in an article, comparable to e. g. 'SPSS Inc., Chicago, USA' or 'Stata Corporation, College Station, Texas, USA', without a corresponding item in the list of references, might be an advantage in some cases. Long version: Increasingly, it seems,
2003 Jun 08
6
Basic question on applying a function to each row of a dataframe
Hi, I have a function foo(x,y) and a dataframe, DF, comprised of two vectors, x & w, as follows : x w 1 1 1 2 2 1 3 3 1 4 4 1 etc I would like to apply the function foo to each 'pair' within DF e.g foo(1,1), foo(2,1), foo(3,1) etc I have tried >apply(DF,foo) >apply(DF[,],foo) >apply(DF[DF$x,DF$w],foo) However, none of the above worked. Can anyone help ?
2005 Aug 16
2
recategorizing a vector into discrete states
Hi All, I'm trying to take a numerical vector and produce a new vector of the same length where each element in the first is placed into a category given by a 'breaks-like' vector. The values in the result should equal the lower bounds of each category as defined in the breaks vector. I suspect that a vectorized solution is pretty simple, but I can't seem to figure it
2006 Jan 23
3
HABTM: Records with no parents
I have a habtm relationship between two models. What I want to do is find items that aren''t related. So like if you had authors <-> posts, how would you find authors who don''t have any posts? Or posts that don''t have an author ? Thanks, Alex Strand [astrand@razorcom.com] Razorcom www.razorcom.com