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.

262 results for “from:Steven Yen”

Background for word
Steven Yen · Jan 11, 2023 · r-help

Dear, I am having a lucky day. I am programming in RStudio and when I type "black" (quotation signs included, the word turn into a word with black ground. Couldn't get rid of the background----copying to Word, Excel...

Problem saving .RData file with save.image
Steven Yen · Jan 26, 2018 · r-help

I am running R-3.0.3 on RStudio 1.1.183. I have recently gotten the following error message while saving an .RData file with the save.image command. I have not had this problem until recently. Help appreciated...

Concordance and Kendall's tau in copula
Steven Yen · Nov 6, 2023 · r-help

Dear I estimate a sample selection model using the Clayton copula and Burr and Gaussian marginal. I need to derive ther Kendall'sw tau from the concordance coefficient by integration. I came across a way to do that in R...

Grep command
Steven Yen · May 3, 2016 · r-help

Dear all In the grep command below, is there a way to identify only "age" and not "age2"? In other words, I like to greb "age" and "age2" separately, one at a time. Thanks. x<-c("abc","def","rst","xyz...

Retrieving response variable in the probit
Steven Yen · May 1, 2016 · r-help

Can anyone tell me how to retrieve the response (dependent) variable from a probit regression object (as much as model.matrix(obj) retrieves the data matrix). Below is a self-runnable set of codes. Thank you! library(sampleSelection) data<-read...

Installing package into...
Steven Yen · Mar 12, 2019 · r-help

I install package using either the command line or Tools -> Install packages... (in RStudio) and get a non-fatal message saying... Installing package into ?C:/Users/xuhaer/Documents/R/win-library/3.5? (as ?lib? is unspecified) I know it...

Splitting lines in R script
Steven Yen · Aug 2, 2015 · r-help

I have a line containing summation of four components. # This works OK: p<-pbivnorm(bb,dd,tau)+pbivnorm(aa,cc,tau)- -pbivnorm(aa,dd,tau)-pbivnorm(bb,cc,tau) # This produces unpredicted results without warning: p<-pbivnorm(bb,dd,tau...

Echos for comment line (with #)
Steven Yen · Feb 11, 2017 · r-help

I need help with what may be a simple option in R (or Rstudio)--to receive an echo of a comment line. Running the following two-line script in plain R, # adding 1+2 I did get the echo: > # adding...

Language environment
Steven Yen · Nov 17, 2020 · r-help

In R, I was able to set the language environment by fixing the line in file "C:\Program Files\R\R-4.0.3\etc\Rconsole", line 70 below, set language to EN: language = EN In RStudio, I am not...

Removing variables from data frame with a wile card
Steven Yen · Jan 13, 2023 · r-help

I have a data frame containing variables "yr3",...,"yr28". How do I remove them with a wild card----something similar to "del yr*" in Windows/doc? Thank you. > colnames(mydata) ? [1] "year"?????? "weight"???? "confeduc"?? "confothr" "college" ? [6] ... ?[41] "yr3"??????? "yr4...

Rtools required
Steven Yen · Apr 28, 2020 · r-help

Dear All I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to now the new default folder c:\rtools40). While compiling a package (binary) I received the follow marning message saying Rtools is required...

Rtools required
Steven Yen · Apr 28, 2020 · r-help

Dear All I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to now the new default folder c:\rtools40). While compiling a package (binary) I received the follow marning message saying Rtools is required...

Reading csv file with missing value
Steven Yen · Jun 24, 2016 · r-help

I read a csv file (with read.csv) containing missing values (as shown below). Is there a convenient way to set these NA into zeros? Better yet, is there an option to assign zeros to these blank cells in reading...

Graphing output
Steven Yen · Oct 9, 2018 · r-help

Is it possible to release the file destination after sending it to a pdf file? Below, line 3 send the graph to a pdf file. I like to release the devise so that I can see result produced by line...

Checking if a logical variable exists
Steven Yen · Dec 14, 2014 · r-help

My obj does not always come with a logical variable defined. So I do my.foo <- function(obj,df,digits=5){ if (!is.na("obj$spec$Fisher")) Fisher<-obj$spec$Fisher ... } This works when "Fisher" is defined in/passed from...

Printing with cat in a procedure
Steven Yen · Dec 22, 2018 · r-help

How do I print a matrix running a procedure? In the code below, I print with the cat command and get a vector (from A and C). A<-matrix(rpois(16,lambda=5),nrow=4,byrow=T) B<-diag(4...

Calling a procedure
Steven Yen · Sep 20, 2020 · r-help

Can someone tell me a proper call to a procedure, in this case, pnorm. In what follows, I had expected a = b, but they are not equal. What are wrong with first call and second call? Thank you! try<-function...

Wild cards for dataframes
Steven Yen · Oct 22, 2021 · r-help

I like to be able to use a command with something similar to a "wild card". Below, lines 4 works to delete all three dataframes, but line 5 does not work. Any elegant way to accomplish this? My list of...

grep command
Steven Yen · May 3, 2016 · r-help

Dear all In the grep command below, is there a way to identify only "age" and not "age2"? Thanks. > x<-c("abc","def","rst","xyz","age","age2") > x [1] "abc" "def" "rst" "xyz" "age" "age2" > grep("age2",x) [1] 6...

optim with constraints
Steven Yen · Dec 6, 2009 · r-help

Hi, dear R users I am a newbie in R and I wantto use the method of meximum likelihood to fit a Weibull distribution to my survival data. I use "optim" as follows: optim(c(1, 0.25),weibull.like...

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