Displaying 3 results from an estimated 3 matches for "psihat".
2005 Dec 01
2
Minimizing a Function with three Parameters
Hi,
I'm trying to get maximum likelihood estimates of \alpha, \beta_0 and
\beta_1, this can be achieved by solving the following three equations:
n / \alpha + \sum\limits_{i=1}^{n} ln(\psihat(i)) -
\sum\limits_{i=1}^{n} ( ln(x_i + \psihat(i)) ) = 0
\alpha \sum\limits_{i=1}^{n} 1/(psihat(i)) - (\alpha+1)
\sum\limits_{i=1}^{n} ( 1 / (x_i + \psihat(i)) ) = 0
\alpha \sum\limits_{i=1}^{n} ( i / \psihat(i) ) - (\alpha + 1)
\sum\limits_{i=1}^{n} ( i / (x_i + \psihat(i)) ) = 0
where \psih...
2010 Feb 10
2
replace a for loop
...a
list, into a csv file. I therefore have to export each element of the
list separately.
Here is the code:
----
str(test)
List of 3
$ output : num [1:15, 1:6] 1 2 3 4 5 6 7 8 9 10 ...
..- attr(*, "dimnames")=List of 2
.. ..$ : NULL
.. ..$ : chr [1:6] "con.num" "psihat" "p.value" "p.crit" ...
$ con : num [1:6, 1:15] 1 -1 0 0 0 0 1 0 -1 0 ...
$ num.sig: int 0
for (i in 1:3){
write.csv(test[[i]], file="filename.csv", append=T, quote=F, row.names=T)
}
----
As I said, I don't completely understand, but I think one of...
2010 Feb 04
5
export test results to csv
Hi everybody!
I would like to export the results of a test statistic in a *.csv file,
but get an error.
The code is below.
The data are attached as .txt with tab as separator. I tried to get a
sample dataset, but for some reason it didn't work, so please excuse the
length of the file. I also attached a txt with the output (copy/paste)
in case that helps.
----
> library(WRS)
>