Help with Weighted Regression in Matlab


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Help with Weighted Regression in Matlab
# 1  
Old 04-19-2010
Help with Weighted Regression in Matlab

I need to weight the regression I am performing on a data file. I am not using all the numbers in the file. Here are my variables:
Y = data([1:8,9:16,73:80,137:144,225:232,265:272,327:334,305:312,353:360,361:368,425:432,489:496,577:584,617:6 24,641:648,657:664],1)
X has the same bracketed first term, and the second term is [6,63,181,157,203,194]

I have eight different weights I want to give, one weight corresponding to two different sets of 8 rows (e.g. 1:8 and 353:360). How can I assign the weights appropriately and then regress(Y,X,weights) ? I messed around with for and if loops, but I couldn't figure it out.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Shell equivalent of matlab fwrite function

I have some matlab code that sends the serial port elements of an array using matlab's fwrite function, e.g.: fwrite(s, , 'uchar'); What would be a unix shell equivalent? E.g., after successfully accessing the port using instructions here: Simple terminal serial port program for Linux/MacOSX... (3 Replies)
Discussion started by: darwin_886
3 Replies

2. UNIX and Linux Applications

Importing data's from cadence to MATLAB

hello, debashish here. i am working with 6 bit flash ADC design. So for calculation of INL and DNL ,i have to import data from cadence to MATLAB . Can anybody help me out:confused: (1 Reply)
Discussion started by: DEBASHISH DASH
1 Replies

3. UNIX for Dummies Questions & Answers

Calculating weighted average

Dear all, i have 200 values in a file. How can i calculate a weighted average and output into a new file avg.dat? INPUT: file1.dat 1.3453 2.434 2.345 ..... OUTPUT: avg.dat file1: 1.762 Thanks. Po (3 Replies)
Discussion started by: chen.xiao.po
3 Replies

4. Homework & Coursework Questions

Matlab help! Reading in a file with a variable filename

1. The problem statement, all variables and given/known data: I want to read in a file, and plot the data in matlab. However, I do not like hardwiring filenames into my codes, so I always give the user the option to specify what the filename is. I am pretty inexperienced with matlab, so I have no... (0 Replies)
Discussion started by: ds7202
0 Replies

5. Programming

Equivalent function for matlab on scilab

Hello everyone, i need help with this , i need the equivalent matlab funtion tf(x,y) in scilab and what do u recommend best from those three for a linux user (i need it for Control theory): 1-matlab 2-Scilab 3-Octave thank you for your time (0 Replies)
Discussion started by: abu_malek
0 Replies

6. UNIX and Linux Applications

Matlab (more generally: sorting data by date)

I'm not sure if this really belongs anywhere on this forum but my previous experiences on here have shown me that you guys are very helpful so I figure I may as well try. I have a bunch of large 2d arrays in matlab and each has a column for a date that each row corresponds to. The format is... (1 Reply)
Discussion started by: skray
1 Replies

7. Shell Programming and Scripting

regaining control after remotely calling matlab

hi, i have written a tcsh script that calls matlab from a remote computer: matlab -nodisplay -nojvm -r "txt2avw('$roi'); exit" but when the program is finished calling/using matlab, i can't seem to get my script back because immediately following the line above, i've written: echo "Moving... (0 Replies)
Discussion started by: nixjennings
0 Replies

8. UNIX for Dummies Questions & Answers

qsub and Matlab

I am trying to run a Matlab function, file.m, with qsub. Here is a portion of my .sge file: echo Starting to run Matlab matlab -nojvm -nodesktop -r "file('${inputfile}');exit;" echo finished running Matlab The last two lines of the Matlab function are: disp('finished'); exit So my... (1 Reply)
Discussion started by: laether
1 Replies

9. Ubuntu

MatLab alike software in Fedora

Hi, Is there any free software version availabe for download for Fedora or Ubuntu or other Linux Flavors which is very close to MatLab in Windows? Thanks. (1 Reply)
Discussion started by: MULTIVERSE
1 Replies
Login or Register to Ask a Question
iconv_8859-2(5) 					Standards, Environments, and Macros					   iconv_8859-2(5)

