Re: [R] How to estimate the parameter for many variable?

2021-07-08 Thread Rui Barradas
Hello, The following lapply one-liner fits a GEV to each column vector, there is no need for the double for loop. There's also no need to create a data set x. library(ismev) library(mgcv) library(EnvStats) Ozone_weekly2 <- read.table("~/tmp/Ozone_weekly2.txt", header = TRUE) # fit a GEV to

Re: [R] How to estimate the parameter for many variable?

2021-07-08 Thread SITI AISYAH ZAKARIA
Dear all, Thank you very much for the feedback. Sorry for the lack of information about this problem. Here, I explain again. I use this package to run my coding. library(ismev) library(mgcv) library(nlme) The purpose of this is I want to get the value of parameter estimation using MLE by appl

Re: [R] How to estimate the parameter for many variable?

2021-07-08 Thread Jim Lemon
Hi Siti, I think some progress has been made. You have a data set with 888 rows and 19 columns: ow2<-read.table("Ozone_weekly2.txt", header=TRUE) dim(ow2) [1] 888 19 The values may be parts per million ozone in the atmosphere. The columns may represent different measuring locations and my gues

Re: [R] MAC version 10

2021-07-08 Thread Jeffrey Hunter
Hello: https://cran.r-project.org/bin/macosx/ Download the R-4.1.0.pkg and install it as you would any macOS app. ~jeff Jeffrey M. Hunter Sr. DBA, Mathematics Programmer, Author jhun...@idevelopment.info A computer without a Microsoft operating system is like a dog without bricks tied to its

Re: [R] MAC version 10

2021-07-08 Thread Bert Gunter
If the below is not helpful, post on r-sig-mac rather than here. You should be able to download and install a precompiled binary (no zip files to unzip and compile) from here: https://cran.r-project.org/ Bert Gunter "The trouble with having an open mind is that people keep coming along and stick

Re: [R] MAC version 10

2021-07-08 Thread Spencer Graves
What web site did you go to? Have you tried: https://cran.r-project.org/bin/macosx/ Then click on "R-4.1.0.pkg". That should download as normal. Then double click on that, etc. Spencer Graves On 7/6/21 3:52 PM, Farrah T wrote: Hello, I have Mac Version 10 Cata

[R] MAC version 10

2021-07-08 Thread Farrah T
Hello, I have Mac Version 10 Catalina and I would like to download R on this device for my summer class. I have difficulty to find a right option when I go to the website. May you please kindly share the step by step guidance with me. The screenshot with be great. I downloaded few zip files an

Re: [R] problem for strsplit function

2021-07-08 Thread Kai Yang via R-help
Hello all, I have to learning R from beginning, since my group will get rid of SAS. So, my question may not be very clear for professional R user. I always dealing with column in data frame, not data vector.  Many thanks to Greg's example. it is very helpful. one more question, how can I know if

Re: [R] How to estimate the parameter for many variable?

2021-07-08 Thread Rui Barradas
Hello, Also, in the code x <- data.matrix(Ozone_weekly) [...omited...] for(i in 1:nrow(x)) + { for(j in 1:ncol(x)) + {x[i,j] = 1}} not only you rewrite x but the double for loop is equivalent to x[] <- 1 courtesy R's vectorised behavior. (The square parenthesis are needed to keep t

Re: [R] How to estimate the parameter for many variable?

2021-07-08 Thread Jim Lemon
Hi Siti, I think we need a bit more information to respond helpfully. I have no idea what "Ozone_weekly2" is and Google is also ignorant. "gev.fit" is also unknown. The name suggests that it is the output of some regression or similar. What function produced it, and from what library? "ti" is known