Displaying 7 results from an estimated 7 matches for "phatrasecurities".
2010 Jul 20
3
Sequence from 2 Vectors
...b
[1] 3 4 5
I would like to have a vector that is a sequence which starting from a
and ending at b
c = c(1:3,2:4,3:5)
c = c(1,2,3,2,3,4,3,4,5)
Thank you
Best Regards,
Suphajak Ngamlak
Equity and Derivatives Trading
Phatra Securities Public Company Limited
Tel: +662-305-9179
Email: suphajak@phatrasecurities.com
[[alternative HTML version deleted]]
2011 Sep 07
1
Weight in Function RM
...Data, weight = Weight)
summary(Result)
Data2 <- Data*Weight
Result2<- lm(formula = MatY~IndSub1+IndSub2+IndSub3-1, data = Data2)
summary(Result2)
Best Regards,
Suphajak Ngamlak
Asset Management (Hedge Fund)
Phatra Securities Public Company Limited
Tel: (66)2-305-9179
Email: suphajak@phatrasecurities.com
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------...
2010 Sep 15
2
Get File Names in Folder, Read Files, Update, and Write
...")
Table$VALUE <-0
Export<-"C:/A_XVal0810.RSK"
write.table(Table, file= Export, sep = ",", col.names = TRUE)
Thank you
Best Regards,
Suphajak Ngamlak
Equity and Derivatives Trading
Phatra Securities Public Company Limited
Tel: +662-305-9179
Email: suphajak@phatrasecurities.com
[[alternative HTML version deleted]]
2010 Nov 09
2
Calculate Mean from List
...] + ... + A[[n]] [3,2])/n
Please note that some cells are NA; so I need to remove them when calculating average.
How could I get this efficiently? Thank you
Best Regards,
Suphajak Ngamlak
Equity and Derivatives Trading
Phatra Securities Public Company Limited
Tel: (66)2-305-9179
Email: suphajak@phatrasecurities.com
[[alternative HTML version deleted]]
2010 Aug 04
1
SQLDF from Variable Matrix
...Bygroup")
return(AVG)
}
Result<-GetAvg(Test,'A')
The only difference is with $Input. How can I refer to this variable in
sqldf. Thank you
Best Regards,
Suphajak Ngamlak
Equity and Derivatives Trading
Phatra Securities Public Company Limited
Tel: +662-305-9179
Email: suphajak@phatrasecurities.com
[[alternative HTML version deleted]]
2010 Nov 25
1
Execute SQL Stored Procedure in R
...onnect("ptsecmstqa01-alpha")
query <- paste("execute DB.dbo.usp_test")
Data<- sqlQuery(channel1, query)
However, it returned blank.
Best Regards,
Suphajak Ngamlak
Equity and Derivatives Trading
Phatra Securities Public Company Limited
Tel: (66)2-305-9179
Email: suphajak@phatrasecurities.com
[[alternative HTML version deleted]]
2011 Oct 31
2
Linear Regression with Linear Equality Constraint
Please advice on the package I should use to run a linear regression model
(weighted least squared) with linear equality constraint. I initially tried
"constrOptim" but it turned out that it only supported inequality linear
constraint. Thank you very much in advance.
Cheers,
Jon
--
View this message in context: