2015/08/19

updateusr method for better barplot with lines/points

When using barplot with add y2 axis for lines or points by par(new=TRUE)  as show in the example code usually get shifted.

The updateusr method from Greg Snow's TeachingDemos package is a great solution for this problem. The idea behind updateusr is define new plot region according to the ratio of one unit in each axis.

The code:


Example code:(add space 8/20)


Result:

2014/12/08

Error: Package 'XXX' was build before 3.x.x: please re-install it

For install new package which previous install use different R version cause the error:
"Error: Package 'XXX' was build before 3.x.x: please re-install it"


solution:
update.packages(checkBuilt = TRUE, ask = FALSE)

for user privilege issue:
use SUDO R, then update.packages(checkBuilt = TRUE, ask = FALSE)

Reference:
https://stackoverflow.com/questions/16987948/causes-of-error-package-was-built-before-3-0-0-please-re-install-it

2013/08/13

wafer map pattern recognization by fingerprint matching/DNA sequence matching method?

寫下來才不會又忘了 wafer map --> whole fingerprint/total DNA sequence pattern --> partial fingerprint/partial DNA sequence Q1: how to define pattern character as fingerprint's character(minutia/ridge points...) encoding wafer map pattern as DNA sequence Q2: which algorithm to apply? Reference: BFAST Fingerprint Recognition Algorithms for Partial and Full Fingerprints

2012/08/12

Boxplot in R

boxplot.stats for calculating.
the argument coef for multuplier of the IQR. 0 for extream data points in data

returning statistics are lower whisker, P25, median,P75, upper whisker

 

2012/05/31

Wave Chart

The bar plot always start at line 0, therefore use xlim for located the barplot at different x-axis position.
The code:

TO DO: add lines for input statistics

Reference : Quantile regression Chart by Philippe Grosjean, http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=109

2012/02/06

Learn something new

現在正在上Standford 的線上課程.
http://www.ml-class.org/

講的滿清楚的
學ml還可以練習英文
一舉兩得啊

2010/12/02

Defect/Failure Pattern Yield impact model

From the US patent : Patent number: 6367040
System and method for determining yield impact for semiconductor devices

It's estimate the yield impact by two step:
Step 1: calculate each defect's kill probability(the chance for die fail if this die own the defec)
Step 2: calculate the total yield loss according to the above kill probability


We can use the patent's idea for defect or pattern type's yield impact modeling.

First, use logistic regression to get the kill probability for each defect/pattern
Then, use the above kill probability to estimate the yield impact.

For defect type data, we have following data:
Each die's final result(pass or fail), which defect(s) fall in this die.
Summary data format as following:
Die's Result/Defect1/Defect2/.../DefectN
0 0 1 .... 0
1 0 1 1
...

where 0 for pass die or no defect
1 for fail die or own that defect

First we fit the logistic regression with response variable as die's result, explain variables as defect1 ... defectN
Then each defect's kill probability equals the proportion of the odds

For each fail die, we assign each defect to response the yield loss by it's kill probability.
for example, if we have 5 defect types, defect1,..., defect5 with kill probability (0.1,0.1,0.3,0.2,0.3)
if die1 is fail and with defect1 and defect5 located,
then we assign defect1 has yield loss 0.1/0.4 and defect5 has yield loss 0.3/0.4 for this die.
After summary all the fail dies, we can get the estimated yield for each defect type.

For pattern type data, replace 0 or 1 with the true yield loss, and we still have the same result.

The example R core as following

CC Copyright

創用 CC 授權條款
本著作由Chunhung Chou製作,以創用CC 姓名標示-相同方式分享 3.0 Unported 授權條款釋出。