Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

19 results for “from:Chao Liu”

Help with simulation of unbalanced clustered data
Chao Liu · Dec 15, 2020 · r-help

Dear R experts, I want to simulate some unbalanced clustered data. The number of clusters is 20 and the average number of observations is 30. However, I would like to create an unbalanced clustered data per cluster where there are...

Problem in cluster sampling: 'mixed with negative subscripts'
Chao Liu · Dec 19, 2020 · r-help

Hi, I was trying to do a cluster sampling but came across this error: Error in xj[i] : only 0's may be mixed with negative subscripts. What is the cause and how to get around? Thank you for your...

Goodreader: Scrape and Analyze 'Goodreads' Book Data
Chao Liu · Sep 3, 2024 · r-help

Dear R Users, I am pleased to announce that Goodreader 0.1.1 is now available on CRAN. Goodreader offers a toolkit for scraping and analyzing book data from Goodreads. Users can search for books, scrape detailed information and reviews...

Goodreader: Scrape and Analyze 'Goodreads' Book Data
Chao Liu · Sep 3, 2024 · r-packages

Dear R Users, I am pleased to announce that Goodreader 0.1.1 is now available on CRAN. Goodreader offers a toolkit for scraping and analyzing book data from Goodreads. Users can search for books, scrape detailed information and reviews...

Problem with updating terms in the multinom function
Chao Liu · Mar 30, 2021 · r-help

Dear R-help, I am trying to add1() all interaction terms on top of a multinomial baseline model using multinom() but it shows the error "trying + x1:x2 Error in if (trace) { : argument is not interpretable as logical Called from...

Error in if (class(networks) == "matrix") from a function
Chao Liu · Sep 21, 2022 · r-help

Dear R-Help community, This is a crosspost on SO but I've had no luck so far. So I have a function which computes a centrality index for the nodes in a network or matrix. Here is the function...

Alternative to mapply to select samples
Chao Liu · Feb 2, 2021 · r-help

Dear R-Help, I created a mapply function to select samples from a dataset but are there any faster ways to do it by avoiding mapply because it is slow and I have a larger dataset? My goal is to...

Print out progress reports of add1()
Chao Liu · Jan 18, 2021 · r-help

I have a few questions about using add1(). First of all, according to the R document of add1(), the trace = TRUE function prints out progress reports but my attempts to do this have failed several times. So how do we...

Use mapply or lapply to a nested list
Chao Liu · Dec 21, 2020 · r-help

I want to apply a sample function to a nested list (I will call this list `bb`) and I also have a list of numbers (I will call this list `k`) to be supplied in the sample function. I would...

Error in if (class(networks) == "matrix") from a function
Chao Liu · Sep 22, 2022 · r-help

Thank you Eric, Andrew, Rui and Martin for all your help and advice. I did learn some good practices under the new R version! Best, Chao On Thu, Sep 22, 2022 at 5:53 AM Martin Maechler <maechler at stat...

Print out progress reports of add1()
Chao Liu · Jan 18, 2021 · r-help

Thank you Duncan. Do you by chance know any way around this? On Mon, Jan 18, 2021 at 11:58 AM Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > You are using add1 on an "lm" object, and add1.lm...

Simulate type I error
Chao Liu · Jan 26, 2022 · r-help

Dear R-help community, I would like to simulate type I error for a random-effects model I generated. The statistic of interest is standard deviations of the random intercept and random slope. Specifically, for random intercept, H_{0}: lambda...

Help with simulation of unbalanced clustered data
Chao Liu · Dec 17, 2020 · r-help

Thank you for your help Abby! On Wed, Dec 16, 2020 at 11:32 PM Abby Spurdle <spurdle.a at gmail.com> wrote: > Hi Chao Liu, > > I'm having difficulty following your question, and examples. > And also, I don't...

Simulate type I error
Chao Liu · Jan 27, 2022 · r-sig-mixed-models

Dear R-sig-mixed-models community, I would like to simulate type I error for a random-effects model I generated. The statistic of interest is standard deviations of the random intercept and random slope. Specifically, for random intercept, H...

Simulate type I error
Chao Liu · Jan 26, 2022 · r-help

Hi Jeff, Thanks for the reminder. I will post my question there. I did post the plain text but maybe the default font of my gmail makes it look like being formatted. Best, Chao On Wed, Jan 26, 2022 at...

Alternative to mapply to select samples
Chao Liu · Feb 4, 2021 · r-help

Thank you for your input, Petr. I will give it a try. Best, Chao ? On Wed, Feb 3, 2021 at 4:32 AM PIKAL Petr <petr.pikal at precheza.cz> wrote: > Hi > > I am not sure if I understand your...

Help with simulation of unbalanced clustered data
Chao Liu · Dec 16, 2020 · r-help

Thank you for the reminder, Jeff. I am new to R-help and so please bear with my ignorance. This is not homework and here is a reproducible example. The number of observations per cluster doesn't follow the condition...

Problem in cluster sampling: 'mixed with negative subscripts'
Chao Liu · Dec 19, 2020 · r-help

Jim and Bert, Thank you for your help. It was an indexing problem. I was able to solve it by changing the split line to: clusters <- split(seq_len(nrow(dd)), dd$cluster). Thank you. Best, Chao On Sat, Dec...

Use mapply or lapply to a nested list
Chao Liu · Dec 22, 2020 · r-help

Jim and Ben, Thank you for your help. I will play around the commands and function you suggested. Best, Chao On Tue, Dec 22, 2020 at 4:07 AM Jim Lemon <drjimlemon at gmail.com> wrote: > Hi Chao, > I think...

Can't find what you're looking for? Try searching with Google .