NAME
iconv_8859-2 - code set conversion tables for ISO 8859-2 (Latin 2) DESCRIPTION
The following code set conversions are supported: +--------------------------------------------------------------------+ | Code Set Conversions Supported | +--------------+--------+--------------+--------+--------------------+ | Code |Symbol |Target Code |Symbol | Target Output | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-2 |iso2 |MS 1250 |win2 | Windows Latin 2 | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-2 |iso2 |MS 852 |dos2 | MS-DOS Latin 2 | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-2 |iso2 |Mazovia |maz | Mazovia | +--------------+--------+--------------+--------+--------------------+ |ISO 8859-2 |iso2 |DHN |dhn | Dom Handlowy Nauki | +--------------+--------+--------------+--------+--------------------+ CONVERSIONS
The conversions are performed according to the following tables. All values in the tables are given in octal. ISO 8859-2 to MS 1250 For the conversion of ISO 8859-2 to MS 1250, all characters not in the following table are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | ISO 8859-2 | MS 1250 | ISO 8859-2 | MS 1250 | |24 | 4 |261 |271 | |177-237 | 40 |265 |276 | |241 | 245 |266 |234 | |245 | 274 |267 |241 | |246 | 214 |271 |232 | |251 | 212 |273 |235 | |253 | 215 |274 |237 | |254 | 217 |276 |236 | |256 | 216 |266 |236 | +---------------+----------------+----------------+---------------+ ISO 8859-2 to MS 852 For the conversion of ISO 8859-2 to MS 852, all characters not in the following table are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | ISO 8859-2 | MS 852 | ISO 8859-2 | MS 852 | |24 | 4 |316 |327 | |177-237 | 40 |317 |322 | |240 | 377 |320 |321 | |241 | 244 |321 |343 | |242 | 364 |322 |325 | |243 | 235 |323 |340 | |244 | 317 |324 |342 | |245 | 225 |325 |212 | |246 | 227 |326 |231 | |247 | 365 |327 |236 | |250 | 371 |330 |374 | |251 | 346 |331 |336 | |252 | 270 |332 |351 | |253 | 233 |333 |353 | |254 | 215 |334 |232 | |255 | 360 |335 |355 | |256 | 246 |336 |335 | |257 | 275 |337 |341 | |260 | 370 |340 |352 | |261 | 245 |341 |240 | |262 | 362 |342 |203 | |263 | 210 |343 |307 | |264 | 357 |344 |204 | |265 | 226 |345 |222 | |266 | 230 |346 |206 | |267 | 363 |347 |207 | |270 | 367 |350 |237 | |271 | 347 |351 |202 | |272 | 255 |352 |251 | |273 | 234 |353 |211 | |274 | 253 |354 |330 | |275 | 361 |355 |241 | |276 | 247 |356 |214 | |277 | 276 |357 |324 | |300 | 350 |360 |320 | |301 | 265 |361 |344 | |302 | 266 |362 |345 | |303 | 306 |363 |242 | |304 | 216 |364 |223 | |305 | 221 |365 |213 | |306 | 217 |366 |224 | |307 | 200 |367 |366 | |310 | 254 |370 |375 | |311 | 220 |371 |205 | |312 | 250 |372 |243 | |313 | 323 |374 |201 | |314 | 267 |375 |354 | |315 | 326 |376 |356 | |366 | 367 | | | +---------------+----------------+----------------+---------------+ ISO 8859-2 to Mazovia For the conversion of ISO 8859-2 to Mazovia, all characters not in the following table are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | ISO 8859-2 | Mazovia | ISO 8859-2 | Mazovia | |24 | 4 |323 |243 | |177-237 | 40 |324-325 |40 | |240 | 377 |326 |231 | |241 | 217 |327-333 |40 | |242 | 40 |334 |232 | |243 | 234 |335-336 |40 | |244-245 | 40 |337 |341 | |246 | 230 |340-341 |40 | |247-253 | 40 |342 |203 | |254 | 240 |343 |40 | |255-256 | 40 |344 |204 | |257 | 241 |345 |40 | |260 | 370 |346 |215 | |261 | 206 |347 |207 | |262 | 40 |350 |40 | |263 | 222 |351 |202 | |264-265 | 40 |352 |221 | |266 | 236 |353 |211 | |267-273 | 40 |354-355 |40 | |274 | 246 |356 |214 | |275-276 | 40 |357-360 |40 | |277 | 247 |361 |244 | |300-303 | 40 |362 |40 | |304 | 216 |363 |242 | |305 | 40 |364 |223 | |306 | 225 |365 |40 | |307 | 200 |366 |224 | |310-311 | 40 |367 |366 | |312 | 220 |370-373 |40 | |313-320 | 40 |374 |201 | |321 | 245 |375-376 |40 | |322 | 40 | | | +---------------+----------------+----------------+---------------+ ISO 8859-2 to DHN For the conversion of ISO 8859-2 to DHN, all characters not in the following table are mapped unchanged. +-----------------------------------------------------------------+ | | Conversions|Performed | | | ISO 8859-2 | DHN | ISO 8859-2 | DHN | |24 | 4 |322 |40 | |177-237 | 40 |323 |205 | |240 | 377 |324-325 |40 | |241 | 200 |326 |231 | |242 | 40 |327-333 |40 | |243 | 203 |334 |232 | |244-245 | 40 |335-336 |40 | |246 | 206 |337 |341 | |247-253 | 40 |340 |40 | |254 | 207 |341 |240 | |255-256 | 40 |342-345 |40 | |257 | 210 |346 |212 | |260 | 370 |347-351 |40 | |261 | 211 |352 |213 | |262 | 40 |353-354 |40 | |263 | 214 |355 |241 | |264-265 | 40 |356-360 |40 | |266 | 217 |361 |215 | |267-273 | 40 |362 |40 | |274 | 220 |363 |216 | |275-276 | 40 |364 |223 | |277 | 221 |365 |40 | |300-305 | 40 |366 |224 | |306 | 201 |367 |366 | |307-311 | 40 |370-371 |40 | |312 | 202 |372 |243 | |313-320 | 40 |373-376 |40 | |321 | 204 | | | +---------------+----------------+----------------+---------------+ FILES
/usr/lib/iconv/*.so conversion modules /usr/lib/iconv/*.t conversion tables /usr/lib/iconv/iconv_data list of conversions supported by conversion tables SEE ALSO
iconv(1), iconv(3C), iconv(5) SunOS 5.10 18 Apr 1997 iconv_8859-2(5)