search for: obseration

Displaying 4 results from an estimated 4 matches for "obseration".

Did you mean: observation
2011 Oct 08
2
Connecting points over missing observations in Lattice
...series of two variables in a lattice plot: xyplot(y1 + y2 ~ t, data=size, type="b") y2 has missing data for some of the observations and some points are therefore not connected. It would make theoretical sense to connect the points - is there a way of doing that? (Without filling the obserations using package 'zoo'). Thanks, Allan -- DrAllan Sikk Lecturer in Baltic Politics University College London, School of Slavonic and East European Studies 16 Taviton St, London WC1H 0BW, United Kingdom tel: +44 (0)20 7679 4872 http://www.homepages.ucl.ac.uk/~tjmsasi/ [[alternati...
2011 Jun 02
1
Help in a project
To whom it may concern, I am a new user to R and I need help in my if and for statements as I need a place marker. I would like to convert the following table: Observation | Variable 1 --------------------|------------- 1 | 10000 2 | A 3 | 631 Into : Observation| Variable 1 | Variable 1 Flag ----------------|------------------|------------------ 1 | 10000 | NA 2 | NA | A 3 | 631 | NA please
2009 Apr 30
1
unexpected behavior of rpart 3.1-43, loss matrix
...:5,class=factor(c(2,3,1,5,3),levels=1:6)) > rpart(class~attr,df,parms=list(loss=matrix(0,6,6))) Error in (get(paste("rpart", method, sep = ".")))(Y, offset, parms, wt) : Wrong length for loss matrix note that while the levels of the factor range from 1:6, for the concrete obseration data, only levels 1, 2, 3, 5 do occur. the error is caused by the code of rpart.class: fy <- as.factor(y) y <- as.integer(fy) numclass <- max(y[!is.na(y)]) ... temp2 <- parms$loss if (length(temp2) != numclass^2) stop("Wrong length for loss matrix") for the example,...
1999 Feb 02
1
Survivors and bugs ...
Two questions: I have a lot of data for which the last of each of the repeated individual obserations is censored. Apart from the suite in survival, which seems to be very complex to a new R user, is there any other simple function that exists in CRAN library (I have most of these but haven't found one!) that is essentially the same as lm() but with an additional censor argument (vector of -1...