[R] Multinomial Regression for Complex Survey

2017-09-07 Thread Yen Lee
Hi Dear Rusers, I am working on a survey data with the "survey" package. The logistic regression and multinomial regression would be the main statistic method I want to use. I found that the svyglm function could be used to conduct the logistic regression with the complex design but not the mul

Re: [R] Question about change the length of a string.

2017-05-18 Thread Yen Lee
Hi Jeff, Thank you a lot! Best, Yen -Original Message- From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] Sent: Thursday, May 18, 2017 11:11 PM To: r-help@r-project.org; Yen Lee Subject: Re: [R] Question about change the length of a string. http://stackoverflow.com/questions

[R] Question about change the length of a string.

2017-05-18 Thread Yen Lee
Hello everyone, I have a question and I need your precious kind help. I am working on matching two string. However, the length of the two strings is different. For example, one is "example" (nchar=7), the other one is "example " (nchar=10). The R considers them as different strings but t

[R] Using apply function

2014-01-27 Thread Yen Lee
Hi all R-users, I'm trying to using apply function to input a range of values into a function I wrote. I wrote a function with 4 information needed. I would like to make 2 of them fixed and the other 2 random (but with specified values). I would like to replicate the function 1 times. I wa

[R] Detect the Warning Message

2010-11-05 Thread Yen Lee
Dear all, I've written a function and repeated it for 5000 times with loops with different value, and the messages returned are the output I set and 15 warnings. I would like to trace the warnings by stopping the loop when warning came out. Does anyone know how to make it? Thanks a lot fo

Re: [R] Problem about zero

2010-06-15 Thread Yen Lee
Hello, everyone, Thank you for all your kindness. I've solved the problem through your help with the function all.equal. Thank you very much! Yen -Original Message- From: Gabor Grothendieck [mailto:ggrothendi...@gmail.com] Sent: Wednesday, June 16, 2010 6:40 AM To: Yen Lee Cc: r

[R] Problem about zero

2010-06-15 Thread Yen Lee
Hello, everyone, There's a problem about zero in R and I really need your help. I have a vector shown as x=c(0.1819711,0.4811463,0.1935151,0.1433675), The sum of this vector is shown as 1 in R, but when I type 1-sum(x), the value is not zero, but -2.220446e-16. I can accept that this value i

Re: [R] Calling SAS from R

2010-03-01 Thread Yen Lee
Thanks for all insightful replies. I've solved the problem by using the code as following, system('"C:\\Program Files\\SAS\\SAS 9.1\\sas.exe" C:/entropy/output7/scale/syntax.sas') Thanks for you all. Yen Lee -Original Message- Fro

Re: [R] Calling SAS from R

2010-03-01 Thread Yen Lee
- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Ben Bolker Sent: Monday, March 01, 2010 12:32 AM To: r-h...@stat.math.ethz.ch Subject: Re: [R] Calling SAS from R Yen Lee ntu.edu.tw> writes: > I apologize if my sentence is not fluent to read

Re: [R] Calling SAS from R

2010-02-28 Thread Yen Lee
I'm new to post in R-help and my native language is not English. I apologize if my sentence is not fluent to read. I am doing a simulation study and I need to execute SAS and read a SAS code in R. I try the following code but it doesn't work. system('"c:\\program files\\SAS\\SAS 9.1\\sas.exe