search for: jialin

Displaying 11 results from an estimated 11 matches for "jialin".

Did you mean: dialin
2012 Mar 12
3
how to calculate a variance and covariance matrix for a vector
...b2, b3, b4}. How can I calculate the following matrix: var(a) cov(a, b1) cov(a, b2) cov(a, b3) cov(a, b4) cov(a, b1) var(b1) cov(a, b2) cov(a, b3) cov(a, b4) ... ... cov(a, b1) cov(a, b2) cov(a, b3) cov(a, b4) var(b4) I would very appreciate your inputs. Thank you very much. Sincerely, Jialin Huang [[alternative HTML version deleted]]
2018 Mar 18
3
`@<-` modify its argument when slot is externalptr
...> x # An object of class "S4ClassHoldingExtptr" # <pointer: 0x7ffc60973f30> y # An object of class "S4ClassHoldingExtptr" # <pointer: 0x7ffc60973f30> However, "subs_extptr_2" will modify both x and y. Is this behavior expected? Thanks, Jialin > sessionInfo() R version 3.4.1 (2017-06-30) Platform: x86_64-suse-linux-gnu (64-bit) Running under: openSUSE Tumbleweed Matrix products: default BLAS: /usr/lib64/R/lib/libRblas.so LAPACK: /usr/lib64/R/lib/libRlapack.so locale: [1] LC_CTYPE=en_US.UTF- 8 LC_NUMERIC=C LC_T...
2019 Jul 08
5
Format printing inside a matrix
...rop the attributes of the input, e.g. lapply, apply -- they are not generics and it is not wise to override them. Overall, introducing a new S3/S4 class often brings some extra price in order to maintain the correct behavior, which is why I tend to avoid them unless it is necessary. Best regards, Jialin On Sunday, July 7, 2019 4:43:59 PM PDT Abby Spurdle wrote: > contains an array of question marks, which > isn't helpful. > > Would it be possible for the print method for both matrices and arrays > (conditional on having a list type), call the format method for each > object,...
2012 Mar 05
1
How to identify a matrix which causes memory limit?
...running a simulation on an old computer with memory of 512M. I constantly received a warning of "cannot allocate a vector of ...". How can I identify the matrix causing the problem? Is there any way to fix this issue? I would very appreciate your inputs. Thank you very much. Sincerely, Jialin Huang [[alternative HTML version deleted]]
2018 Mar 28
1
as.pairlist does not convert call objects
Dear all, It seems that as.pairlist does not convert call objects, producing results like the following: > is.pairlist(as.pairlist(quote(x + y))) [1] FALSE Should this behavior be expected? Thanks, Jialin > sessionInfo() R version 3.4.1 (2017-06-30) Platform: x86_64-suse-linux-gnu (64-bit) Running under: openSUSE Tumbleweed Matrix products: default BLAS: /usr/lib64/R/lib/libRblas.so LAPACK: /usr/lib64/R/lib/libRlapack.so locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3]...
2019 Jul 08
0
Format printing inside a matrix
On 7/7/19 17:41, Jialin Ma wrote: > Hi Abby, > > Thanks a lot for your paraphrasing and your suggestion! > > The problem of wrapping the list into a S3/S4 object, i.e. subclassing array > or matrix, is that one also has to define a bunch of methods for subsetting, > joining, etc, in order to make it...
2018 Mar 18
0
`@<-` modify its argument when slot is externalptr
On Sun, 18 Mar 2018, Jialin Ma wrote: > Dear all, > > I am confused about the inconsistent behaviors of `@<-` operator when > used in different ways. Consider the following example: > > library(inline) > > # Function to generate an externalptr object with random address > new_extptr <- cfu...
2019 Jul 02
3
Format printing inside a matrix
...4] [,5] [1,] ? ? ? ? ? [2,] ? ? ? ? ? Is it possible that the print method for matrix can call some type of generic such as `as.character` or `format` when it encounters such cases? Or is there any other place that I can override without introducing a new S3 class? Thanks! Jialin Ma
2019 Jul 08
1
Format printing inside a matrix
...# [,1] [,2] # [1,] "'5" "'7" # [2,] "'6" "'8" And there is a bunch of other methods that needs to be defined for this specific class. This seems too much if I simply want the default list behavior plus printing method. Best regards, Jialin
2011 Nov 28
0
A simulation project based Graded Response Model with multiple groups
...number=2,3,4,6,9, 12), different sample size for each group (N=250, 500, and 1000), different values of as and bs, and some other criteria. How can I do it in R? Do you think it would be easier to do it in other languages other than R? I would very appreciate your inputs. Thank you. Sincerely, Jialin [[alternative HTML version deleted]]
2019 Jul 08
1
Format printing inside a matrix
A generic for displaying an object in a cell would be a reasonable solution for this particular problem. However, as soon as you start treating these objects as data (like putting them into a matrix), you're likely going to want vectorized operations over them, which means formalized vector and matrix classes. S4Vectors in Bioconductor facilitates this for vectors, but not for higher-order