search for: yihsu

Displaying 13 results from an estimated 13 matches for "yihsu".

2004 Mar 10
3
How to use MLE-class?
...I had successfully use "MLE" function to solve my problem. Is there anyone knows how to get related information? i.e., value of likelihood function, information matrix, and etc. I know MLE-class can do it but I can not find any information tells me how to do it. Thanks a billions, Yihsu [[alternative HTML version deleted]]
2007 Dec 09
3
editor under MAC system
Dear R-user; I recently switched from PC to MAC. Is there a compatible editor as Win-editor with package RWinEdit for MAC? Thanks Yihsu Chen [[alternative HTML version deleted]]
2006 May 16
2
split the data.frame
...x is just the stacked up of A1 and A2 placed with respective V1 and V2 in the first two columns: V1 V2 x A B 1.2 A B 2.0 A D 1.2 A D 4.0 A C 2.4 A C 2.2 I wonder whether there is an efficient way to do it since I have huge dataset. Thank you very much Yihsu Yihsu Chen The Johns Hopkins University
2006 May 18
2
create a vector
Dear R users: I have an elementary question: how to creat a vector of [A1, A2, A3...... A300]? I know c(1:300) would give 1, 2, 3, ...., 300 but not sure how to attch a A to each element. Thank you Yihsu Chen The Johns Hopkins University
2008 Dec 11
4
how to plot implicit functions
...I think this question was asked before but there was no reply to it. I would appreciate any suggestion any of you might have. I am interested in plotting several "implicit functions" (F(x,y,z)=0) on the same fig. Is there anyone who has an example code of how to do this? Thank you Yihsu
2007 Feb 22
2
write fixed format
...and C, where both A and C are text with 3 characters and left alignment; B is a numeric one with 2 decimals and 3 integer space digits. How can I put the following row in a file? (note there is a space between a and 2, and after b.) (A=aaa, B=23.11 and C=bb) "aaa 23.11bb " Yours, Yihsu Chen
2006 May 19
1
Writing to a file with fixed precision
.....) : too few arguments". If put %1$.14f %2$.10f %3$2.5f. instead, a different error message becomes: "Error in sprintf(fmt, ...) : reference to non-existent argument 2" I do not exactly know what the problem is, or is there a more elegant way of completing this task. Thank you Yihsu Chen The Johns Hopkins University On Mon, 10 Oct 2005, Marc Schwartz wrote: > On Mon, 2005-10-10 at 19:50 -0400, Richard Hedger wrote: >> Hi, >> I'm trying to ouput to a filled with a fixed precision: >> eg. if I have data x=c(1.0,1.4,2.0), I want to be able to oupu...
2006 Apr 27
2
add city and point in the map
...) =(75.56027, 39.09271). Also, I need to mark several cities that I suspect might not in the "world.cities" database such as Baltimore, etc. Presumably, I can do the same thing by finding out the lat and long infor of Baltimroe and add text next to the point I mark. Thanks a billion Yihsu library(maps) library(mapdata) state.list <- c("maryland","new jersey","west virginia", "virginia","ohio","delaware","pennsylvania","kentucky","indiana","north carlina") map("state",st...
2006 May 18
1
How to write output in a specific formate with irregular space
...occupies 11-15 spaces aligned to the right, and finally column C takes 16-25 spaces aligned to left. In other words, this is what it should be looked like, where the first row is simply the indices for "space". 1234567890123456789012345 a10 100.0212 Thank you Yihsu Chen The Johns Hopkins University
2007 Jul 09
1
ca.jo
Dear R users; I'm using ca.jo for a VECM model. Is there a way that I can get sd/p-value to see whether coefficients estimated are statistical significant? Thank you Yours, Yihsu [[alternative HTML version deleted]]
2008 Feb 01
1
calculation fraction/ratio
...s, for Index =1, three fractions will be "1/(1+2+3)=0.17", "2/(1+2+3)=0.33", and "3/1+2+3=0.5". Likewise for Index =2 and Index 3. So, I then generate a new vector of 0.17, 0.33, 0.5... ,etc. Index A 1 1 1 2 1 3 2 4 2 3 3 7 3 9 3 3 3 1 Thank you so much Yihsu [[alternative HTML version deleted]]
2006 Jul 11
1
problem of fixed-formated output using sprintf
...is as follows: df.fmt <- sprintf("%2s%2s%2.4f", df$v1, df$v2, df$v3) write.table(df.fmt, output.name,...) The actual dataset is a df with the dimention of 67944 by 34. I'm wondering whether there is an elegant way of doing it. I would like output in a txt file. Many thanks. Yihsu Chen The Johns Hopkins University
2006 May 16
0
solution of split data.frame
..., sep="\t", na="", quote=FALSE, row.names = FALSE, col.names=FALSE) system("{ cut -f1,2,3 foo.txt ; cut -f1,2,4 foo.txt ; } > bar.txt") newDF <- read.table("bar.txt", col.names=c("V1","V2","x")) newDF[1:10,] On 5/15/06, YIHSU CHEN <yschen at jhu.edu> wrote: > Dear R folks: > > I wonder anyone has a elegent way of doing what I need to do. > > I have a data frame called with four columns: V1, V2, A1 and A2: > > V1 V2 A1 A2 > A B 1.2 2.0 > A D 1.2 4.0 > A C 2.4 2...