Thank you Jeff.
It seems to definitely solve it but the "total_error" is very high. Around 399.
I also tried with the method = "L-BFGS-B". Still the error is around 399.
How can we reduce it?
Priyank
On 21 June 2016 at 12:18, Jeff Newmiller wrote:
> The size of this r
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0))
sols
On 17 June 2016 at 16:55, Jeff Newmiller wrote:
> Your code is corrupt because you failed to send your email in plain text
> format.
>
> You also don't appear to have all data needed to reproduce the problem. Use
> the dput function to
By mistake, I sent it earlier to the wrong address.
-- Forwarded message --
From: Priyank Dwivedi
Date: 17 June 2016 at 14:50
Subject: Matrix Constraints in R Optim
To: r-help-ow...@r-project.org
Hi,
Below is the code snippet I wrote in R:
The basic idea is to minimize error
Use the eol="\n\n" option. The records should have a 2 line space.
--
View this message in context:
http://r.789695.n4.nabble.com/Output-formatting-in-Latex-and-R-tp4483631p4485457.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help
Col3 <- unique(Msg17$V3)
LCol3 <- length(Col3)
for (i in 1:LCol3) {
print(paste("Column", Col3[i]))
write.table(Msg17[Msg17$V3==Col3[i],-3], row.names=F, col.names=F,quote=F)
# If you R implementation does not accept 'F', use 'FALSE'
}
--
View this message in context:
http://r.789695.n4.nabbl
How about this --?
##Assumes you have read your data into data frame "Msg17"
## Capture unique values from data file's Column 3
Col3 <- unique(Msg17$V3)
#Captures length of the unique value vector
LCol3 <- length(Col3)
## Loop to sequentially select rows with the unique Col3 values
for (i in 1:
6 matches
Mail list logo